[OE-core] [PATCH 5/5] iptables: update init script and bb file
Kang Kai
Kai.Kang at windriver.com
Tue Jun 24 01:49:35 UTC 2014
On 2014年06月23日 19:44, Anders Darander wrote:
> * 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.
Of course.
And as I replied in last main, do you think that an empty rule is
better? A little concern is for iptables newbies.
>
> 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.
iptables and ip6tables are not split into separated packages, so I put
them together. And package iptbales is not installed by default indeed.
Regards,
Kai
>
> 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
>> +}
--
Regards,
Neil | Kai Kang
More information about the Openembedded-core
mailing list