Update security/ca_root_nss to version 3.69_1
[dports.git] / net / tcpdump / Makefile
1 # Created by: Bruce M Simpson <bms@FreeBSD.org>
2
3 PORTNAME=       tcpdump
4 PORTVERSION=    4.99.0
5 CATEGORIES=     net
6 MASTER_SITES=   http://www.tcpdump.org/release/
7
8 MAINTAINER=     garga@FreeBSD.org
9 COMMENT=        Ubiquitous network traffic analysis tool
10
11 LICENSE=        BSD3CLAUSE
12 LICENSE_FILE=   ${WRKSRC}/LICENSE
13
14 LIB_DEPENDS=    libpcap.so.1:net/libpcap
15
16 USES=           gmake
17
18 GNU_CONFIGURE=  yes
19 UNPRIV_USER?=   tcpdump
20 CHROOTDIR?=     /var/run/tcpdump
21
22 OPTIONS_DEFINE= CRYPTO SMB SMI USER CHROOT
23 OPTIONS_DEFAULT=        CRYPTO SMB SMI
24
25 CRYPTO_DESC=    Support IPSEC and TCPMD5
26 # This one is intentionally worded this way because the default
27 # description implies that tcpdump would not capture SMB, which
28 # is not true. It will just not print it if this option is off.
29 SMB_DESC=       Support printing SMB information
30 SMI_DESC=       Allow MIBs to be loaded on the fly
31 USER_DESC=      Drop privileges to dedicated user
32 CHROOT_DESC=    Chroot to /var/run/tcpdump (set CHROOTDIR to change)
33
34 CRYPTO_USES=            ssl
35 CRYPTO_CONFIGURE_WITH=  crypto
36 SMB_CONFIGURE_ENABLE=   smb
37 SMI_CONFIGURE_WITH=     smi
38 SMI_LIB_DEPENDS=        libsmi.so:net-mgmt/libsmi
39 USER_CONFIGURE_ON=      --with-user=${UNPRIV_USER}
40 USER_VARS=              USERS=${UNPRIV_USER} GROUPS=${UNPRIV_USER}
41 CHROOT_CONFIGURE_ON=    --with-chroot=${CHROOTDIR}
42
43 PLIST_FILES=    sbin/tcpdump \
44                 man/man1/tcpdump.1.gz
45
46 post-patch:
47         @${REINPLACE_CMD} -e 's,sys/capability.h,sys/capsicum.h,' \
48                 ${WRKSRC}/tcpdump.c
49
50 post-configure:
51         @${REINPLACE_CMD} -e "s,\./\.\./${LIBPCAP_FORCE_VER}/libpcap\.a,${LOCALBASE}/lib/libpcap.so.1," \
52                 ${WRKSRC}/Makefile
53
54 do-install:
55         ${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${STAGEDIR}/${PREFIX}/sbin
56         ${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${STAGEDIR}/${MAN1PREFIX}/man/man1
57
58 .include <bsd.port.mk>