summaryrefslogtreecommitdiff
path: root/net/rancid
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-07-01 14:37:55 +0000
committerjoerg <joerg@pkgsrc.org>2010-07-01 14:37:55 +0000
commit0c9df22c6a93029cd0c514874e6ea2dc224c38b2 (patch)
tree42a29ff663901874864578f6ed73f6761802bb6a /net/rancid
parente9706e09e94ea1be8d8f3fcb304ead572b49b6da (diff)
downloadpkgsrc-0c9df22c6a93029cd0c514874e6ea2dc224c38b2.tar.gz
On NetBSD, if /sbin/ping exists, pass that down. /sbin is not part of
the default user PATH.
Diffstat (limited to 'net/rancid')
-rw-r--r--net/rancid/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/rancid/Makefile b/net/rancid/Makefile
index 79c3903b223..42cb8089a41 100644
--- a/net/rancid/Makefile
+++ b/net/rancid/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $
+# $NetBSD: Makefile,v 1.2 2010/07/01 14:37:55 joerg Exp $
#
DISTNAME= rancid-2.3.2
@@ -60,6 +60,12 @@ INSTALLATION_DIRS= share/examples/rancid
INSTALLATION_DIRS+= share/doc/rancid
INSTALLATION_DIRS+= ${VARBASE}/rancid
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" && exists(/sbin/ping)
+CONFIGURE_ARGS+= ac_cv_PING_PATH=/sbin/ping
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/lg.conf.sample ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/rancid.conf.sample ${DESTDIR}${EGDIR}