diff options
author | Niko Mauno <niko.mauno@iki.fi> | 2019-11-26 22:14:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-04 12:30:58 +0000 |
commit | 567922d2fc7fbd0163bdafba1d6703ff296987ea (patch) | |
tree | c9fbb12075b0a10d469664d2b891190f6257c2e3 /meta/recipes-extended/iptables | |
parent | 888fbea05e119af294b52bc9d4a673ebfa03bd95 (diff) | |
download | poky-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.bb | 60 |
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." | |||
4 | HOMEPAGE = "http://www.netfilter.org/" | 4 | HOMEPAGE = "http://www.netfilter.org/" |
5 | BUGTRACKER = "http://bugzilla.netfilter.org/" | 5 | BUGTRACKER = "http://bugzilla.netfilter.org/" |
6 | LICENSE = "GPLv2+" | 6 | LICENSE = "GPLv2+" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263\ | 7 | LIC_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 | ||
10 | SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \ | 11 | SRC_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 | |||
17 | SRC_URI[md5sum] = "29de711d15c040c402cf3038c69ff513" | 17 | SRC_URI[md5sum] = "29de711d15c040c402cf3038c69ff513" |
18 | SRC_URI[sha256sum] = "a23cac034181206b4545f4e7e730e76e08b5f3dd78771ba9645a6756de9cdd80" | 18 | SRC_URI[sha256sum] = "a23cac034181206b4545f4e7e730e76e08b5f3dd78771ba9645a6756de9cdd80" |
19 | 19 | ||
20 | SYSTEMD_SERVICE_${PN} = "iptables.service" | ||
21 | |||
20 | inherit autotools pkgconfig systemd | 22 | inherit autotools pkgconfig systemd |
21 | 23 | ||
22 | EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR}" | 24 | EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR}" |
23 | 25 | ||
24 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 26 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
25 | |||
26 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | 27 | PACKAGECONFIG[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 | |||
32 | PACKAGECONFIG[libnftnl] = "--enable-nftables,--disable-nftables,libnftnl" | 33 | PACKAGECONFIG[libnftnl] = "--enable-nftables,--disable-nftables,libnftnl" |
33 | 34 | ||
34 | do_configure_prepend() { | 35 | do_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 | |||
41 | do_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 | ||
40 | PACKAGES += "${PN}-modules" | 51 | PACKAGES += "${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 | ||
50 | FILES_${PN} += "${datadir}/xtables" | ||
51 | |||
52 | # Include the symlinks as well in respective packages | ||
53 | FILES_${PN}-module-xt-conntrack += "${libdir}/xtables/libxt_state.so" | ||
54 | FILES_${PN}-module-xt-ct += "${libdir}/xtables/libxt_NOTRACK.so" | ||
55 | |||
56 | INSANE_SKIP_${PN}-module-xt-conntrack = "dev-so" | ||
57 | INSANE_SKIP_${PN}-module-xt-ct = "dev-so" | ||
58 | |||
59 | ALLOW_EMPTY_${PN}-modules = "1" | ||
60 | |||
61 | do_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 | |||
72 | SYSTEMD_SERVICE_${PN} = "iptables.service" | ||
73 | |||
74 | RDEPENDS_${PN} = "${PN}-module-xt-standard" | 61 | RDEPENDS_${PN} = "${PN}-module-xt-standard" |
75 | RRECOMMENDS_${PN} = " \ | 62 | RRECOMMENDS_${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 | |||
75 | FILES_${PN} += "${datadir}/xtables" | ||
76 | |||
77 | # Include the symlinks as well in respective packages | ||
78 | FILES_${PN}-module-xt-conntrack += "${libdir}/xtables/libxt_state.so" | ||
79 | FILES_${PN}-module-xt-ct += "${libdir}/xtables/libxt_NOTRACK.so" | ||
80 | |||
81 | ALLOW_EMPTY_${PN}-modules = "1" | ||
82 | |||
83 | INSANE_SKIP_${PN}-module-xt-conntrack = "dev-so" | ||
84 | INSANE_SKIP_${PN}-module-xt-ct = "dev-so" | ||