summaryrefslogtreecommitdiff
path: root/security/sniff/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-10-06 07:53:04 +0000
committerjlam <jlam@pkgsrc.org>2003-10-06 07:53:04 +0000
commitd151742e361d4f5d5f0352d5e1bfd24c4dc2196b (patch)
tree8c9967e9f71a4c5465908ee65bafbe0fd2b795a8 /security/sniff/Makefile
parent6ea83c6e37734af1bf815a9c7373ea65bc430803 (diff)
downloadpkgsrc-d151742e361d4f5d5f0352d5e1bfd24c4dc2196b.tar.gz
Sniff needs to depend on the libpcap package on non-NetBSD systems, so
convert to use buildlink2 and include libpcap/buildlink2.mk to handle this correctly. Also fix network library problems on Solaris. From pkg/22915 by Jonathan Perkin.
Diffstat (limited to 'security/sniff/Makefile')
-rw-r--r--security/sniff/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/sniff/Makefile b/security/sniff/Makefile
index 3366a8e5f75..70c0ee65c8c 100644
--- a/security/sniff/Makefile
+++ b/security/sniff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2003/07/17 22:53:16 grant Exp $
+# $NetBSD: Makefile,v 1.8 2003/10/06 07:53:04 jlam Exp $
#
DISTNAME= sniff-2.0
@@ -8,4 +8,14 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= zuntum@NetBSD.org
COMMENT= Program to sniff logins and passwords
+USE_BUILDLINK2= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+LIBS+= -lsocket -lnsl
+MAKE_ENV+= LIBS="${LIBS}"
+.endif
+
+.include "../../net/libpcap/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"