# Created by: Nikolai Lifanov and Ben Woods # $FreeBSD: head/sysutils/zrepl/Makefile 566917 2021-03-01 22:45:01Z woodsb02 $ PORTNAME= zrepl PORTVERSION= 0.3.1 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= woodsb02@FreeBSD.org COMMENT= ZFS dataset replication tool LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= gmake go:modules USE_RC_SUBR= zrepl SUB_FILES= pkg-message USE_GITHUB= yes GH_TUPLE= \ alecthomas:kingpin:v2.2.6:alecthomas_kingpin/vendor/gopkg.in/alecthomas/kingpin.v2 \ alecthomas:template:fb15b899a751:alecthomas_template/vendor/github.com/alecthomas/template \ alecthomas:units:c3de453c63f4:alecthomas_units/vendor/github.com/alecthomas/units \ beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \ cespare:xxhash:v2.1.0:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \ davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ fatih:color:v1.7.0:fatih_color/vendor/github.com/fatih/color \ ftrvxmtrx:fd:c6d800382fff:ftrvxmtrx_fd/vendor/github.com/ftrvxmtrx/fd \ gdamore:encoding:v1.0.0:gdamore_encoding/vendor/github.com/gdamore/encoding \ gdamore:tcell:v1.2.0:gdamore_tcell/vendor/github.com/gdamore/tcell \ gitchander:permutation:9e56b92e9909:gitchander_permutation/vendor/github.com/gitchander/permutation \ go-logfmt:logfmt:v0.4.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \ go-sql-driver:mysql:b2c03bcae3d4:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \ go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ golang:appengine:v1.1.0:golang_appengine/vendor/google.golang.org/appengine \ golang:net:d28f0bde5980:golang_net/vendor/golang.org/x/net \ golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \ golang:sync:112230192c58:golang_sync/vendor/golang.org/x/sync \ golang:sys:33540a1f6037:golang_sys/vendor/golang.org/x/sys \ golang:text:v0.3.0:golang_text/vendor/golang.org/x/text \ golang:tools:40960b6deb8e:golang_tools/vendor/golang.org/x/tools \ google:go-genproto:c66870c02cf8:google_go_genproto/vendor/google.golang.org/genproto \ google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \ grpc:grpc-go:v1.17.0:grpc_grpc_go/vendor/google.golang.org/grpc \ inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ jinzhu:copier:db4671f3a9b8:jinzhu_copier/vendor/github.com/jinzhu/copier \ konsorten:go-windows-terminal-sequences:v1.0.1:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \ kr:logfmt:b84e30acd515:kr_logfmt/vendor/github.com/kr/logfmt \ kr:pretty:v0.1.0:kr_pretty/vendor/github.com/kr/pretty \ kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \ lib:pq:v1.2.0:lib_pq/vendor/github.com/lib/pq \ lucasb-eyer:go-colorful:v1.0.2:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \ mattn:go-colorable:v0.1.4:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ mattn:go-isatty:v0.0.8:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ mattn:go-runewidth:v0.0.4:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ montanaflynn:stats:v0.5.0:montanaflynn_stats/vendor/github.com/montanaflynn/stats \ pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \ pkg:profile:v1.2.1:pkg_profile/vendor/github.com/pkg/profile \ pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ problame:go-netssh:26439f9f0dc5:problame_go_netssh/vendor/github.com/problame/go-netssh \ prometheus:client_golang:v1.2.1:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ prometheus:client_model:14fe0d1b01d4:prometheus_client_model/vendor/github.com/prometheus/client_model \ prometheus:common:v0.7.0:prometheus_common/vendor/github.com/prometheus/common \ prometheus:procfs:v0.0.5:prometheus_procfs/vendor/github.com/prometheus/procfs \ sergi:go-diff:da645544ed44:sergi_go_diff/vendor/github.com/sergi/go-diff \ sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ spf13:cobra:v0.0.2:spf13_cobra/vendor/github.com/spf13/cobra \ spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \ theckman:goconstraint:v1.11.0:theckman_goconstraint/vendor/github.com/theckman/goconstraint \ willf:bitset:v1.1.10:willf_bitset/vendor/github.com/willf/bitset \ yudai:gojsondiff:7b1b7adf999d:yudai_gojsondiff/vendor/github.com/yudai/gojsondiff \ yudai:golcs:ecda9a501e82:yudai_golcs/vendor/github.com/yudai/golcs \ zrepl:yaml-config:cbb6b0cf4bdd:zrepl_yaml_config/vendor/github.com/zrepl/yaml-config OPTIONS_DEFINE= EXAMPLES MANPAGES OPTIONS_DEFAULT= MANPAGES MANPAGES_USES= python:build,3.6+ MANPAGES_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.8.5,1:textproc/py-sphinx@${PY_FLAVOR} MANPAGES_PLIST_FILES= man/man1/zrepl.1.gz .include .if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 USES+= ncurses .else USES+= ncurses:port CFLAGS+= -I${LOCALBASE}/include/ncurses .endif .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}${EXAMPLESDIR} \ ${STAGEDIR}${ETCDIR} \ ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \ ${STAGEDIR}${PREFIX}/etc/syslog.d \ ${STAGEDIR}/var/run/zrepl ${INSTALL_DATA} ${FILESDIR}/newsyslog.conf ${STAGEDIR}${EXAMPLESDIR}/newsyslog.conf ${INSTALL_DATA} ${FILESDIR}/syslog.conf ${STAGEDIR}${EXAMPLESDIR}/syslog.conf ${INSTALL_DATA} ${FILESDIR}/zrepl.yml ${STAGEDIR}${ETCDIR}/zrepl.yml.sample post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/hooks (cd ${WRKSRC}/config/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) ${INSTALL_DATA} ${WRKSRC}/dist/grafana/grafana-prometheus-zrepl.json ${STAGEDIR}${EXAMPLESDIR} post-install-MANPAGES-on: ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/zrepl.1 ${STAGEDIR}${PREFIX}/man/man1 .include