PATCH_LIST=" 0012-netlink-fix-element-addition-to-map-with-stateful-ob.patch 0014-rule-fix-netlink-debug-flag-when-listing-table-rules.patch 0015-main-Fix-for-wrong-argument-passed-to-cache_release-.patch 0016-libnftables-Move-library-stuff-out-of-main.c.patch 0017-libnftables-Introduce-nft_ctx_flush_cache.patch 0018-cli-Use-nft_run_cmd_from_buffer.patch 0019-libnftables-Introduce-getters-and-setters-for-everyt.patch 0020-src-add-nft_-prefix-to-everything-exposed-through-in.patch 0022-libnftables-Get-rid-of-explicit-cache-flushes.patch 0029-parser-allow-classid-as-set-key.patch 0032-libnftables-Flush-iface-cache-after-command-executio.patch 0033-Eliminate-struct-mnl_ctx.patch 0034-libnftables-Unexport-enum-nftables_exit_codes.patch 0036-rule-Make-nft-export-respect-output_fp.patch 0037-src-tests-files-Remove-test-files.patch 0041-libnftables-Ensure-output_fp-is-never-NULL.patch 0043-utils-fix-one-compilation-error-with-with-mini-gmp.patch 0044-gmputil-turn-mpz_printf-into-mpz_vfprintf-to-restore.patch 0045-src-deprecate-flow-table-syntax-replace-it-by-meter.patch 0046-parser_bison-dismiss-anonymous-meters.patch 0047-parser_bison-no-need-for-name-token-for-meters.patch 0049-evaluate-print-error-for-null-string.patch 0050-ct-don-t-print-newline-if-label-bit-cannot-be-mapped.patch 0055-netlink_linearize-exthdr-op-must-be-u32.patch 0056-src-fix-protocol-context-update-on-big-endian-system.patch include-headers.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 } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }