diff --git a/system/zfs-periodic/Makefile b/system/zfs-periodic/Makefile new file mode 100644 index 00000000..864b1316 --- /dev/null +++ b/system/zfs-periodic/Makefile @@ -0,0 +1,45 @@ +# Created by: Peter Ankerstal +# $FreeBSD: head/sysutils/zfs-periodic/Makefile 407685 2016-02-01 06:27:54Z pi $ + +PORTNAME= zfs-periodic +PORTVERSION= 1.0.20130213 +CATEGORIES= sysutils + +MAINTAINER= peter@pean.org +COMMENT= Simple way of maintaining zfs snapshots using the periodic system + +USE_GITHUB= yes +GH_ACCOUNT= ross +GH_TAGNAME= a481121 + +NO_ARCH= yes +NO_BUILD= yes + +PERIODIC_DIRS+= etc/periodic/hourly +PERIODIC_DIRS+= etc/periodic/daily +PERIODIC_DIRS+= etc/periodic/weekly +PERIODIC_DIRS+= etc/periodic/monthly +PERIODIC_DIRS+= etc/periodic + +PERIODIC_FILES+= etc/periodic/hourly/000.zfs-snapshot +PERIODIC_FILES+= etc/periodic/daily/000.zfs-snapshot +PERIODIC_FILES+= etc/periodic/weekly/000.zfs-snapshot +PERIODIC_FILES+= etc/periodic/monthly/000.zfs-snapshot + +post-patch: +.for FILE in ${PERIODIC_FILES} + ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/etc/periodic/zfs-snapshot|" \ + ${WRKSRC}/${FILE} +.endfor + +do-install: +.for DIR in ${PERIODIC_DIRS} + ${MKDIR} ${STAGEDIR}${PREFIX}/${DIR} +.endfor + ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/zfs-snapshot ${STAGEDIR}${PREFIX}/etc/periodic/ + +.for FILE in ${PERIODIC_FILES} + ${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/${FILE} +.endfor + +.include diff --git a/system/zfs-periodic/distinfo b/system/zfs-periodic/distinfo new file mode 100644 index 00000000..8822295d --- /dev/null +++ b/system/zfs-periodic/distinfo @@ -0,0 +1,2 @@ +SHA256 (ross-zfs-periodic-1.0.20130213-a481121_GH0.tar.gz) = e0d12bb3ff466e3aaabd09c2b9685b5e5ee5f91e0d62126c05ba33c60a7b9a9b +SIZE (ross-zfs-periodic-1.0.20130213-a481121_GH0.tar.gz) = 2527 diff --git a/system/zfs-periodic/pkg-descr b/system/zfs-periodic/pkg-descr new file mode 100644 index 00000000..1a338e9b --- /dev/null +++ b/system/zfs-periodic/pkg-descr @@ -0,0 +1,4 @@ +Scripts that uses the periodic system to create and manage zfs +snapshots. Easily configured via /etc/periodic.conf + +WWW: https://github.com/ross/zfs-periodic diff --git a/system/zfs-periodic/pkg-message b/system/zfs-periodic/pkg-message new file mode 100644 index 00000000..010d2e7d --- /dev/null +++ b/system/zfs-periodic/pkg-message @@ -0,0 +1,30 @@ +[ +{ type: install + message: <