1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/sysutils/zfs-snapshot-mgmt/Makefile
Philip M. Gollucci 52b74b65c8 - Fix errors when dealing with the root data set
PR:             prots/140811
Submitted by:   Anonymous <swell.k@gmail.com>
Approved by:    maintainer timeout (1.5 months)
2010-01-11 03:42:14 +00:00

43 lines
1.0 KiB
Makefile

# New ports collection makefile for: zfs-snapshot-mgmt
# Date created: 6 July 2008
# Whom: Marcin Simonides <marcin@studio4plus.com>
#
# $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 <bsd.port.mk>