PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.netfilter.org/projects/iptables/files/iptables-${PKGVER}.tar.xz" MAKEDEPENDS= FLXLIBDIR=lib # libpcap >- 1.1.1 MAKEDEPENDS=( "libnfnetlink-*:::*.a *.h" "libpcap-1.*:::*.h *.a" "libmnl-1.*:::*.h *.a" "libnftnl-1.*:::*.h *.so *.so.*" ) # WARNING! leave the space in libnfnetlink_CFLAGS!!! function do_config { libnetfilter_conntrack_CFLAGS="" \ libnetfilter_conntrack_LIBS="" \ libnfnetlink_CFLAGS=" " \ libnfnetlink_LIBS="-lnfnetlink" \ libnftnl_CFLAGS=" " \ libnftnl_LIBS="-lnftnl" \ libpcap_CFLAGS=" " \ libpcap_LIBS="-lpcap" \ libmnl_CFLAGS=" " \ libmnl_LIBS="-lmnl" \ LDFLAGS="-lc -L$FLXROOTDIR/usr/lib/" \ LIBS="-L$FLXROOTDIR/usr/lib/" \ PKG_CONFIG=/bin/false \ CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ ./configure --with-xtlibdir=/$FLXLIBDIR/iptables \ --enable-nfsynproxy \ --enable-bpf-compiler \ --with-xt-lock-name=/var/run/xtables.lock \ --prefix=/usr --sysconfdir=/etc --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 }