libpcap stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: libpcap
Version: 0.9.8
Revision: 13
BuildDepends:
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: True
Conflicts: libpcap, libpcap1
Replaces: libpcap, libpcap1
Source: http://www.tcpdump.org/release/%n-%v.tar.gz
Source-MD5: 5208f24d0328ee7c20b52c43eaa9aa0e
ConfigureParams: --mandir=%p/share/man --enable-ipv6
InstallScript: <<
make install install-shared DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<= 0.6.2-4)
Files: lib/libpcap.*.dylib
Shlibs: %p/lib/libpcap.0.dylib 0.9.8 %n (>= 0.9.8-1)
DocFiles: CHANGES CREDITS LICENSE README TODO VERSION
<<
DocFiles: CHANGES CREDITS LICENSE README TODO VERSION
Description: Network packet capture library
Maintainer: Max Horn
Homepage: http://www.tcpdump.org/
License: BSD

libpcap stable port .patch

diff -ru libpcap-0.8.3/Makefile.in libpcap-0.8.1-patched/Makefile.in
--- libpcap-0.8.3/Makefile.in 2003-12-15 02:42:23.000000000 +0100
+++ libpcap-0.8.3-patched/Makefile.in 2004-01-01 03:55:11.000000000 +0100
@@ -48,7 +48,7 @@
LIBS = @V_LIBS@

# Standard CFLAGS
-CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
+CFLAGS = $(CCOPT) $(INCLS) $(DEFS) -fno-common

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -94,14 +94,17 @@
TAGFILES = \
$(SRC) $(HDR) $(TAGHDR)

-CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
+CLEANFILES = $(OBJ) libpcap*.dylib $(GENSRC) $(GENHDR) lex.yy.c

-all: libpcap.a
+VERSION = 0.8.3

-libpcap.a: $(OBJ)
- @rm -f $@
- ar rc $@ $(OBJ) $(LIBS)
- $(RANLIB) $@
+all: libpcap.dylib
+
+libpcap.dylib: $(OBJ)
+ rm -f libpcap*.dylib
+ $(CC) -dynamiclib -undefined error -o libpcap.$(VERSION).dylib $(OBJ) $(LIBS) -install_name $(libdir)/libpcap.0.dylib -compatibility_version $(VERSION) -current_version $(VERSION)
+ ln -s libpcap.$(VERSION).dylib libpcap.0.dylib
+ ln -s libpcap.$(VERSION).dylib libpcap.dylib

scanner.c: $(srcdir)/scanner.l
@rm -f $@
@@ -151,11 +154,14 @@
bpf_filter.o: bpf_filter.c
$(CC) $(CFLAGS) -c bpf_filter.c

-install:
+install: all
[ -d $(DESTDIR)$(libdir) ] || \
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
- $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
- $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
+ $(INSTALL) -m 444 libpcap.$(VERSION).dylib $(DESTDIR)$(libdir)/libpcap.$(VERSION).dylib
+ ln -s libpcap.$(VERSION).dylib $(DESTDIR)$(libdir)/libpcap.0.dylib
+ ln -s libpcap.$(VERSION).dylib $(DESTDIR)$(libdir)/libpcap.dylib
+ #$(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
+ #$(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
[ -d $(DESTDIR)$(includedir) ] || \
(mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
$(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h
@@ -169,7 +175,7 @@
$(DESTDIR)$(mandir)/man3/pcap.3

uninstall:
- rm -f $(DESTDIR)$(libdir)/libpcap.a
+ rm -f $(DESTDIR)$(libdir)/libpcap*.dylib
rm -f $(DESTDIR)$(includedir)/pcap.h
rm -f $(DESTDIR)$(includedir)/pcap-bpf.h
rm -f $(DESTDIR)$(includedir)/pcap-namedb.h

libpcap _unstable_ port .patch