View | Details | Raw Unified | Return to bug 61096
Collapse All | Expand All

(-)/usr/home/edwin/cvs/ports/net/libpcap/Makefile (-1 / +21 lines)
Lines 7-15 Link Here
7
7
8
PORTNAME=	libpcap
8
PORTNAME=	libpcap
9
PORTVERSION=	0.8.1
9
PORTVERSION=	0.8.1
10
PORTREVISION=	351
10
CATEGORIES=	net
11
CATEGORIES=	net
11
MASTER_SITES=	http://www.tcpdump.org/beta/
12
MASTER_SITES=	http://www.tcpdump.org/beta/
12
DISTNAME=	${PORTNAME}-${PORTVERSION}-316
13
DISTNAME=	${PORTNAME}-${PORTVERSION}-${PORTREVISION}
13
14
14
MAINTAINER=	bms@FreeBSD.org
15
MAINTAINER=	bms@FreeBSD.org
15
COMMENT=	Ubiquitous network traffic capture library
16
COMMENT=	Ubiquitous network traffic capture library
Lines 22-33 Link Here
22
23
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
25
26
.if defined(LIBPCAP_OVERWRITE_BASE)
27
PREFIX=		/usr
28
PKGNAMESUFFIX=	-overwrite-base
29
MANPREFIX=	${PREFIX}/share
30
CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man
31
PLIST_SUB+=	NOTBASE="@comment "
32
PLIST_SUB+=	BASE=""
33
EXTRA_PATCHES+=	${FILESDIR}/patchbase-Makefile.in
34
PKGMESSAGE=	${FILESDIR}/pkg-message-base
35
.else
36
PLIST_SUB+=	BASE="@comment "
37
PLIST_SUB+=	NOTBASE=""
38
.endif
39
25
.if !defined(WITHOUT_IPV6)
40
.if !defined(WITHOUT_IPV6)
26
CONFIGURE_ARGS+=	--enable-ipv6
41
CONFIGURE_ARGS+=	--enable-ipv6
27
.endif
42
.endif
28
43
29
.if !defined(WITH_DAG)
44
.if !defined(WITH_DAG)
30
CONFIGURE_ARGS+=	--without-dag
45
CONFIGURE_ARGS+=	--without-dag
46
.endif
47
48
.if defined(LIBPCAP_OVERWRITE_BASE)
49
post-install:
50
	${CAT} ${PKGMESSAGE}
31
.endif
51
.endif
32
52
33
.include <bsd.port.mk>
53
.include <bsd.port.mk>
(-)/usr/home/edwin/cvs/ports/net/libpcap/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (libpcap-0.8.1-316.tar.gz) = ab8f17ca785b9e0272f98010dc16e13b
1
MD5 (libpcap-0.8.1-351.tar.gz) = 7e40804221dfa9d10a41f129b9edf3b4
(-)/usr/home/edwin/cvs/ports/net/libpcap/files/patchbase-Makefile.in (+30 lines)
Line 0 Link Here
1
--- Makefile.in.orig	Thu Jan  8 16:38:30 2004
2
+++ Makefile.in	Thu Jan  8 16:41:40 2004
3
@@ -96,13 +96,17 @@
4
 
5
 CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
6
 
7
-all: libpcap.a
8
+all: libpcap.a libpcap.so.2
9
 
10
 libpcap.a: $(OBJ)
11
 	@rm -f $@
12
 	ar rc $@ $(OBJ) $(LIBS)
13
 	$(RANLIB) $@
14
 
15
+libpcap.so.2: $(OBJ)
16
+	@rm -f $@
17
+	$(CC) -shared -Wl,-x  -o libpcap.so.2 -Wl,-soname,libpcap.so.2  `lorder *.o | tsort -q`
18
+
19
 scanner.c: $(srcdir)/scanner.l
20
 	@rm -f $@
21
 	$(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
22
@@ -154,6 +158,8 @@
23
 install:
24
 	[ -d $(DESTDIR)$(libdir) ] || \
25
 	    (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
26
+	$(INSTALL_DATA) libpcap.so.2 $(DESTDIR)$(libdir)/libpcap.so.2
27
+	ln -fs $(DESTDIR)$(libdir)/libpcap.so.2 $(DESTDIR)$(libdir)/libpcap.so
28
 	$(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
29
 	$(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
30
 	[ -d $(DESTDIR)$(includedir) ] || \
(-)/usr/home/edwin/cvs/ports/net/libpcap/files/pkg-message-base (+13 lines)
Line 0 Link Here
1
***************************************
2
* You might run into troubles running *
3
* tcpdump, you should recompile it if *
4
* it segfaults:                       *
5
* $ cd /usr/src/usr.sbin/tcpdump      *
6
* $ make && make install              *
7
***************************************
8
* You can always reinstall the older  *
9
* libraries via the source directory  *
10
* of the base system:                 *
11
* $ cd /usr/src/lib/libpcap           *
12
* $ make && make install              *
13
***************************************
(-)/usr/home/edwin/cvs/ports/net/libpcap/pkg-plist (+2 lines)
Lines 1-4 Link Here
1
lib/libpcap.a
1
lib/libpcap.a
2
%%BASE%%lib/libpcap.so.2
3
%%BASE%%lib/libpcap.so
2
include/pcap.h
4
include/pcap.h
3
include/pcap-namedb.h
5
include/pcap-namedb.h
4
include/pcap-bpf.h
6
include/pcap-bpf.h

Return to bug 61096