summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/iptables
diff options
context:
space:
mode:
authorNiko Mauno <niko.mauno@iki.fi>2019-11-26 22:14:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-04 12:30:58 +0000
commit567922d2fc7fbd0163bdafba1d6703ff296987ea (patch)
treec9fbb12075b0a10d469664d2b891190f6257c2e3 /meta/recipes-extended/iptables
parent888fbea05e119af294b52bc9d4a673ebfa03bd95 (diff)
downloadpoky-567922d2fc7fbd0163bdafba1d6703ff296987ea.tar.gz
iptables: Cosmetic fixes to recipe
Introduce cosmetic changes to recipe content, most notably - Change indentation style to four spaces in task statements - Reorder several entries according to oe-stylize.py suggestions (From OE-Core rev: c1d162b6165f11b7b5ae5c6066e7683d5e1379fc) Signed-off-by: Niko Mauno <niko.mauno@iki.fi> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/iptables')
-rw-r--r--meta/recipes-extended/iptables/iptables_1.8.3.bb60
1 files changed, 29 insertions, 31 deletions
diff --git a/meta/recipes-extended/iptables/iptables_1.8.3.bb b/meta/recipes-extended/iptables/iptables_1.8.3.bb
index ff9fcb1b53..563c8ae354 100644
--- a/meta/recipes-extended/iptables/iptables_1.8.3.bb
+++ b/meta/recipes-extended/iptables/iptables_1.8.3.bb
@@ -4,8 +4,9 @@ filtering code in Linux."
4HOMEPAGE = "http://www.netfilter.org/" 4HOMEPAGE = "http://www.netfilter.org/"
5BUGTRACKER = "http://bugzilla.netfilter.org/" 5BUGTRACKER = "http://bugzilla.netfilter.org/"
6LICENSE = "GPLv2+" 6LICENSE = "GPLv2+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263\ 7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://iptables/iptables.c;beginline=13;endline=25;md5=c5cffd09974558cf27d0f763df2a12dc" 8 file://iptables/iptables.c;beginline=13;endline=25;md5=c5cffd09974558cf27d0f763df2a12dc \
9"
9 10
10SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \ 11SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \
11 file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \ 12 file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \
@@ -13,16 +14,16 @@ SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \
13 file://iptables.service \ 14 file://iptables.service \
14 file://iptables.rules \ 15 file://iptables.rules \
15" 16"
16
17SRC_URI[md5sum] = "29de711d15c040c402cf3038c69ff513" 17SRC_URI[md5sum] = "29de711d15c040c402cf3038c69ff513"
18SRC_URI[sha256sum] = "a23cac034181206b4545f4e7e730e76e08b5f3dd78771ba9645a6756de9cdd80" 18SRC_URI[sha256sum] = "a23cac034181206b4545f4e7e730e76e08b5f3dd78771ba9645a6756de9cdd80"
19 19
20SYSTEMD_SERVICE_${PN} = "iptables.service"
21
20inherit autotools pkgconfig systemd 22inherit autotools pkgconfig systemd
21 23
22EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR}" 24EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR}"
23 25
24PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" 26PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
25
26PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 27PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
27 28
28# libnfnetlink recipe is in meta-networking layer 29# libnfnetlink recipe is in meta-networking layer
@@ -32,9 +33,19 @@ PACKAGECONFIG[libnfnetlink] = "--enable-libnfnetlink,--disable-libnfnetlink,libn
32PACKAGECONFIG[libnftnl] = "--enable-nftables,--disable-nftables,libnftnl" 33PACKAGECONFIG[libnftnl] = "--enable-nftables,--disable-nftables,libnftnl"
33 34
34do_configure_prepend() { 35do_configure_prepend() {
35 # Remove some libtool m4 files 36 # Remove some libtool m4 files
36 # Keep ax_check_linker_flags.m4 which belongs to autoconf-archive. 37 # Keep ax_check_linker_flags.m4 which belongs to autoconf-archive.
37 rm -f libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 38 rm -f libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
39}
40
41do_install_append() {
42 install -d ${D}${sysconfdir}/iptables
43 install -m 0644 ${WORKDIR}/iptables.rules ${D}${sysconfdir}/iptables
44
45 install -d ${D}${systemd_system_unitdir}
46 install -m 0644 ${WORKDIR}/iptables.service ${D}${systemd_system_unitdir}
47
48 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/iptables.service
38} 49}
39 50
40PACKAGES += "${PN}-modules" 51PACKAGES += "${PN}-modules"
@@ -47,30 +58,6 @@ python populate_packages_prepend() {
47 d.appendVar('RDEPENDS_' + metapkg, ' ' + ' '.join(modules)) 58 d.appendVar('RDEPENDS_' + metapkg, ' ' + ' '.join(modules))
48} 59}
49 60
50FILES_${PN} += "${datadir}/xtables"
51
52# Include the symlinks as well in respective packages
53FILES_${PN}-module-xt-conntrack += "${libdir}/xtables/libxt_state.so"
54FILES_${PN}-module-xt-ct += "${libdir}/xtables/libxt_NOTRACK.so"
55
56INSANE_SKIP_${PN}-module-xt-conntrack = "dev-so"
57INSANE_SKIP_${PN}-module-xt-ct = "dev-so"
58
59ALLOW_EMPTY_${PN}-modules = "1"
60
61do_install_append() {
62
63 install -d ${D}${sysconfdir}/iptables
64 install -m 0644 ${WORKDIR}/iptables.rules ${D}${sysconfdir}/iptables
65
66 install -d ${D}${systemd_system_unitdir}
67 install -m 0644 ${WORKDIR}/iptables.service ${D}${systemd_system_unitdir}
68
69 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/iptables.service
70}
71
72SYSTEMD_SERVICE_${PN} = "iptables.service"
73
74RDEPENDS_${PN} = "${PN}-module-xt-standard" 61RDEPENDS_${PN} = "${PN}-module-xt-standard"
75RRECOMMENDS_${PN} = " \ 62RRECOMMENDS_${PN} = " \
76 ${PN}-modules \ 63 ${PN}-modules \
@@ -84,3 +71,14 @@ RRECOMMENDS_${PN} = " \
84 kernel-module-nf-nat \ 71 kernel-module-nf-nat \
85 kernel-module-ipt-masquerade \ 72 kernel-module-ipt-masquerade \
86" 73"
74
75FILES_${PN} += "${datadir}/xtables"
76
77# Include the symlinks as well in respective packages
78FILES_${PN}-module-xt-conntrack += "${libdir}/xtables/libxt_state.so"
79FILES_${PN}-module-xt-ct += "${libdir}/xtables/libxt_NOTRACK.so"
80
81ALLOW_EMPTY_${PN}-modules = "1"
82
83INSANE_SKIP_${PN}-module-xt-conntrack = "dev-so"
84INSANE_SKIP_${PN}-module-xt-ct = "dev-so"