Make stage aware and turn on pcap_setdirection.
PR: ports/184325 Submitted by: Rodrigo Osorio <rodrigo@bebik.net>
This commit is contained in:
parent
5c4174835f
commit
9deecd4376
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338042
1 changed files with 7 additions and 5 deletions
|
@ -29,8 +29,10 @@ 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)
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CONFIGURE_ARGS+= --enable-pcap_setdirection --with-pcap_setdirection
|
||||
|
||||
# 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.
|
||||
|
@ -65,14 +67,14 @@ CONFIGURE_ARGS+= --with-chroot=${CHROOTDIR}
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
MAN1= tcpdump.1
|
||||
PLIST_FILES= sbin/tcpdump
|
||||
PLIST_FILES= sbin/tcpdump \
|
||||
man/man1/tcpdump.1.gz
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e "s,\./\.\./${LIBPCAP_FORCE_VER}/libpcap\.a,${LOCALBASE}/lib/libpcap.so.1," ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${PREFIX}/sbin
|
||||
${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${MAN1PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tcpdump ${STAGEDIR}/${PREFIX}/sbin
|
||||
${INSTALL_MAN} ${WRKSRC}/tcpdump.1 ${STAGEDIR}/${MAN1PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue