diff options
author | jlam <jlam@pkgsrc.org> | 2003-10-06 07:53:04 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-10-06 07:53:04 +0000 |
commit | d151742e361d4f5d5f0352d5e1bfd24c4dc2196b (patch) | |
tree | 8c9967e9f71a4c5465908ee65bafbe0fd2b795a8 /security/sniff/patches | |
parent | 6ea83c6e37734af1bf815a9c7373ea65bc430803 (diff) | |
download | pkgsrc-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-aa | 14 |
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 + |