summaryrefslogtreecommitdiff
path: root/package/tcpdump
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:45:26 +0100
commit61692c9004d1f7114048c7c91ff4009aa94227e6 (patch)
tree6404a5e28843c76f121f4fb0e3ebe4b7f81b14dd /package/tcpdump
parent6b29d8e781bd88aedc19b4780adf706cfd1ba5d1 (diff)
tcpdump: add WITH_CHROOT flavour
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Diffstat (limited to 'package/tcpdump')
-rw-r--r--package/tcpdump/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/tcpdump/Makefile b/package/tcpdump/Makefile
index 5a25597b3..6910052a3 100644
--- a/package/tcpdump/Makefile
+++ b/package/tcpdump/Makefile
@@ -14,8 +14,9 @@ PKG_BUILDDEP:= libpcap
PKG_URL:= http://www.tcpdump.org/
PKG_SITES:= http://www.tcpdump.org/release/
-PKG_FLAVOURS:= WITH_IPV6
+PKG_FLAVOURS:= WITH_IPV6 WITH_CHROOT
PKGFD_WITH_IPV6:= enable IPv6 support
+PKGFD_WITH_CHROOT:= enable chrooting to /var/lib/tcpdump
include ${TOPDIR}/mk/package.mk
@@ -30,11 +31,17 @@ CONFIGURE_ARGS+= --enable-ipv6
else
CONFIGURE_ARGS+= --disable-ipv6
endif
+ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
+CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump"
+endif
XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
post-install:
${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/
+ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
+ ${INSTALL_DIR} ${IDIR_TCPDUMP}/var/lib/tcpdump
+endif
include ${TOPDIR}/mk/pkg-bottom.mk