freebsd-ports/sysutils/zfs-periodic/Makefile
Ruslan Makhmatkhanov 301e31bc7a - update to 1.0.20130213
- remove etc/periodic/monthly/998.zfs-scrub--it was rendered redundant by the
  scrub periodic added to the base
- remove the scrub_in_progress check. As of 7.3-R and 8.0-R, ZFS supports taking
  snapshots while a scrub is running--this check is no longer necessary on all
  supported releases
- remove files/patch-zfs-snapshot (was fixed upstream).

PR:		176132
Submitted by:	Darren Pilgrim <darren.pilgrim@gmail.com>
Approved by:	Peter Ankerstal <peter@pean.org> (maintainer)
2013-02-16 15:59:25 +00:00

50 lines
1.1 KiB
Makefile

# Created by: Peter Ankerstal <peter@pean.org>
# $FreeBSD$
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_COMMIT= 9ffa662
GH_TAGNAME= ${GH_COMMIT}
NO_BUILD= yes
PERIODIC_DIRS= etc/periodic/hourly etc/periodic/daily \
etc/periodic/weekly etc/periodic/monthly \
etc/periodic
PERIODIC_FILES= etc/periodic/hourly/000.zfs-snapshot \
etc/periodic/daily/000.zfs-snapshot \
etc/periodic/weekly/000.zfs-snapshot \
etc/periodic/monthly/000.zfs-snapshot
PLIST_FILES= ${PERIODIC_FILES} bin/zfs-snapshot
PLIST_DIRSTRY= ${PERIODIC_DIRS}
post-patch:
.for _file in ${PERIODIC_FILES}
@${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \
${WRKSRC}/${_file}
.endfor
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/zfs-snapshot ${PREFIX}/bin
.for _dir in ${PERIODIC_DIRS}
@${MKDIR} ${PREFIX}/${_dir}
.endfor
.for _file in ${PERIODIC_FILES}
@${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${PREFIX}/${_file}
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>