Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting2.git;a=commitdiff;h=3f451aeb30db55ae5cc04c0e185c119ae77973ed
commit 3f451aeb30db55ae5cc04c0e185c119ae77973ed Author: James Buren <[email protected]> Date: Mon Jun 4 22:24:31 2012 -0500 iptables-1.4.14-1-x86_64 * convert to use systemd schema diff --git a/source/network/iptables/FrugalBuild b/source/network/iptables/FrugalBuild index b0f0e88..989bb28 100644 --- a/source/network/iptables/FrugalBuild +++ b/source/network/iptables/FrugalBuild @@ -3,7 +3,7 @@ # Maintainer: Zsolt Szalai <[email protected]> pkgname=iptables -pkgver=1.4.13 +pkgver=1.4.14 pkgrel=1 pkgdesc="IP packet filter administration" url="http://www.iptables.org/" @@ -15,6 +15,9 @@ up2date="lynx -dump http://www.iptables.org/projects/iptables/downloads.html|gre source=(ftp://ftp.netfilter.org/pub/iptables/iptables-$pkgver.tar.bz2 \ rc.firewall rc.firewall-hu.po iptables firewall firewall.libexec firewall.service) signatures=($source.sig '' '' '' '' '' '') +_F_sysvinit_units=(firewall) +_F_systemd_units=(firewall=e) +Finclude systemd # As you can see, the /etc/sysconfig/firewall file was generated by # iptables-save. I used the following commands before using iptables-save: @@ -32,6 +35,7 @@ build() Frcd2 firewall Fexe firewall.libexec /usr/libexec/firewall Ffile /lib/systemd/system/firewall.service + Fgenscriptlet } # optimization OK diff --git a/source/network/iptables/iptables.install b/source/network/iptables/iptables.install deleted file mode 100644 index 9687e55..0000000 --- a/source/network/iptables/iptables.install +++ /dev/null @@ -1,29 +0,0 @@ -# arg 1: the new package version -post_install() -{ - chkconfig --add rc.firewall - mkdir -p /etc/systemd/system/multi-user.target.wants - ln -s /lib/systemd/system/firewall.service /etc/systemd/system/multi-user.target.wants/ -} - -post_upgrade() -{ - systemctl daemon-reload >/dev/null 2>&1 - # this can be removed after Frugalware-1.6 - if [ `vercmp $2 1.4.12.1-2` -lt 0 ] ; then - if chkconfig rc.firewall; then - post_install - fi - fi -} - -# arg 1: the old package version -post_remove() -{ - rm -f /etc/systemd/system/multi-user.target.wants/firewall.service - chkconfig --del rc.firewall -} - -op=$1 -shift -$op $* _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
