# New ports collection makefile for: zfs-snapshot-mgmt # Date created: 6 July 2008 # Whom: Marcin Simonides # # $FreeBSD$ # PORTNAME= zfs-snapshot-mgmt PORTVERSION= 20090201 PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://marcin.studio4plus.com/files/ MAINTAINER= marius@nuenneri.ch COMMENT= Automatic ZFS snapshot management tool USE_RUBY= yes RUBY_NO_BUILD_DEPENDS= yes NO_BUILD= yes MAN8= zfs-snapshot-mgmt.8 SUB_FILES= pkg-message post-patch: .SILENT ${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \ -e 's|/usr/local|${PREFIX}|g' \ -e 's|${PREFIX}\(/bin/ruby\)|${LOCALBASE}\1|g' \ {} + do-install: @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8 @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc post-install: @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \ fi @${CAT} ${PKGMESSAGE} .include