From a060feb534b853e079557004d1d00a19a4513039 Mon Sep 17 00:00:00 2001 From: Richard Dale Date: Fri, 12 Jun 2015 16:11:41 +0100 Subject: Add an iptables chunk and configure and build as similar to the iptables/Makefile in the openwrt repo Update the firewall3 sha1 to be the most recent --- strata/cpe-wrt.morph | 3 ++- strata/cpe-wrt/iptables.morph | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 strata/cpe-wrt/iptables.morph diff --git a/strata/cpe-wrt.morph b/strata/cpe-wrt.morph index 5cf71811..05122e16 100644 --- a/strata/cpe-wrt.morph +++ b/strata/cpe-wrt.morph @@ -22,6 +22,7 @@ chunks: build-depends: - libnl-tiny - name: iptables + morph: strata/cpe-wrt/iptables.morph repo: upstream:iptables ref: fd7b66e7b6f535e56c0ee8eb442298a453ae4572 unpetrify-ref: baserock/1.4.21-openwrt @@ -107,7 +108,7 @@ chunks: - name: firewall3 morph: strata/cpe-wrt/firewall3.morph repo: upstream:openwrt/firewall3 - ref: 165029cb8c0f1545628f44143aec965e64cef021 + ref: 980b7859bbd1db1e5e46422fccccbce38f9809ab unpetrify-ref: build-depends: - ubus diff --git a/strata/cpe-wrt/iptables.morph b/strata/cpe-wrt/iptables.morph new file mode 100644 index 00000000..72a6b2b7 --- /dev/null +++ b/strata/cpe-wrt/iptables.morph @@ -0,0 +1,19 @@ +name: iptables +kind: chunk + +configure-commands: +- autoreconf -ivf +- | + ./configure --enable-shared \ + --enable-devel \ + --with-xtlibdir=/usr/lib/iptables \ + --enable-static \ + --prefix=$PREFIX + +build-commands: +- make CFLAGS="-ffunction-sections -fdata-sections -DNO_LEGACY" LDFLAGS="-lm" + +install-commands: +- make install +- install extensions/libiptext*.so $DESTDIR$PREFIX/lib/ + -- cgit v1.2.1