Changeset View
Changeset View
Standalone View
Standalone View
net/tcpdump/Makefile
# Created by: Bruce M Simpson <bms@FreeBSD.org> | # Created by: Bruce M Simpson <bms@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= tcpdump | PORTNAME= tcpdump | ||||
PORTVERSION= 4.9.2 | PORTVERSION= 4.9.2 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= net ipv6 | CATEGORIES= net ipv6 | ||||
MASTER_SITES= http://www.tcpdump.org/release/ | MASTER_SITES= http://www.tcpdump.org/release/ | ||||
MAINTAINER= garga@FreeBSD.org | MAINTAINER= garga@FreeBSD.org | ||||
COMMENT= Ubiquitous network traffic analysis tool | COMMENT= Ubiquitous network traffic analysis tool | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LIB_DEPENDS= libpcap.so.1:net/libpcap | LIB_DEPENDS= libpcap.so.1:net/libpcap | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USES= gmake | USES= gmake | ||||
UNPRIV_USER?= nobody | UNPRIV_USER?= tcpdump | ||||
CHROOTDIR?= /var/run/tcpdump | CHROOTDIR?= /var/run/tcpdump | ||||
OPTIONS_DEFINE= CRYPTO IPV6 SMB SMI USER CHROOT | OPTIONS_DEFINE= CRYPTO IPV6 SMB SMI USER CHROOT | ||||
OPTIONS_DEFAULT= CRYPTO SMB SMI | OPTIONS_DEFAULT= CRYPTO SMB SMI | ||||
CRYPTO_DESC= Support IPSEC and TCPMD5 | CRYPTO_DESC= Support IPSEC and TCPMD5 | ||||
# This one is intentionally worded this way because the default | # This one is intentionally worded this way because the default | ||||
# description implies that tcpdump would not capture SMB, which | # description implies that tcpdump would not capture SMB, which | ||||
# is not true. It will just not print it if this option is off. | # is not true. It will just not print it if this option is off. | ||||
SMB_DESC= Support printing SMB information | SMB_DESC= Support printing SMB information | ||||
SMI_DESC= Allow MIBs to be loaded on the fly | SMI_DESC= Allow MIBs to be loaded on the fly | ||||
USER_DESC= Drop privileges to nobody | USER_DESC= Drop privileges to dedicated user | ||||
CHROOT_DESC= Chroot to /var/run/tcpdump (set CHROOTDIR to change) | CHROOT_DESC= Chroot to /var/run/tcpdump (set CHROOTDIR to change) | ||||
CRYPTO_USES= ssl | CRYPTO_USES= ssl | ||||
CRYPTO_CONFIGURE_WITH= crypto | CRYPTO_CONFIGURE_WITH= crypto | ||||
IPV6_CONFIGURE_ENABLE= ipv6 | IPV6_CONFIGURE_ENABLE= ipv6 | ||||
SMB_CONFIGURE_ENABLE= smb | SMB_CONFIGURE_ENABLE= smb | ||||
SMI_CONFIGURE_WITH= smi | SMI_CONFIGURE_WITH= smi | ||||
SMI_LIB_DEPENDS= libsmi.so:net-mgmt/libsmi | SMI_LIB_DEPENDS= libsmi.so:net-mgmt/libsmi | ||||
USER_CONFIGURE_ON= --with-user=${UNPRIV_USER} | USER_CONFIGURE_ON= --with-user=${UNPRIV_USER} | ||||
USER_VARS= USERS=${UNPRIV_USER} GROUPS=${UNPRIV_USER} | |||||
CHROOT_CONFIGURE_ON= --with-chroot=${CHROOTDIR} | CHROOT_CONFIGURE_ON= --with-chroot=${CHROOTDIR} | ||||
PLIST_FILES= sbin/tcpdump \ | PLIST_FILES= sbin/tcpdump \ | ||||
man/man1/tcpdump.1.gz | man/man1/tcpdump.1.gz | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
post-configure: | post-configure: | ||||
@${REINPLACE_CMD} -e "s,\./\.\./${LIBPCAP_FORCE_VER}/libpcap\.a,${LOCALBASE}/lib/libpcap.so.1," \ | @${REINPLACE_CMD} -e "s,\./\.\./${LIBPCAP_FORCE_VER}/libpcap\.a,${LOCALBASE}/lib/libpcap.so.1," \ | ||||
${WRKSRC}/Makefile | ${WRKSRC}/Makefile | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${STAGEDIR}/${PREFIX}/sbin | ${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${STAGEDIR}/${PREFIX}/sbin | ||||
${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${STAGEDIR}/${MAN1PREFIX}/man/man1 | ${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${STAGEDIR}/${MAN1PREFIX}/man/man1 | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |