PATCH_LIST="tcpdump-add-chroot-option.diff rpc-moved-to-netdb.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://www.tcpdump.org/release/tcpdump-3.9.8.tar.gz MAKEDEPENDS=( "libpcap-*:::*.h *.a" "openssl-*:::*.so *.so.* *.h" ) function do_config { # this configure script is totally buggy, it messes with $prefix to check # for compile-time libraries. # ac_cv_ssleay_path=$FLXROOTDIR/usr # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FAST" \ td_cv_buggygetaddrinfo=no ac_cv_linux_vers=2 ./configure --prefix=$FLXROOTDIR/usr --host=$FLXTARG --build=$FLXHOST --enable-ipv6 --with-user=nobody --with-chroot=/var/empty --with-pcap=linux } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR prefix=/usr set_default_perm $ROOTDIR # change group to netpkt (91) chgrp 91 $ROOTDIR/usr/sbin/tcpdump chmod g-r,g+sx $ROOTDIR/usr/sbin/tcpdump }