freebsd-ports/sysutils/zrepl/Makefile
Dmitri Goutnik d84aa50743 Bump PORTREVISION after r517743 to force relinking.
Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D21854
2019-11-16 12:52:39 +00:00

93 lines
4.1 KiB
Makefile

# Created by: Nikolai Lifanov <lifanov@FreeBSD.org> and Ben Woods <woodsb02@FreeBSD.org>
# $FreeBSD$
PORTNAME= zrepl
PORTVERSION= 0.1.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= woodsb02@FreeBSD.org
COMMENT= ZFS dataset replication tool
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_i386= https://github.com/zrepl/zrepl/issues/184
USES= gmake go
USE_RC_SUBR= zrepl
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
USE_GITHUB= yes
GH_SUBDIR= src/github.com/zrepl/zrepl
GH_TUPLE= beorn7:perks:3a771d9:perks/vendor/github.com/beorn7/perks \
fatih:color:v1.7.0:color/vendor/github.com/fatih/color \
ftrvxmtrx:fd:c6d8003:fd/vendor/github.com/ftrvxmtrx/fd \
gdamore:encoding:b23993c:encoding/vendor/github.com/gdamore/encoding \
gdamore:tcell:v1.1.0:tcell/vendor/github.com/gdamore/tcell \
go-logfmt:logfmt:v0.4.0:logfmt/vendor/github.com/go-logfmt/logfmt \
golang:net:351d144:net/vendor/golang.org/x/net \
golang:protobuf:v1.3.1:protobuf/vendor/github.com/golang/protobuf \
golang:sync:e225da7:sync/vendor/golang.org/x/sync \
golang:sys:4ed8d59:sys/vendor/golang.org/x/sys \
golang:text:v0.3.0:go_text/vendor/golang.org/x/text \
google:go-genproto:bd91e49:genproto/vendor/google.golang.org/genproto \
google:uuid:v1.1.1:uuid/vendor/github.com/google/uuid \
grpc:grpc-go:v1.17.0:grpc/vendor/google.golang.org/grpc \
jinzhu:copier:db4671f:copier/vendor/github.com/jinzhu/copier \
kr:pretty:cfb55aa:pretty/vendor/github.com/kr/pretty \
kr:text:7cafcd8:text/vendor/github.com/kr/text \
lucasb-eyer:go-colorful:v1.0:go_colorful/vendor/github.com/lucasb-eyer/go-colorful \
mattn:go-isatty:v0.0.3:go_isatty/vendor/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.3:go_runewidth/vendor/github.com/mattn/go-runewidth \
matttproud:golang_protobuf_extensions:v1.0.0:golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
pkg:errors:v0.8.1:errors/vendor/github.com/pkg/errors \
problame:go-netssh:09d6bc4:go_netssh/vendor/github.com/problame/go-netssh \
problame:go-rwccmd:391d2c7:go_rwccmd/vendor/github.com/problame/go-rwccmd \
prometheus:client_golang:e11c6ff:client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:99fa1f4:client_model/vendor/github.com/prometheus/client_model \
prometheus:common:d0f7cd6:common/vendor/github.com/prometheus/common \
prometheus:procfs:8b1c2da:procfs/vendor/github.com/prometheus/procfs \
spf13:cobra:b787445:cobra/vendor/github.com/spf13/cobra \
spf13:pflag:v1.0.0:pflag/vendor/github.com/spf13/pflag \
stretchr:testify:v1.1.4:testify/vendor/github.com/stretchr/testify \
theckman:goconstraint:v1.11.0:goconstraint/vendor/github.com/theckman/goconstraint \
zrepl:yaml-config:08227ad:yaml_config/vendor/github.com/zrepl/yaml-config
SUB_FILES= pkg-message
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT= MANPAGES
MANPAGES_USES= python:build
MANPAGES_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
MANPAGES_PLIST_FILES= man/man1/zrepl.1.gz
.include <bsd.port.pre.mk>
.if ${OPSYS} == "FreeBSD"
SUB_LIST+= DAEMON_LOGGING="-S -l \$${zrepl_facility} -s \$${zrepl_priority} -T \$${name}"
.else
SUB_LIST+= DAEMON_LOGGING=""
.endif
post-build-MANPAGES-on:
@${MAKE_CMD} -C ${WRKSRC}/docs SPHINXBUILD=sphinx-build-${PYTHON_VER} man
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zrepl/samples
${INSTALL_DATA} ${WRKSRC}/dist/grafana/grafana-prometheus-zrepl-0.1.json ${STAGEDIR}${PREFIX}/share/zrepl/samples/
${INSTALL_DATA} ${WRKSRC}/config/samples/* ${STAGEDIR}${PREFIX}/share/zrepl/samples/
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \
${STAGEDIR}${PREFIX}/etc/syslog.d \
${STAGEDIR}${PREFIX}/etc/zrepl \
${STAGEDIR}/var/run/zrepl
${INSTALL_DATA} ${FILESDIR}/newsyslog-zrepl.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/zrepl.conf.sample
${INSTALL_DATA} ${FILESDIR}/syslog-zrepl.conf.sample ${STAGEDIR}${PREFIX}/etc/syslog.d/zrepl.conf.sample
${INSTALL_DATA} ${FILESDIR}/zrepl.yml.sample ${STAGEDIR}${PREFIX}/etc/zrepl/zrepl.yml.sample
post-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/zrepl.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.post.mk>