diff options
author | wxs <wxs@FreeBSD.org> | 2010-01-25 06:14:45 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2010-01-25 06:14:45 +0800 |
commit | 803db7b5fe2e2f6da16a98bd3fb1c8ec9018253e (patch) | |
tree | d4ca4e1798b688ea1d4b7c973ef04e1d64dc5e8b /net/libpcap | |
parent | 7e07f9abf5fa3f98fdddb50796af7a91f394de6c (diff) | |
download | freebsd-ports-gnome-803db7b5fe2e2f6da16a98bd3fb1c8ec9018253e.tar.gz freebsd-ports-gnome-803db7b5fe2e2f6da16a98bd3fb1c8ec9018253e.tar.zst freebsd-ports-gnome-803db7b5fe2e2f6da16a98bd3fb1c8ec9018253e.zip |
- Explictly declare when cloning is allowed.
Bump PORTREVISION to address this for older packages.
- While here fix whitespace.
Noticed by: csjp@
Diffstat (limited to 'net/libpcap')
-rw-r--r-- | net/libpcap/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile index dbc4e62fd473..aa69dabf7fe9 100644 --- a/net/libpcap/Makefile +++ b/net/libpcap/Makefile @@ -7,6 +7,7 @@ PORTNAME= libpcap PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= http://www.tcpdump.org/release/ DISTNAME= ${PORTNAME}-${PORTVERSION} @@ -84,7 +85,7 @@ MAN5= pcap-savefile.5 MAN7= pcap-filter.7 pcap-linktype.7 MLINKS= pcap_datalink_val_to_name.3 \ - pcap_datalink_val_to_description.3 \ + pcap_datalink_val_to_description.3 \ pcap_dump_open.3 pcap_dump_fopen.3 \ pcap_geterr.3 pcap_perror.3 \ pcap_inject.3 pcap_sendpacket.3 \ @@ -123,6 +124,14 @@ post-install: .include <bsd.port.pre.mk> +# Packages are built on a kernel that has cloning, but the resulting +# package will be run on a system that does not have cloning (7.x). +# Always use bpf device, but specify CFLAGS if we have cloning. +CONFIGURE_ARGS+= --with-pcap=bpf +.if ${OSVERSION} > 800043 +CFLAGS+= -DHAVE_DEVICE_CLONING=1 +.endif + .if ${ARCH} == "amd64" CFLAGS+= -fPIC .endif |