summaryrefslogtreecommitdiff
path: root/security/sniff/patches
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/patches
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/patches')
-rw-r--r--security/sniff/patches/patch-aa14
1 files changed, 9 insertions, 5 deletions
diff --git a/security/sniff/patches/patch-aa b/security/sniff/patches/patch-aa
index ecee8da9458..40aa34f9aec 100644
--- a/security/sniff/patches/patch-aa
+++ b/security/sniff/patches/patch-aa
@@ -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 @@ $NetBSD: patch-aa,v 1.2 2001/03/13 14:14:41 zuntum Exp $
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 @@ $NetBSD: patch-aa,v 1.2 2001/03/13 14:14:41 zuntum Exp $
+ $(BSD_INSTALL_MAN) sniff2.1 $(INSTALL_MAN)/man1
clean:
$(RM) $(OBJS) sniff2
+