diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 12:40:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 12:40:07 +0000 |
commit | 61c38f4132ceda837da59176724153b84869afe4 (patch) | |
tree | 0547a382514926a133e1a167796db7c35438b7de /main | |
parent | cceeeee0a2f1c6a11ed05cb9518887a1d4a319be (diff) | |
download | aports-61c38f4132ceda837da59176724153b84869afe4.tar.bz2 aports-61c38f4132ceda837da59176724153b84869afe4.tar.xz |
main/shorewall-lite: replace opts in init.d script
ref #943
Diffstat (limited to 'main')
-rw-r--r-- | main/shorewall-lite/APKBUILD | 6 | ||||
-rwxr-xr-x | main/shorewall-lite/shorewall-lite.initd | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/main/shorewall-lite/APKBUILD b/main/shorewall-lite/APKBUILD index 3c6cb54575..12543eede7 100644 --- a/main/shorewall-lite/APKBUILD +++ b/main/shorewall-lite/APKBUILD @@ -1,10 +1,10 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=shorewall-lite pkgver=4.2.10 -pkgrel=1 +pkgrel=2 pkgdesc="An iptables-based firewall whose config is handled by a normal Shorewall" url="http://www.shorewall.net/" -arch="all" +arch="noarch" license="GPL-2" depends="iptables iproute2" #subpackages="$pkgname-doc" @@ -18,4 +18,4 @@ build() { install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } md5sums="ef5958819ba18801bacfe20e67184f2a shorewall-lite-4.2.10.tar.bz2 -17a37c934aeb601ce288f77000253e1e shorewall-lite.initd" +e55f393cd7bf2a12bf4b29fecce9ed71 shorewall-lite.initd" diff --git a/main/shorewall-lite/shorewall-lite.initd b/main/shorewall-lite/shorewall-lite.initd index d2537e8a12..bff41d8270 100755 --- a/main/shorewall-lite/shorewall-lite.initd +++ b/main/shorewall-lite/shorewall-lite.initd @@ -3,7 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/files/shorewall-lite,v 1.1 2007/05/20 22:32:36 mjolnir Exp $ -opts="start stop restart clear reset refresh" +extra_commands="clear reset" +extra_started_commands="refresh" depend() { need net @@ -42,7 +43,7 @@ clear() { # state. (21 Nov 2004 eldad) ebegin "Clearing all firewall rules and setting policy to ACCEPT" - /sbin/shorewall-lite clear + /sbin/shorewall-lite clear && mark_service_stopped "${SVCNAME}" eend $? } |