aboutsummaryrefslogtreecommitdiff
path: root/sysutils/immortal/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/immortal/Makefile')
-rw-r--r--sysutils/immortal/Makefile35
1 files changed, 12 insertions, 23 deletions
diff --git a/sysutils/immortal/Makefile b/sysutils/immortal/Makefile
index b23f431dd526..ca568248d305 100644
--- a/sysutils/immortal/Makefile
+++ b/sysutils/immortal/Makefile
@@ -13,34 +13,23 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_RC_SUBR= immortaldir
USE_GITHUB= yes
-GH_TUPLE= immortal:logrotate:6f52ae7:logrotate/src/github.com/immortal/logrotate \
- immortal:multiwriter:2e0dd11:multiwriter/src/github.com/immortal/multiwriter \
- immortal:natcasesort:162328b:natcasesort/src/github.com/immortal/natcasesort \
- immortal:xtime:fb1aca1:xtime/src/github.com/immortal/xtime \
- nbari:violetear:5c7cdfe:nbari/src/github.com/nbari/violetear \
- go-yaml:yaml:51d6538:yaml/src/github.com/go-yaml/yaml
+GH_TUPLE= immortal:logrotate:6f52ae7:logrotate/vendor/github.com/immortal/logrotate \
+ immortal:multiwriter:2e0dd11:multiwriter/vendor/github.com/immortal/multiwriter \
+ immortal:natcasesort:162328b:natcasesort/vendor/github.com/immortal/natcasesort \
+ immortal:xtime:fb1aca1:xtime/vendor/github.com/immortal/xtime \
+ nbari:violetear:5c7cdfe:nbari/vendor/github.com/nbari/violetear \
+ go-yaml:yaml:51d6538:yaml/vendor/github.com/go-yaml/yaml
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
-OPTIONS_DEFINE= EXAMPLES
+GO_BUILDFLAGS= -ldflags "-s -w -X main.version=${PORTVERSION}"
+GO_TARGET= ./cmd/immortal \
+ ./cmd/immortalctl \
+ ./cmd/immortaldir
-do-build:
- @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
- ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
- "-s -w -X main.version=${PORTVERSION}" -o immortal cmd/immortal/main.go;
- @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
- ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
- "-s -w -X main.version=${PORTVERSION}" -o immortalctl cmd/immortalctl/main.go;
- @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
- ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
- "-s -w -X main.version=${PORTVERSION}" -o immortaldir cmd/immortaldir/main.go;
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortal ${STAGEDIR}${PREFIX}/bin/immortal
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortalctl ${STAGEDIR}${PREFIX}/bin/immortalctl
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortaldir ${STAGEDIR}${PREFIX}/bin/immortaldir
- ${INSTALL_MAN} ${WRKSRC}/src/github.com/immortal/immortal/man/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
+OPTIONS_DEFINE= EXAMPLES
post-install:
+ ${INSTALL_MAN} ${WRKSRC}/src/github.com/immortal/immortal/man/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
@${MKDIR} ${STAGEDIR}${ETCDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/www.yml ${STAGEDIR}${EXAMPLESDIR}/www.yml.sample