aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-11-21 02:40:51 +0800
committermiwi <miwi@FreeBSD.org>2009-11-21 02:40:51 +0800
commitcd2624f60f38830d9e6f6dfe165f7ecd9446152a (patch)
treecbe3aa477eaf95e8d86f25a28466d8825fd3cd75 /sysutils
parent025f857283ef5391b70d830b8e516e01bb284da9 (diff)
downloadfreebsd-ports-gnome-cd2624f60f38830d9e6f6dfe165f7ecd9446152a.tar.gz
freebsd-ports-gnome-cd2624f60f38830d9e6f6dfe165f7ecd9446152a.tar.zst
freebsd-ports-gnome-cd2624f60f38830d9e6f6dfe165f7ecd9446152a.zip
- Respect NOPORT*
PR: 140045 Submitted by: Anonymous <swell.k@gmail.com> Approved by: maintainer
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/zfs-snapshot-mgmt/Makefile7
-rw-r--r--sysutils/zfs-snapshot-mgmt/files/pkg-message.in2
2 files changed, 7 insertions, 2 deletions
diff --git a/sysutils/zfs-snapshot-mgmt/Makefile b/sysutils/zfs-snapshot-mgmt/Makefile
index da8ba1950989..72dc6bcbb123 100644
--- a/sysutils/zfs-snapshot-mgmt/Makefile
+++ b/sysutils/zfs-snapshot-mgmt/Makefile
@@ -20,7 +20,12 @@ NO_BUILD= yes
MAN8= zfs-snapshot-mgmt.8
SUB_FILES= pkg-message
-PKGMESSAGE= ${WRKDIR}/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
diff --git a/sysutils/zfs-snapshot-mgmt/files/pkg-message.in b/sysutils/zfs-snapshot-mgmt/files/pkg-message.in
index 51059aa13176..4d5bd81cca7f 100644
--- a/sysutils/zfs-snapshot-mgmt/files/pkg-message.in
+++ b/sysutils/zfs-snapshot-mgmt/files/pkg-message.in
@@ -3,7 +3,7 @@ To actually turn on the automatic snapshots you have to do the following:
1. Add an appropriate crontab entry, e.g.:
- echo "*/5 * * * * root /usr/local/bin/zfs-snapshot-mgmt" >> /etc/crontab
+ echo "*/5 * * * * root %%PREFIX%%/bin/zfs-snapshot-mgmt" >> /etc/crontab
See zfs-snapshot-mgmt(8) manpage for more details.