summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-11-16 15:10:10 +0000
committeradrianp <adrianp>2008-11-16 15:10:10 +0000
commite1aa88c0d22dee431a07542f34b767847b7cf01c (patch)
treec7e9b05e8893429325bbc3e433c1e7b6653e668b /net
parent62e7b773fe078c427faf92caad4277293338d426 (diff)
downloadpkgsrc-e1aa88c0d22dee431a07542f34b767847b7cf01c.tar.gz
libpcap dymanically generates man page sections based on the OS. For SunOS
MAN_MISC_INFO and MAN_FILE_FORMATS are in different sections to others so account for this with some PLIST magic. PKGREVISION++
Diffstat (limited to 'net')
-rw-r--r--net/libpcap/Makefile11
-rw-r--r--net/libpcap/PLIST11
2 files changed, 16 insertions, 6 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index 0525e6be897..a8acde4c568 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2008/11/07 11:51:10 abs Exp $
+# $NetBSD: Makefile,v 1.46 2008/11/16 15:10:10 adrianp Exp $
DISTNAME= libpcap-1.0.0
-PKGREVISION= 1
+PKGREVISION= 2
SVR4_PKGNAME= lpcap
CATEGORIES= net
MASTER_SITES= http://www.tcpdump.org/release/
@@ -19,6 +19,7 @@ INSTALLATION_DIRS= bin
USE_TOOLS+= bison gm4 lex
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+PLIST_VARS+= SunOS std
.include "../../mk/bsd.prefs.mk"
@@ -26,6 +27,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-ipv6
.endif
+.if ${OPSYS} == "SunOS"
+PLIST.SunOS= yes
+.else
+PLIST.std= yes
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include
diff --git a/net/libpcap/PLIST b/net/libpcap/PLIST
index 491fe620698..29d111094fa 100644
--- a/net/libpcap/PLIST
+++ b/net/libpcap/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2008/10/30 08:12:34 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2008/11/16 15:10:10 adrianp Exp $
bin/pcap-config
include/pcap-bpf.h
include/pcap-int.h
@@ -70,7 +70,10 @@ man/man3/pcap_snapshot.3
man/man3/pcap_stats.3
man/man3/pcap_statustostr.3
man/man3/pcap_strerror.3
-man/man5/pcap-savefile.5
-man/man7/pcap-filter.7
-man/man7/pcap-linktype.7
+${PLIST.std}man/man5/pcap-savefile.5
+${PLIST.std}man/man7/pcap-filter.7
+${PLIST.std}man/man7/pcap-linktype.7
+${PLIST.SunOS}man/man4/pcap-savefile.4
+${PLIST.SunOS}man/man5/pcap-filter.5
+${PLIST.SunOS}man/man5/pcap-linktype.5
@dirrm include/pcap