Date: Mon, 22 Jan 2018 17:05:49 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459676 - in head/sysutils/zfsnap: . files Message-ID: <201801221705.w0MH5n8N044357@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@gmail.com> (based on) Approved by: yamagi@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801221705.w0MH5n8N044357>