diff options
-rw-r--r-- | sysutils/zfsnap/Makefile | 5 | ||||
-rw-r--r-- | sysutils/zfsnap/files/patch-zfSnap.sh | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/zfsnap/Makefile b/sysutils/zfsnap/Makefile index 47ae2c774567..5c8302ccacdc 100644 --- a/sysutils/zfsnap/Makefile +++ b/sysutils/zfsnap/Makefile @@ -4,18 +4,21 @@ PORTNAME= zfsnap PORTVERSION= 1.11.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= yamagi@yamagi.org COMMENT= Simple sh script to make zfs rolling snaphosts with cron +LICENSE= BSD3CLAUSE + NO_BUILD= yes USE_GITHUB= yes PERIODICDIR?= ${PREFIX}/etc/periodic PLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" -do-patch: +post-extract: .for period in hourly daily weekly monthly reboot @${SED} -e "s/xPERIODICx/${period}/g" -e "s#xPREFIXx#${PREFIX}/sbin#g" ${WRKSRC}/xPERIODICx_zfSnap.sh > ${WRKSRC}/${period}_zfSnap.sh .endfor diff --git a/sysutils/zfsnap/files/patch-zfSnap.sh b/sysutils/zfsnap/files/patch-zfSnap.sh new file mode 100644 index 000000000000..1cdd609dd8b3 --- /dev/null +++ b/sysutils/zfsnap/files/patch-zfSnap.sh @@ -0,0 +1,11 @@ +--- zfSnap.sh.orig 2013-01-18 03:37:09.000000000 +0700 ++++ zfSnap.sh 2018-01-22 23:20:20.257104000 +0700 +@@ -199,6 +199,8 @@ rm_zfs_snapshot() { + } + + skip_pool() { ++ local i ++ + # more like skip pool??? + if is_true $scrub_skip; then + for i in $scrub_pools; do |