PATCH_LIST="0001-missing-nf_tables_compat.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://netfilter.org/projects/nftables/files/nftables-${PKGVER}.tar.bz2 MAKEDEPENDS=('libmnl-*:::*.a *.h' 'libnftnl-*:::*.so* *.h' 'ncurses-*:::*.so *.so.* *.h' 'readline-*:::*.so *.so.* *.h' ) function do_config { # Sometimes, broken packages will need LD="$CC" PKG_CONFIG=/bin/true \ LIBS="-lncurses -lmnl -lnftnl" \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ ./configure --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc \ --with-mini-gmp --disable-man-doc } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR mkdir -p $ROOTDIR/etc/nftables cp files/examples/*.nft $ROOTDIR/etc/nftables/ cp $PKGDIR/add-ons/rules.conf $ROOTDIR/etc/nftables/ chmod 444 $ROOTDIR/etc/nftables/*.nft mkdir -p $ROOTDIR/sbin/init.d cp $PKGDIR/add-ons/nftables $ROOTDIR/sbin/init.d/ mkdir -p $ROOTDIR/usr/share/nftables/examples/ cp $PKGDIR/add-ons/config.rc.nftables $ROOTDIR/usr/share/nftables/examples/ set_default_perm $ROOTDIR }