[OE-core] [PATCH 5/5] iptables: update init script and bb file
Anders Darander
anders at chargestorm.se
Mon Jun 23 11:44:36 UTC 2014
* Kai Kang <kai.kang at windriver.com> [140623 04:34]:
> Update path of command iptables in init script that we put it in
> /usr/sbin rather than /sbin. Then update bb file to install init script,
> configure and rules files.
These new files aren't that big, but could you anyway package at least
the rules files into a separate package? Using an RRECOMMENDS would be
fine, as I can easily add a BAD_RECOMMENDATION for that package.
It might be that I don't need/want both of iptables and ip6tables
installed; or even that I don't want either of those installed by
default.
Cheers,
Anders
> +do_install_append() {
> + install -d -m 755 ${D}${sysconfdir}/init.d
> + install -m 755 ${WORKDIR}/iptables.init ${D}${sysconfdir}/init.d/iptables
> + install -m 755 ${WORKDIR}/iptables.init ${D}${sysconfdir}/init.d/ip6tables
> + sed -i -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' ${D}${sysconfdir}/init.d/ip6tables
> +
> + install -d -m 755 ${D}${sysconfdir}/sysconfig
> + install -m 755 ${WORKDIR}/iptables-config ${D}${sysconfdir}/sysconfig
> + install -m 755 ${WORKDIR}/iptables-config ${D}${sysconfdir}/sysconfig/ip6tables-config
> + sed -i -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' ${D}${sysconfdir}/sysconfig/ip6tables-config
> +
> + install -m 755 ${WORKDIR}/iptables.rules ${D}${sysconfdir}/sysconfig/iptables
> + install -m 755 ${WORKDIR}/ip6tables.rules ${D}${sysconfdir}/sysconfig/ip6tables
> +}
--
Anders Darander
ChargeStorm AB / eStorm AB
More information about the Openembedded-core
mailing list