aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2012-10-15 05:09:21 +0800
committermadpilot <madpilot@FreeBSD.org>2012-10-15 05:09:21 +0800
commit2664cf2f6b61f673206bba24a6c22ed8a724b4b8 (patch)
treeb3ed5658bd3d884a2f6f273b64b7268e79825342
parent3763f93b2aac542f5f7c72030b0e65dbd4a35441 (diff)
downloadfreebsd-ports-gnome-2664cf2f6b61f673206bba24a6c22ed8a724b4b8.tar.gz
freebsd-ports-gnome-2664cf2f6b61f673206bba24a6c22ed8a724b4b8.tar.zst
freebsd-ports-gnome-2664cf2f6b61f673206bba24a6c22ed8a724b4b8.zip
- Add hourly deletion script
- While I'm here, trim Makefile headers PR: ports/172665 Submitted by: Aldis Berjoza <graudeejs@gmail.com> (maintainer) Feature safe: yes
-rw-r--r--sysutils/zfsnap/Makefile11
-rw-r--r--sysutils/zfsnap/pkg-plist1
2 files changed, 5 insertions, 7 deletions
diff --git a/sysutils/zfsnap/Makefile b/sysutils/zfsnap/Makefile
index 43198c707ff3..f29fbc3778d7 100644
--- a/sysutils/zfsnap/Makefile
+++ b/sysutils/zfsnap/Makefile
@@ -1,12 +1,9 @@
-# New ports collection makefile for: zfsnap
-# Date created: 2010-08-02
-# Whom: Aldis Berjoza <aldis@bsdroot.lv>
-#
+# Created by: Aldis Berjoza <aldis@bsdroot.lv>
# $FreeBSD$
-#
PORTNAME= zfsnap
PORTVERSION= 1.10.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://files.bsdroot.lv/my/FreeBSD/distfiles/
DISTNAME= zfSnap-${PORTVERSION}
@@ -25,7 +22,7 @@ do-patch:
.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
-.for period in daily weekly monthly
+.for period in hourly daily weekly monthly
@${SED} -e "s/xPERIODICx/${period}/g" -e "s#xPREFIXx#${PREFIX}/sbin#g" ${WRKSRC}/xPERIODICx_zfSnap_delete.sh > ${WRKSRC}/${period}_zfSnap_delete.sh
.endfor
@@ -35,7 +32,7 @@ do-install:
@${MKDIR} ${PERIODICDIR}/${period}
@${INSTALL_SCRIPT} ${WRKSRC}/${period}_zfSnap.sh ${PERIODICDIR}/${period}/402.zfSnap
.endfor
-.for period in daily weekly monthly
+.for period in hourly daily weekly monthly
@${INSTALL_SCRIPT} ${WRKSRC}/${period}_zfSnap_delete.sh ${PERIODICDIR}/${period}/403.zfSnap_delete
.endfor
diff --git a/sysutils/zfsnap/pkg-plist b/sysutils/zfsnap/pkg-plist
index c62e673ab3f2..c812a8d07a1e 100644
--- a/sysutils/zfsnap/pkg-plist
+++ b/sysutils/zfsnap/pkg-plist
@@ -2,6 +2,7 @@ sbin/zfSnap
%%PERIODICDIR%%/daily/402.zfSnap
%%PERIODICDIR%%/daily/403.zfSnap_delete
%%PERIODICDIR%%/hourly/402.zfSnap
+%%PERIODICDIR%%/hourly/403.zfSnap_delete
%%PERIODICDIR%%/monthly/402.zfSnap
%%PERIODICDIR%%/monthly/403.zfSnap_delete
%%PERIODICDIR%%/reboot/402.zfSnap