2003-12-10 19:14:20 +00:00
|
|
|
# New ports collection makefile for: tcpdump
|
|
|
|
# Date created: 10 December 2003
|
|
|
|
# Whom: Bruce M Simpson <bms@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tcpdump
|
2012-06-19 01:39:42 +00:00
|
|
|
PORTVERSION= 4.3.0
|
2006-12-19 10:30:19 +00:00
|
|
|
CATEGORIES= net ipv6
|
2009-04-24 13:42:54 +00:00
|
|
|
MASTER_SITES= http://www.tcpdump.org/release/
|
2003-12-10 19:14:20 +00:00
|
|
|
|
2009-04-24 14:39:33 +00:00
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
2003-12-10 19:14:20 +00:00
|
|
|
COMMENT= Ubiquitous network traffic analysis tool
|
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
LIB_DEPENDS= pcap:${PORTSDIR}/net/libpcap
|
2003-12-10 19:14:20 +00:00
|
|
|
|
2005-01-23 00:39:01 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-04-24 13:42:54 +00:00
|
|
|
USE_GMAKE= yes
|
2009-05-09 02:46:09 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2004-01-13 17:57:36 +00:00
|
|
|
|
2012-01-15 03:15:02 +00:00
|
|
|
UNPRIV_USER?= nobody
|
|
|
|
CHROOTDIR?= /var/run/tcpdump
|
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
OPTIONS_DEFINE= CRYPTO IPV6 SMB SMI USER CHROOT
|
|
|
|
OPTIONS_DEFAULT= CRYPTO IPV6 SMB SMI
|
|
|
|
|
|
|
|
CRYPTO_DESC= Support IPSEC and TCPMD5
|
|
|
|
# This one is intentionally worded this way because the default
|
|
|
|
# description implies that tcpdump would not capture SMB, which
|
|
|
|
# is not true. It will just not print it if this option is off.
|
|
|
|
SMB_DESC= Support printing SMB information
|
|
|
|
SMI_DESC= Allow MIBs to be loaded on the fly
|
|
|
|
USER_DESC= Drop privileges to nobody
|
|
|
|
CHROOT_DESC= Chroot to /var/run/tcpdump (set CHROOTDIR to change)
|
|
|
|
|
2012-01-15 03:15:02 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2005-01-23 00:39:01 +00:00
|
|
|
# The --without-crypto flag needs to be explicitly specified. The
|
|
|
|
# configure script gets confused if you specify --with-crypto and
|
|
|
|
# thinks this means you *don't* want crypto.
|
|
|
|
#
|
2012-06-19 01:39:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MCRYPTO}
|
2012-01-15 03:15:02 +00:00
|
|
|
USE_OPENSSL= yes
|
2012-06-19 01:39:42 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-crypto
|
2005-01-23 00:39:01 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2005-01-23 00:39:01 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-12-10 19:14:20 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
.if empty(PORT_OPTIONS:MSMB)
|
2009-04-24 13:42:54 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-smb
|
2012-01-15 03:15:02 +00:00
|
|
|
.endif
|
2004-08-03 01:51:24 +00:00
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MSMI}
|
|
|
|
LIB_DEPENDS+= smi:${PORTSDIR}/net-mgmt/libsmi
|
2012-01-15 03:15:02 +00:00
|
|
|
.else
|
2012-06-19 01:39:42 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-smi
|
2012-01-15 03:15:02 +00:00
|
|
|
.endif
|
2005-03-26 22:07:43 +00:00
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MUSER}
|
2012-01-15 03:15:02 +00:00
|
|
|
CONFIGURE_ARGS+= --with-user=${UNPRIV_USER}
|
|
|
|
.endif
|
2009-04-24 13:42:54 +00:00
|
|
|
|
2012-06-19 01:39:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MCHROOT}
|
2012-01-15 03:15:02 +00:00
|
|
|
CONFIGURE_ARGS+= --with-chroot=${CHROOTDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2009-04-24 13:42:54 +00:00
|
|
|
|
2012-01-15 03:15:02 +00:00
|
|
|
MAN1= tcpdump.1
|
|
|
|
PLIST_FILES= sbin/tcpdump
|
2003-12-11 13:49:52 +00:00
|
|
|
|
2009-04-24 13:42:54 +00:00
|
|
|
post-configure:
|
2010-04-07 19:49:33 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,\./\.\./${LIBPCAP_FORCE_VER}/libpcap\.a,${LOCALBASE}/lib/libpcap.so.1," ${WRKSRC}/Makefile
|
2009-04-24 13:42:54 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${MAN1PREFIX}/man/man1
|
2004-01-13 17:57:36 +00:00
|
|
|
|
2012-01-15 03:15:02 +00:00
|
|
|
.include <bsd.port.post.mk>
|