summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-04-07 13:01:17 +0000
committeragc <agc@pkgsrc.org>1999-04-07 13:01:17 +0000
commit86e27307f3ac7f4d00f30fd85c58171dd353ba6d (patch)
tree51e925f24e2a4a79378cfa0b4a839b06939be93a /net
parenta2a0edbda8b2f1cb6b131ea945b649fc7cd91dcd (diff)
downloadpkgsrc-86e27307f3ac7f4d00f30fd85c58171dd353ba6d.tar.gz
Make this package work on Solaris.
Diffstat (limited to 'net')
-rw-r--r--net/arpwatch/Makefile10
-rw-r--r--net/arpwatch/patches/patch-ad30
2 files changed, 37 insertions, 3 deletions
diff --git a/net/arpwatch/Makefile b/net/arpwatch/Makefile
index ace9124db7e..81e1c9ae47a 100644
--- a/net/arpwatch/Makefile
+++ b/net/arpwatch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1999/03/09 16:43:07 agc Exp $
+# $NetBSD: Makefile,v 1.8 1999/04/07 13:01:17 agc Exp $
#
DISTNAME= arpwatch-2.1a4
@@ -10,8 +10,6 @@ MAINTAINER= bouyer@netbsd.org
GNU_CONFIGURE= yes
-NOT_FOR_OPSYS= SunOS # Needs libpcap, which needs bpf.
-
post-install:
${INSTALL_MAN} ${WRKSRC}/arpwatch.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/man/man8
@@ -19,4 +17,10 @@ post-install:
${TOUCH} /var/db/arpwatch/arp.dat
${INSTALL_DATA} ${WRKSRC}/ethercodes.dat ${PREFIX}/etc
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+DEPENDS+= libpcap-0.4:../../net/libpcap
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/net/arpwatch/patches/patch-ad b/net/arpwatch/patches/patch-ad
new file mode 100644
index 00000000000..1cfd403a24f
--- /dev/null
+++ b/net/arpwatch/patches/patch-ad
@@ -0,0 +1,30 @@
+$NetBSD: patch-ad,v 1.4 1999/04/07 13:01:18 agc Exp $
+
+Make sure we find libpcap in the correct place on Solaris
+
+--- configure 1999/04/07 11:56:33 1.1
++++ configure 1999/04/07 12:01:01
+@@ -2183,7 +2183,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpcap $LIBS"
++LIBS="-L$LOCALBASE/lib -lpcap $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 2189 "configure"
+ #include "confdefs.h"
+@@ -2207,12 +2207,12 @@
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- libpcap="-lpcap"
++ libpcap="-L$LOCALBASE/lib -lpcap"
+ else
+ echo "$ac_t""no" 1>&6
+ fi
+
+- if test $libpcap = FAIL ; then
++ if test "X$libpcap" = "XFAIL" ; then
+ { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
+ fi
+ else