diff options
author | joneum <joneum@FreeBSD.org> | 2017-06-21 04:22:16 +0800 |
---|---|---|
committer | joneum <joneum@FreeBSD.org> | 2017-06-21 04:22:16 +0800 |
commit | 9a3ac89252a8e04d92a2a3085932f5d521a11bf5 (patch) | |
tree | f41f647d1e3a9dea82983ff5feb1034e22f7b827 /databases | |
parent | 9741314031cba6b8371738f7831234999e962229 (diff) | |
download | freebsd-ports-gnome-9a3ac89252a8e04d92a2a3085932f5d521a11bf5.tar.gz freebsd-ports-gnome-9a3ac89252a8e04d92a2a3085932f5d521a11bf5.tar.zst freebsd-ports-gnome-9a3ac89252a8e04d92a2a3085932f5d521a11bf5.zip |
- databases/influxdb: add MANPAGES option
PR: 217592
Reported by: xmj
Approved by: cheffo at freebsd-bg.org (maintainer) miwi (mentor)
Differential Revision: https://reviews.freebsd.org/D11219
Diffstat (limited to 'databases')
-rw-r--r-- | databases/influxdb/Makefile | 20 | ||||
-rw-r--r-- | databases/influxdb/pkg-plist | 12 |
2 files changed, 31 insertions, 1 deletions
diff --git a/databases/influxdb/Makefile b/databases/influxdb/Makefile index 3a13e86fd8b2..24342b875490 100644 --- a/databases/influxdb/Makefile +++ b/databases/influxdb/Makefile @@ -3,6 +3,7 @@ PORTNAME= influxdb PORTVERSION= 1.2.4 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= databases net-mgmt MAINTAINER= cheffo@freebsd-bg.org @@ -12,6 +13,15 @@ LICENSE= MIT BUILD_DEPENDS= go>=1.5.0:lang/go +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT= MANPAGES + +MANPAGES_BUILD_DEPENDS= xmlto:textproc/xmlto \ + asciidoc:textproc/asciidoc \ + docbook-xml>0:textproc/docbook-xml +MANPAGES_USES= gmake +OPTIONS_SUB= yes + ONLY_FOR_ARCHS= i386 amd64 armv6 USE_RC_SUBR= influxd @@ -83,6 +93,9 @@ do-build: @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT} && \ ${SETENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./... +do-build-MANPAGES-on: + @cd ${WRKSRC}/src/github.com/influxdata/influxdb/man && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} + do-install: ${MKDIR} ${STAGEDIR}${INFLUXD_DBDIR} \ ${STAGEDIR}${INFLUXD_PIDDIR} \ @@ -98,4 +111,11 @@ do-install: ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT}/etc/config.sample.toml \ ${STAGEDIR}${PREFIX}/etc/influxd.conf.sample +do-install-MANPAGES-on: +.for i in influx.1 influx_inspect.1 influx_stress.1 influx_tsm.1 \ + influxd-backup.1 influxd-config.1 influxd-restore.1 \ + influxd-run.1 influxd-version.1 influxd.1 + ${INSTALL_MAN} ${WRKSRC}/src/github.com/influxdata/influxdb/man/$i ${STAGEDIR}${MAN8PREFIX}/man/man1 +.endfor + .include <bsd.port.mk> diff --git a/databases/influxdb/pkg-plist b/databases/influxdb/pkg-plist index 97901ae04761..801d55233165 100644 --- a/databases/influxdb/pkg-plist +++ b/databases/influxdb/pkg-plist @@ -2,7 +2,17 @@ bin/influx bin/influx_inspect bin/influx_tsm bin/influxd +%%MANPAGES%%man/man1/influx.1.gz +%%MANPAGES%%man/man1/influx_inspect.1.gz +%%MANPAGES%%man/man1/influx_stress.1.gz +%%MANPAGES%%man/man1/influx_tsm.1.gz +%%MANPAGES%%man/man1/influxd-backup.1.gz +%%MANPAGES%%man/man1/influxd-config.1.gz +%%MANPAGES%%man/man1/influxd-restore.1.gz +%%MANPAGES%%man/man1/influxd-run.1.gz +%%MANPAGES%%man/man1/influxd-version.1.gz +%%MANPAGES%%man/man1/influxd.1.gz @dir(%%INFLUXD_USER%%,%%INFLUXD_GROUP%%,0750) %%INFLUXD_DBDIR%% @dir(%%INFLUXD_USER%%,%%INFLUXD_GROUP%%,0750) %%INFLUXD_LOGDIR%% @dir(%%INFLUXD_USER%%,%%INFLUXD_GROUP%%,0750) %%INFLUXD_PIDDIR%% -@sample etc/%%INFLUXD_USER%%.conf.sample +@sample etc/influxd.conf.sample |