aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:32:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:32:58 +0000
commit3501a750925f630855836e5dc1c5f0b460610819 (patch)
treea13b387c19f92dba1fe8cff8c269e4ef7f8c84ff /main
parent1a496ed9e4c79f009399a7577a9d182cf22948f3 (diff)
downloadaports-3501a750925f630855836e5dc1c5f0b460610819.tar.bz2
aports-3501a750925f630855836e5dc1c5f0b460610819.tar.xz
main/shorewall-common: replace opts in init.d script
ref #943
Diffstat (limited to 'main')
-rw-r--r--main/shorewall-common/APKBUILD4
-rw-r--r--main/shorewall-common/shorewall.initd9
2 files changed, 7 insertions, 6 deletions
diff --git a/main/shorewall-common/APKBUILD b/main/shorewall-common/APKBUILD
index 8a443cba59..57eb97f521 100644
--- a/main/shorewall-common/APKBUILD
+++ b/main/shorewall-common/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall-common
pkgver=4.2.11
-pkgrel=2
+pkgrel=3
pkgdesc="Shoreline Firewall is an iptables-based firewall for Linux."
url="http://www.shorewall.net/"
arch="noarch"
@@ -36,4 +36,4 @@ package() {
md5sums="4da98c58a00f1cf1d8c31bdb5db40e96 shorewall-common-4.2.11.tar.bz2
3b120e6e040bd7d8fc85cf30dfeb32a0 shorewall-common-ipset.patch
575c645d8b880f29e483b9a4933ac59d shorewall-iptables-deprecated.patch
-71fb6da1f50f5c6e9dd35b60b3629531 shorewall.initd"
+4b55b9b0484c880b0b9562bd4ded1d0a shorewall.initd"
diff --git a/main/shorewall-common/shorewall.initd b/main/shorewall-common/shorewall.initd
index 9dda676c57..db89daec81 100644
--- a/main/shorewall-common/shorewall.initd
+++ b/main/shorewall-common/shorewall.initd
@@ -1,9 +1,10 @@
#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-common/files/shorewall.initd,v 1.2 2008/05/04 13:16:40 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/files/shorewall.initd,v 1.1 2009/10/09 12:22:43 pva Exp $
-opts="start stop restart clear reset refresh check"
+extra_commands="clear reset check"
+extra_started_commands="refresh"
depend() {
need net
@@ -47,7 +48,7 @@ clear() {
# state. (21 Nov 2004 eldad)
ebegin "Clearing all firewall rules and setting policy to ACCEPT"
- /sbin/shorewall clear
+ /sbin/shorewall clear && mark_service_stopped "${SVCNAME}"
eend $?
}