diff options
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/epazote/Makefile | 51 | ||||
-rw-r--r-- | sysutils/epazote/distinfo | 4 | ||||
-rw-r--r-- | sysutils/epazote/pkg-descr | 6 |
4 files changed, 62 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index b246d1cb4cae..2422fd525f26 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -250,6 +250,7 @@ SUBDIR += entr SUBDIR += env4801 SUBDIR += envconsul + SUBDIR += epazote SUBDIR += etcmerge SUBDIR += etcupdate SUBDIR += eventlog 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 |