PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.netfilter.org/projects/iptables/files/iptables-1.4.21.tar.bz2" MAKEDEPENDS= FLXLIBDIR=lib # libpcap >- 1.1.1 MAKEDEPENDS=( "libnfnetlink-*:::*.a *.h" "libpcap-1.*:::*.h *.a" ) # WARNING! leave the space in libnfnetlink_CFLAGS!!! function do_config { libnetfilter_conntrack_CFLAGS="" \ libnetfilter_conntrack_LIBS="" \ libnfnetlink_CFLAGS=" " \ libnfnetlink_LIBS="-lnfnetlink" \ LDFLAGS="-lc -L$FLXROOTDIR/usr/lib/" \ LIBS="-L$FLXROOTDIR/usr/lib/" \ CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB \ ./configure --with-xtlibdir=/$FLXLIBDIR/iptables \ --enable-nfsynproxy \ --enable-bpf-compiler \ --prefix=/usr \ --sbindir=/sbin \ --host=${FLXTARG} --build=${FLXHOST} --with-sysroot=${FLXROOTDIR} } function do_compile_only { $FLXMAKE CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB } function do_prepack { $FLXMAKE install BINDIR=/sbin LIBDIR=/$FLXLIBDIR MANDIR=/usr/man INCDIR=/usr/include DO_IPV6=1 DESTDIR=$ROOTDIR DO_MULTI=1 mv $ROOTDIR/usr/lib/*.so $ROOTDIR/$FLXLIBDIR/ mv $ROOTDIR/usr/lib/*.so.* $ROOTDIR/$FLXLIBDIR/ } function do_clean { $FLXMAKE clean || true }