svn commit: r459676 - in head/sysutils/zfsnap: . files
Eugene Grosbein
eugen at FreeBSD.org
Mon Jan 22 17:05:50 UTC 2018
Author: eugen
Date: Mon Jan 22 17:05:49 2018
New Revision: 459676
URL: https://svnweb.freebsd.org/changeset/ports/459676
Log:
sysutils/zfsnap: fix -s/-S mode.
Move creation of files from "do-patch" to "post-extract" target,
so that patches from files/ directory get applied.
While here, add LICENSE.
PR: 223951
Submitted by: Anton Sayetsky <vsasjason at gmail.com> (based on)
Approved by: yamagi at yamagi.org (maintainer timeout, 7 weeks)
Added:
head/sysutils/zfsnap/files/
head/sysutils/zfsnap/files/patch-zfSnap.sh (contents, props changed)
Modified:
head/sysutils/zfsnap/Makefile
Modified: head/sysutils/zfsnap/Makefile
==============================================================================
--- head/sysutils/zfsnap/Makefile Mon Jan 22 16:42:44 2018 (r459675)
+++ head/sysutils/zfsnap/Makefile Mon Jan 22 17:05:49 2018 (r459676)
@@ -4,18 +4,21 @@
PORTNAME= zfsnap
PORTVERSION= 1.11.1
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= yamagi at 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
Added: head/sysutils/zfsnap/files/patch-zfSnap.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/zfsnap/files/patch-zfSnap.sh Mon Jan 22 17:05:49 2018 (r459676)
@@ -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
More information about the svn-ports-all
mailing list