aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-12-21 12:55:12 +0800
committerpetef <petef@FreeBSD.org>2003-12-21 12:55:12 +0800
commit64c23d5c336ddc135eb57dcdd2a8beda95873577 (patch)
tree0d01a757a61a02ecc3ea91418872874f195b200f /net-mgmt
parentd8141d8b13afae1520356b0ff1bc1fc2cc72b9c9 (diff)
downloadfreebsd-ports-gnome-64c23d5c336ddc135eb57dcdd2a8beda95873577.tar.gz
freebsd-ports-gnome-64c23d5c336ddc135eb57dcdd2a8beda95873577.tar.zst
freebsd-ports-gnome-64c23d5c336ddc135eb57dcdd2a8beda95873577.zip
Fix the path to some base utilities in plugin scripts.
PR: 57476 Submitted by: Krzysztof Stryjek <wtpooh@acn.waw.pl>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/netsaint-plugins/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net-mgmt/netsaint-plugins/Makefile b/net-mgmt/netsaint-plugins/Makefile
index ea07d85d0fd4..b915019c4150 100644
--- a/net-mgmt/netsaint-plugins/Makefile
+++ b/net-mgmt/netsaint-plugins/Makefile
@@ -7,7 +7,7 @@
PORTNAME= netsaint-plugins
PORTVERSION= 1.2.9.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netsaintplug
@@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Plugins for netsaint
USE_SUBMAKE= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/netsaint/sbin \
--libexecdir=${PREFIX}/libexec/netsaint \
@@ -36,6 +37,13 @@ pre-fetch:
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
+post-patch:
+ @${FIND} ${WRKSRC}/plugins-scripts/ -type f -perm -+x | ${XARGS} -n1 \
+ ${REINPLACE_CMD} -e "s,/bin/diff,/usr/bin/diff,g" \
+ -e "s,/bin/sed,/usr/bin/sed,g" \
+ -e "s,/bin/tail,/usr/bin/tail,g" \
+ -e "s,/bin/grep,/usr/bin/grep,g"
+
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc