summaryrefslogtreecommitdiffstats
path: root/net/libpcap
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-01-13 18:04:51 +0000
committerbms <bms@FreeBSD.org>2004-01-13 18:04:51 +0000
commita24fc9b257ba3786d7e8774c12aeb4e52d75e6db (patch)
tree22ceeffa12d63d52ec9e6ad9cad4a3616fc7b7bb /net/libpcap
parent54fe39972aca91822dfc9229c4e0455ffd93ac07 (diff)
downloadFreeBSD-ports-a24fc9b257ba3786d7e8774c12aeb4e52d75e6db.zip
FreeBSD-ports-a24fc9b257ba3786d7e8774c12aeb4e52d75e6db.tar.gz
Update libpcap to latest beta version and add option to overwrite base system
version of libpcap. PR: ports/61096 Submitted by: edwin
Diffstat (limited to 'net/libpcap')
-rw-r--r--net/libpcap/Makefile22
-rw-r--r--net/libpcap/distinfo2
-rw-r--r--net/libpcap/files/patchbase-Makefile.in30
-rw-r--r--net/libpcap/files/pkg-message-base13
-rw-r--r--net/libpcap/pkg-plist2
5 files changed, 67 insertions, 2 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index 8b2895e..2a9094f 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -7,9 +7,10 @@
PORTNAME= libpcap
PORTVERSION= 0.8.1
+PORTREVISION= 351
CATEGORIES= net
MASTER_SITES= http://www.tcpdump.org/beta/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-316
+DISTNAME= ${PORTNAME}-${PORTVERSION}-${PORTREVISION}
MAINTAINER= bms@FreeBSD.org
COMMENT= Ubiquitous network traffic capture library
@@ -22,6 +23,20 @@ MAN3= pcap.3
GNU_CONFIGURE= yes
+.if defined(LIBPCAP_OVERWRITE_BASE)
+PREFIX= /usr
+PKGNAMESUFFIX= -overwrite-base
+MANPREFIX= ${PREFIX}/share
+CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man
+PLIST_SUB+= NOTBASE="@comment "
+PLIST_SUB+= BASE=""
+EXTRA_PATCHES+= ${FILESDIR}/patchbase-Makefile.in
+PKGMESSAGE= ${FILESDIR}/pkg-message-base
+.else
+PLIST_SUB+= BASE="@comment "
+PLIST_SUB+= NOTBASE=""
+.endif
+
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
@@ -30,4 +45,9 @@ CONFIGURE_ARGS+= --enable-ipv6
CONFIGURE_ARGS+= --without-dag
.endif
+.if defined(LIBPCAP_OVERWRITE_BASE)
+post-install:
+ ${CAT} ${PKGMESSAGE}
+.endif
+
.include <bsd.port.mk>
diff --git a/net/libpcap/distinfo b/net/libpcap/distinfo
index 419564f..1c7c63c 100644
--- a/net/libpcap/distinfo
+++ b/net/libpcap/distinfo
@@ -1 +1 @@
-MD5 (libpcap-0.8.1-316.tar.gz) = ab8f17ca785b9e0272f98010dc16e13b
+MD5 (libpcap-0.8.1-351.tar.gz) = 7e40804221dfa9d10a41f129b9edf3b4
diff --git a/net/libpcap/files/patchbase-Makefile.in b/net/libpcap/files/patchbase-Makefile.in
new file mode 100644
index 0000000..6f234ab
--- /dev/null
+++ b/net/libpcap/files/patchbase-Makefile.in
@@ -0,0 +1,30 @@
+--- Makefile.in.orig Thu Jan 8 16:38:30 2004
++++ Makefile.in Thu Jan 8 16:41:40 2004
+@@ -96,13 +96,17 @@
+
+ CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
+
+-all: libpcap.a
++all: libpcap.a libpcap.so.2
+
+ libpcap.a: $(OBJ)
+ @rm -f $@
+ ar rc $@ $(OBJ) $(LIBS)
+ $(RANLIB) $@
+
++libpcap.so.2: $(OBJ)
++ @rm -f $@
++ $(CC) -shared -Wl,-x -o libpcap.so.2 -Wl,-soname,libpcap.so.2 `lorder *.o | tsort -q`
++
+ scanner.c: $(srcdir)/scanner.l
+ @rm -f $@
+ $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
+@@ -154,6 +158,8 @@
+ install:
+ [ -d $(DESTDIR)$(libdir) ] || \
+ (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
++ $(INSTALL_DATA) libpcap.so.2 $(DESTDIR)$(libdir)/libpcap.so.2
++ ln -fs $(DESTDIR)$(libdir)/libpcap.so.2 $(DESTDIR)$(libdir)/libpcap.so
+ $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
+ $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
+ [ -d $(DESTDIR)$(includedir) ] || \
diff --git a/net/libpcap/files/pkg-message-base b/net/libpcap/files/pkg-message-base
new file mode 100644
index 0000000..9cb9a77
--- /dev/null
+++ b/net/libpcap/files/pkg-message-base
@@ -0,0 +1,13 @@
+***************************************
+* You might run into troubles running *
+* tcpdump, you should recompile it if *
+* it segfaults: *
+* $ cd /usr/src/usr.sbin/tcpdump *
+* $ make && make install *
+***************************************
+* You can always reinstall the older *
+* libraries via the source directory *
+* of the base system: *
+* $ cd /usr/src/lib/libpcap *
+* $ make && make install *
+***************************************
diff --git a/net/libpcap/pkg-plist b/net/libpcap/pkg-plist
index 209925c..a76804c 100644
--- a/net/libpcap/pkg-plist
+++ b/net/libpcap/pkg-plist
@@ -1,4 +1,6 @@
lib/libpcap.a
+%%BASE%%lib/libpcap.so.2
+%%BASE%%lib/libpcap.so
include/pcap.h
include/pcap-namedb.h
include/pcap-bpf.h
OpenPOWER on IntegriCloud