freebsd-ports/sysutils/zrepl/Makefile
Ben Woods c496b34b2a sysutils/zrepl: Update to 0.0.3
Changes this release:
  https://github.com/zrepl/zrepl/blob/0.0.3/docs/changelog.rst

Breaking changes with the 0.0.3 release:
- Snapshots are automatically bookmarked and pruning of bookmarks must
  be configured by adding the keep_bookmarks parameter to the prune
  policy section of the zrepl configuration file (source side only).
  Be sure to understand the meaning bookmarks have for maximum
  allowable replication downtime.
- The ssh+stdinserver transport protocol has changed, requiring zrepl
  to be updates on both the sending and receiving side, and the daemon
  restarted on both sides.
- The first outlet in the global.logging section of the configuration
  file is now used for logging meta-errors (e.g. problems encountered
  when writing to other logging outlets).
2018-04-27 08:49:19 +00:00

64 lines
2.4 KiB
Makefile

# Created by: Nikolai Lifanov <lifanov@FreeBSD.org> and Ben Woods <woodsb02@FreeBSD.org>
# $FreeBSD$
PORTNAME= zrepl
PORTVERSION= 0.0.3
CATEGORIES= sysutils
MAINTAINER= woodsb02@FreeBSD.org
COMMENT= ZFS dataset replication tool
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_RC_SUBR= zrepl
SUB_FILES= pkg-message
USE_GITHUB= yes
GH_SUBDIR= src/github.com/zrepl/zrepl
GH_TUPLE= davecgh:go-spew:v1.1.0:go_spew/src/github.com/davecgh/go-spew \
dustin:go-humanize:bb3d318:go_humanize/src/github.com/dustin/go-humanize \
ftrvxmtrx:fd:c6d8003:fd/src/github.com/ftrvxmtrx/fd \
go-logfmt:logfmt:v0.3.0:go_logfmt/src/github.com/go-logfmt/logfmt \
go-yaml:yaml:eb3733d:go_yaml/src/github.com/go-yaml/yaml \
jinzhu:copier:db4671f:copier/src/github.com/jinzhu/copier \
kr:logfmt:b84e30a:logfmt/src/github.com/kr/logfmt \
kr:pretty:cfb55aa:pretty/src/github.com/kr/pretty \
kr:text:7cafcd8:text/src/github.com/kr/text \
mattn:go-isatty:v0.0.3:go_isatty/src/github.com/mattn/go-isatty \
mitchellh:mapstructure:d0303fe:mapstructure/src/github.com/mitchellh/mapstructure \
pkg:errors:v0.8.0:errors/src/github.com/pkg/errors \
pmezard:go-difflib:v1.0.0:go_difflib/src/github.com/pmezard/go-difflib \
problame:go-netssh:53a2e44:go_netssh/src/github.com/problame/go-netssh \
problame:go-rwccmd:391d2c7:go_rwccmd/src/github.com/problame/go-rwccmd \
spf13:cobra:b787445:cobra/src/github.com/spf13/cobra \
spf13:pflag:v1.0.0:pflag/src/github.com/spf13/pflag \
stretchr:testify:v1.1.4:testify/src/github.com/stretchr/testify
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
.include <bsd.port.pre.mk>
.if ${OPSYS} == "FreeBSD" && ((${OSVERSION} >= 1100513 && ${OSVERSION} < 1200000) || ${OSVERSION} >= 1200015)
SUB_LIST+= DAEMON_LOGGING="-S -l \$${zrepl_facility} -s \$${zrepl_priority} -T \$${name}"
.else
SUB_LIST+= DAEMON_LOGGING=""
.endif
post-extract:
${LN} -sf ${WRKSRC}/src ${WRKDIR}
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \
${STAGEDIR}${PREFIX}/etc/syslog.d \
${STAGEDIR}${PREFIX}/etc/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
.include <bsd.port.post.mk>