diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-11-20 18:40:51 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-11-20 18:40:51 +0000 |
commit | 693c8d0237b96bf445a4c2f6ff3169851cef8cd7 (patch) | |
tree | fb6b5f202fc607c66af62bc06624c9ce876a5912 /sysutils/zfs-snapshot-mgmt | |
parent | 9d7f84a6282600a10102fabb4d7220f773a95825 (diff) | |
download | ports-693c8d0237b96bf445a4c2f6ff3169851cef8cd7.tar.gz ports-693c8d0237b96bf445a4c2f6ff3169851cef8cd7.zip |
Notes
Diffstat (limited to 'sysutils/zfs-snapshot-mgmt')
-rw-r--r-- | sysutils/zfs-snapshot-mgmt/Makefile | 7 | ||||
-rw-r--r-- | sysutils/zfs-snapshot-mgmt/files/pkg-message.in | 2 |
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. |