diff options
author | Luca Pizzamiglio <pizzamig@FreeBSD.org> | 2019-12-10 10:50:04 +0000 |
---|---|---|
committer | Luca Pizzamiglio <pizzamig@FreeBSD.org> | 2019-12-10 10:50:04 +0000 |
commit | 666bf541ae20420ec0a5b645f68aa5e9c8589519 (patch) | |
tree | 6ce87d96748986611107681b32cb448cefa0337b | |
parent | e3510b3f0ccdf6521d12322b5252409a0d91cc67 (diff) | |
download | ports-666bf541ae20420ec0a5b645f68aa5e9c8589519.tar.gz ports-666bf541ae20420ec0a5b645f68aa5e9c8589519.zip |
Notes
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/minipot/Makefile | 57 | ||||
-rw-r--r-- | sysutils/minipot/distinfo | 3 | ||||
-rw-r--r-- | sysutils/minipot/files/pkg-install.in | 19 | ||||
-rw-r--r-- | sysutils/minipot/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/minipot/pkg-plist | 11 |
6 files changed, 95 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index df9733e3ba52..3414dacf1f52 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -678,6 +678,7 @@ SUBDIR += mgeupsd SUBDIR += minikube SUBDIR += minimunin + SUBDIR += minipot SUBDIR += minipro SUBDIR += minirsyslogd SUBDIR += mixer diff --git a/sysutils/minipot/Makefile b/sysutils/minipot/Makefile new file mode 100644 index 000000000000..362317020978 --- /dev/null +++ b/sysutils/minipot/Makefile @@ -0,0 +1,57 @@ +# $FreeBSD$ + +PORTNAME= minipot +PORTVERSION= 0.1.0 +CATEGORIES= sysutils + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= Mono-server installation of pot, nomad and consul + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= pot:sysutils/pot \ + nomad:sysutils/nomad \ + ${LOCALBASE}/libexec/nomad/plugins/nomad-pot-driver:sysutils/nomad-pot-driver \ + consul:sysutils/consul \ + traefik:net/traefik + +USE_GITHUB= yes +GH_ACCOUNT= pizzamig +NO_BUILD= yes +NO_ARCH= yes + +OPTIONS_DEFINE= EXAMPLES + +PORTEXAMPLES= * + +do-install: + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/consul.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/nomad + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/syslog.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/newsyslog.conf.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/cron.d + + ${INSTALL_DATA} ${WRKSRC}/etc/consul.d/minipot-agent.json \ + ${STAGEDIR}${LOCALBASE}/etc/consul.d/minipot-agent.json + ${INSTALL_DATA} ${WRKSRC}/etc/nomad/minipot-server.hcl.sample \ + ${STAGEDIR}${LOCALBASE}/etc/nomad/minipot-server.hcl.sample + ${INSTALL_DATA} ${WRKSRC}/etc/minipot-traefik.toml.sample \ + ${STAGEDIR}${LOCALBASE}/etc/minipot-traefik.toml.sample + ${INSTALL_DATA} ${WRKSRC}/etc/syslog.d/*.conf \ + ${STAGEDIR}${LOCALBASE}/etc/syslog.d + ${INSTALL_DATA} ${WRKSRC}/etc/newsyslog.conf.d/*.conf \ + ${STAGEDIR}${LOCALBASE}/etc/newsyslog.conf.d + ${INSTALL_DATA} ${WRKSRC}/etc/cron.d/* \ + ${STAGEDIR}${LOCALBASE}/etc/cron.d + ${INSTALL_SCRIPT} ${WRKSRC}/bin/minipot-init \ + ${STAGEDIR}${LOCALBASE}/bin/minipot-init + ${INSTALL_SCRIPT} ${WRKSRC}/bin/minipot-start \ + ${STAGEDIR}${LOCALBASE}/bin/minipot-start + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/* \ + ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/sysutils/minipot/distinfo b/sysutils/minipot/distinfo new file mode 100644 index 000000000000..1575c9b2b107 --- /dev/null +++ b/sysutils/minipot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1575974330 +SHA256 (pizzamig-minipot-0.1.0_GH0.tar.gz) = b7f97df7fdf20b2a4ec72166bd73c136febf93b21db02607d5cfee18f0a42685 +SIZE (pizzamig-minipot-0.1.0_GH0.tar.gz) = 5240 diff --git a/sysutils/minipot/files/pkg-install.in b/sysutils/minipot/files/pkg-install.in new file mode 100644 index 000000000000..4abbc5fb6936 --- /dev/null +++ b/sysutils/minipot/files/pkg-install.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +case $2 in + PRE-INSTALL) + if [ -r %%PREFIX%%/etc/nomad/server.hcl ]; then + cp %%PREFIX%%/etc/nomad/server.hcl %%PREFIX%%/etc/nomad/server.hcl.bkp + fi + if [ -r %%PREFIX%%/etc/consul.d/agent.json ]; then + cp %%PREFIX%%/etc/consul.d/agent.json %%PREFIX%%/etc/consul.d/agent.json.bkp + fi + if [ -r %%PREFIX%%/etc/traefik.toml ]; then + cp %%PREFIX%%/etc/traefik.toml %%PREFIX%%/etc/traefik.toml.bkp + fi + ;; +esac + diff --git a/sysutils/minipot/pkg-descr b/sysutils/minipot/pkg-descr new file mode 100644 index 000000000000..7eddf9973e83 --- /dev/null +++ b/sysutils/minipot/pkg-descr @@ -0,0 +1,4 @@ +Minipot is a set of configuration files and dependency that makes easy +to run a single-noe nomad-pot cluster in a VM or on your laptop. + +WWW: https://github.com/pizzamig/minipot diff --git a/sysutils/minipot/pkg-plist b/sysutils/minipot/pkg-plist new file mode 100644 index 000000000000..6c4112bf26d9 --- /dev/null +++ b/sysutils/minipot/pkg-plist @@ -0,0 +1,11 @@ +bin/minipot-init +bin/minipot-start +etc/consul.d/minipot-agent.json +etc/cron.d/pot-prune +etc/newsyslog.conf.d/consul.conf +etc/newsyslog.conf.d/nomad.conf +etc/newsyslog.conf.d/traefik.conf +@sample etc/nomad/minipot-server.hcl.sample +etc/syslog.d/consul.conf +etc/syslog.d/nomad.conf +@sample etc/minipot-traefik.toml.sample |