diff options
author | arved <arved@FreeBSD.org> | 2006-01-19 18:40:16 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2006-01-19 18:40:16 +0800 |
commit | 77a0297ab4925e68f1f7404ecfd98f479ae33436 (patch) | |
tree | 802235502b04b947550d2dfb294b4960b155778c | |
parent | e3c2a8f1d3e3b26d7871e0d29853326dfb558382 (diff) | |
download | freebsd-ports-gnome-77a0297ab4925e68f1f7404ecfd98f479ae33436.tar.gz freebsd-ports-gnome-77a0297ab4925e68f1f7404ecfd98f479ae33436.tar.zst freebsd-ports-gnome-77a0297ab4925e68f1f7404ecfd98f479ae33436.zip |
Fix path to nagiosplugindir
PR: 91969
Submitted by: Andrew Kilpatrick
-rw-r--r-- | net-mgmt/nagios-spamd-plugin/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net-mgmt/nagios-spamd-plugin/Makefile b/net-mgmt/nagios-spamd-plugin/Makefile index 1a0788adb16a..f21b725c00b3 100644 --- a/net-mgmt/nagios-spamd-plugin/Makefile +++ b/net-mgmt/nagios-spamd-plugin/Makefile @@ -6,6 +6,7 @@ PORTNAME= nagios-spamd-plugin PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= ftp://jhweiss.de/pub/users/weiss/nagios/plugins/ DISTNAME= check_spamd.pl @@ -17,6 +18,7 @@ COMMENT= Nagios plugin for checking SpamAssassins spamd RUN_DEPENDS+= ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long USE_PERL5= yes +USE_REINPLACE= yes NO_WRKSUBDIR= yes NO_BUILD= yes PLIST_FILES= ${NAGIOS_PLUGIN_DIR}/check_spamd.pl @@ -28,6 +30,11 @@ do-extract: ${MKDIR} ${WRKSRC} ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC} +post-patch: + ${REINPLACE_CMD} -e \ + "s,/usr/local/nagios/libexec,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \ + ${WRKSRC}/check_spamd.pl + do-install: ${MKDIR} ${PREFIX}/${NAGIOS_PLUGIN_DIR} ${INSTALL_SCRIPT} ${WRKSRC}/check_spamd.pl ${PREFIX}/${NAGIOS_PLUGIN_DIR} |