pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/sniff Sniff needs to depend on the libpcap pa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/801930b1489d
branches: trunk
changeset: 462616:801930b1489d
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Oct 06 07:53:04 2003 +0000
description:
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:
security/sniff/Makefile | 12 +++++++++++-
security/sniff/distinfo | 4 ++--
security/sniff/patches/patch-aa | 14 +++++++++-----
3 files changed, 22 insertions(+), 8 deletions(-)
diffs (69 lines):
diff -r 7448ede29eef -r 801930b1489d security/sniff/Makefile
--- a/security/sniff/Makefile Mon Oct 06 07:45:06 2003 +0000
+++ b/security/sniff/Makefile Mon Oct 06 07:53:04 2003 +0000
@@ -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 @@
MAINTAINER= zuntum%NetBSD.org@localhost
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"
diff -r 7448ede29eef -r 801930b1489d security/sniff/distinfo
--- a/security/sniff/distinfo Mon Oct 06 07:45:06 2003 +0000
+++ b/security/sniff/distinfo Mon Oct 06 07:53:04 2003 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 15:40:39 agc Exp $
+$NetBSD: distinfo,v 1.3 2003/10/06 07:53:04 jlam Exp $
SHA1 (sniff-2.0.tar.gz) = 9e9ef76eaccaa6cbb3c23054a29a08dd9faed328
Size (sniff-2.0.tar.gz) = 10720 bytes
-SHA1 (patch-aa) = e9b9dd7ade75d67a4d202b3deddd04d4593afe46
+SHA1 (patch-aa) = 8e5d7967940c60f3bb6c53ab053e7c95c7371605
diff -r 7448ede29eef -r 801930b1489d security/sniff/patches/patch-aa
--- a/security/sniff/patches/patch-aa Mon Oct 06 07:45:06 2003 +0000
+++ b/security/sniff/patches/patch-aa Mon Oct 06 07:53:04 2003 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2001/03/13 14:14:41 zuntum Exp $
+$NetBSD: patch-aa,v 1.3 2003/10/06 07:53:04 jlam Exp $
---- Makefile.orig Thu Feb 15 13:47:36 2001
+--- Makefile.orig Thu Feb 15 04:47:36 2001
+++ Makefile
-@@ -1,13 +1,10 @@
+@@ -1,24 +1,21 @@
# Makefile for NetBSD
-CC=gcc
@@ -16,8 +16,11 @@
OBJS = sniff2.o clear.o ifOpen.o lookupDNShost.o printData.o printHeader.o readTCP.o sniffData.o
-@@ -17,8 +14,8 @@
- $(CC) $(CFLAGS) -o sniff2 $(OBJS) -lpcap
+ all: sniff2
+
+ sniff2: $(OBJS)
+- $(CC) $(CFLAGS) -o sniff2 $(OBJS) -lpcap
++ $(CC) $(CFLAGS) $(LDFLAGS) -o sniff2 $(OBJS) -lpcap $(LIBS)
install:
- $(CP) sniff2 $(INSTALL_DIR)
@@ -26,3 +29,4 @@
+ $(BSD_INSTALL_MAN) sniff2.1 $(INSTALL_MAN)/man1
clean:
$(RM) $(OBJS) sniff2
+
Home |
Main Index |
Thread Index |
Old Index