aboutsummaryrefslogtreecommitdiff
path: root/sysutils/epazote
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2016-03-21 19:06:18 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2016-03-21 19:06:18 +0000
commit5b21c8a94df57312dc31056395cf1139ad5a08a3 (patch)
treee41ad5613f981751e331862fd65d949628b4c854 /sysutils/epazote
parentaac6a05eb6af0ef3c0281b2089d1a6927c1c2ea7 (diff)
sysutils/epazote: Automated microservices supervisor
Epazote automatically update/add services specified in a file call epazote.yml. Periodically checks the defined endpoints and execute recovery commands in case services responses are not behaving like expected helping with this to automate actions in order to keep services/applications up and running. WWW: http://about.epazote.io PR: 208103 Submitted by: Nicolas de Bari Embriz Garcia Rojas
Notes
Notes: svn path=/head/; revision=411614
Diffstat (limited to 'sysutils/epazote')
-rw-r--r--sysutils/epazote/Makefile51
-rw-r--r--sysutils/epazote/distinfo4
-rw-r--r--sysutils/epazote/pkg-descr6
3 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/epazote/Makefile b/sysutils/epazote/Makefile
new file mode 100644
index 000000000000..f7c93b626231
--- /dev/null
+++ b/sysutils/epazote/Makefile
@@ -0,0 +1,51 @@
+# $FreeBSD$
+
+PORTNAME= epazote
+PORTVERSION= 1.5.2
+CATEGORIES= sysutils
+
+MAINTAINER= nbari@dalmp.com
+COMMENT= Automated microservices supervisor
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= go>=1.6:${PORTSDIR}/lang/go
+
+USES= compiler
+
+USE_GITHUB= yes
+GH_ACCOUNT= nbari:DEFAULT \
+ go-yaml:yaml
+GH_PROJECT= epazote yaml:yaml
+GH_TAGNAME= v2:yaml
+
+STRIP= # stripping can break go binaries
+
+PLIST_FILES= bin/epazote
+
+post-patch:
+ @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
+.for src in .gitignore a_test.go cmd config.go mail.go mailman_test.go \
+ request.go scandir_test.go singleton_test.go supervice.go try.go \
+ block.go color.go config_test.go mail_test.go report.go \
+ request_test.go scheduler start.go supervice_test.go \
+ try_test.go .travis.yml README.md changelog.md color_test.go \
+ examples mailman.go report_test.go scandir.go singleton.go \
+ start_test.go test
+ @${MV} ${WRKSRC}/${src} \
+ ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
+.endfor
+ @${MKDIR} ${WRKSRC}/src/gopkg.in
+ @${MV} ${WRKSRC_yaml}/ \
+ ${WRKSRC}/src/gopkg.in/yaml.v2
+
+do-build:
+ @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
+ ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
+ "-X main.version=${PORTVERSION}" -o epazote cmd/epazote/main.go;
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/epazote ${STAGEDIR}${PREFIX}/bin/epazote
+
+.include <bsd.port.mk>
diff --git a/sysutils/epazote/distinfo b/sysutils/epazote/distinfo
new file mode 100644
index 000000000000..89980c7c92f7
--- /dev/null
+++ b/sysutils/epazote/distinfo
@@ -0,0 +1,4 @@
+SHA256 (nbari-epazote-1.5.2_GH0.tar.gz) = a01ff0f07b9a9fb792fcc7ac413c0baf85432fe8e951edbcf1751991b66b25ad
+SIZE (nbari-epazote-1.5.2_GH0.tar.gz) = 145361
+SHA256 (go-yaml-yaml-v2_GH0.tar.gz) = 15bdfb44493124a6ff10dcc3ce9e623a3ff435fe20ab8c6dea0190cbc939bd5a
+SIZE (go-yaml-yaml-v2_GH0.tar.gz) = 63044
diff --git a/sysutils/epazote/pkg-descr b/sysutils/epazote/pkg-descr
new file mode 100644
index 000000000000..09db353da293
--- /dev/null
+++ b/sysutils/epazote/pkg-descr
@@ -0,0 +1,6 @@
+Epazote automatically update/add services specified in a file call epazote.yml.
+Periodically checks the defined endpoints and execute recovery commands in
+case services responses are not behaving like expected helping with this to
+automate actions in order to keep services/applications up and running.
+
+WWW: http://about.epazote.io