aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2019-09-15 10:46:36 +0800
committerjgh <jgh@FreeBSD.org>2019-09-15 10:46:36 +0800
commita15659ab1848763b2e3cb6cd8c5c2e9d7b347dd6 (patch)
tree3d982edf38ecfecad53c42b66ea329a4c289b6b5 /sysutils
parent28f3ef774e53ee4cadb1734f477e3a5319019b88 (diff)
downloadfreebsd-ports-gnome-a15659ab1848763b2e3cb6cd8c5c2e9d7b347dd6.tar.gz
freebsd-ports-gnome-a15659ab1848763b2e3cb6cd8c5c2e9d7b347dd6.tar.zst
freebsd-ports-gnome-a15659ab1848763b2e3cb6cd8c5c2e9d7b347dd6.zip
- update to 0.7_2
- code shift to github - update WWW along with pkg-descr - support docs and examples PR: 207244 Reported by: lapo@lapo.it, w.schwarzenfeld@utanet.at (WWW)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/zfs-replicate/Makefile42
-rw-r--r--sysutils/zfs-replicate/distinfo5
-rw-r--r--sysutils/zfs-replicate/pkg-descr6
3 files changed, 35 insertions, 18 deletions
diff --git a/sysutils/zfs-replicate/Makefile b/sysutils/zfs-replicate/Makefile
index f15d92bdfcff..5a35da39c1d3 100644
--- a/sysutils/zfs-replicate/Makefile
+++ b/sysutils/zfs-replicate/Makefile
@@ -3,30 +3,46 @@
PORTNAME= zfs-replicate
PORTVERSION= 0.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
-MASTER_SITES= http://blogs.sun.com/constantin/resource/
-DISTNAME= ${PORTNAME}_v${PORTVERSION}
MAINTAINER= jnlin@freebsd.cs.nctu.edu.tw
COMMENT= ZFS Snapshot Replication Script
-RUN_DEPENDS= ksh:shells/pdksh
+RUN_DEPENDS= bash:shells/bash
+
+USES= shebangfix
-NO_WRKSUBDIR= yes
NO_BUILD= yes
-USES= tar:bzip2
+NO_ARCH= yes
-PLIST_FILES= sbin/zfs-replicate
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+SHEBANG_FILES= zfs-replicate.sh
+
+PORTDOCS= README.md
+PORTDATA= config.sample.sh
-do-patch:
- @${REINPLACE_CMD} -e 's|^#!/bin/ksh|#!${PREFIX}/bin/ksh|g' \
- ${WRKSRC}/zfs-replicate_v${PORTVERSION}
- @${REINPLACE_CMD} -e 's|/usr/sbin/zfs|/sbin/zfs|g' \
- ${WRKSRC}/zfs-replicate_v${PORTVERSION}
+USE_GITHUB= yes
+GH_ACCOUNT= leprechau
+GH_TAGNAME= 17bf8fb
+
+PLIST_FILES= sbin/zfs-replicate
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/zfs-replicate_v${PORTVERSION} \
+ ${INSTALL_SCRIPT} ${WRKSRC}/zfs-replicate.sh \
${STAGEDIR}${PREFIX}/sbin/zfs-replicate
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+do-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+.for data in ${PORTDATA}
+ ${INSTALL_DATA} ${WRKSRC}/${data} ${STAGEDIR}${DATADIR}
+.endfor
+
.include <bsd.port.mk>
diff --git a/sysutils/zfs-replicate/distinfo b/sysutils/zfs-replicate/distinfo
index 7be49b5ebb54..6cd91d21ed69 100644
--- a/sysutils/zfs-replicate/distinfo
+++ b/sysutils/zfs-replicate/distinfo
@@ -1,2 +1,3 @@
-SHA256 (zfs-replicate_v0.7.tar.bz2) = 4ecd8ae205e90294bc5d0f2d56dfcc375499901f025e2e1926628c4e01ccd41e
-SIZE (zfs-replicate_v0.7.tar.bz2) = 4020
+TIMESTAMP = 1567786202
+SHA256 (leprechau-zfs-replicate-0.7-17bf8fb_GH0.tar.gz) = a9c9f948abae7e7490ae69711946b63e7483cdab43709e92c0b495cbdfef3f9f
+SIZE (leprechau-zfs-replicate-0.7-17bf8fb_GH0.tar.gz) = 5497
diff --git a/sysutils/zfs-replicate/pkg-descr b/sysutils/zfs-replicate/pkg-descr
index 8db54d4b93bb..27915cd02a29 100644
--- a/sysutils/zfs-replicate/pkg-descr
+++ b/sysutils/zfs-replicate/pkg-descr
@@ -1,4 +1,4 @@
-zfs-replicate makes migrating a few filesystems and many
-snapshots to a new zpool more easier.
+Simple script to replicate zfs volumes between hosts
+(or between pools on the same host) via incremental snapshots.
-WWW: https://blogs.oracle.com/constantin/entry/useful_zfs_snapshot_replicator_script
+WWW: https://github.com/leprechau/zfs-replicate