Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=883794488e90e2ecdfee12c3a0cad051d4df64ab

commit 883794488e90e2ecdfee12c3a0cad051d4df64ab
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Wed Jul 22 22:09:39 2009 +0200

ufw-0.27.1-2-i686
*fixed rc script

diff --git a/source/network-extra/ufw/FrugalBuild 
b/source/network-extra/ufw/FrugalBuild
index 0612b72..4b82156 100644
--- a/source/network-extra/ufw/FrugalBuild
+++ b/source/network-extra/ufw/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=ufw
pkgver=0.27.1
-pkgrel=1
+pkgrel=2
pkgdesc="Uncomplicated Firewall is program for managing a netfilter firewall"
url="https://launchpad.net/ufw";
depends=('iptables>=1.4' 'python>=2.6.1' 'sed>=3.95')
@@ -16,11 +16,11 @@ backup=(etc/ufw/after.rules etc/ufw/after6.rules 
etc/ufw/before.rules etc/ufw/be
source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz
 setup.patch rc.ufw)
sha1sums=('6ede47fe111429df0231adb1659d7b39b32d6ac1' \
'bbe23a0700407fba843ca7356a425bc7ae787feb' \
-          'd4c61b4b698216377e567bfdd4582e4810c22cea')
+          '81539812acafc4db9939e6b718d571ac98330bd6')
build()
{
Fcd
Fpatchall
python setup.py install --root=${Fdestdir} || Fdie
Frcd2 ufw
-}
\ No newline at end of file
+}
diff --git a/source/network-extra/ufw/rc.ufw b/source/network-extra/ufw/rc.ufw
index 27c264d..3e201f9 100644
--- a/source/network-extra/ufw/rc.ufw
+++ b/source/network-extra/ufw/rc.ufw
@@ -5,44 +5,36 @@
# distributed under GPL License
# description: Uncomplicated Firewall.

-if [ -s "/usr/share/ufw/ufw-init-functions" ]; then
-    . "/usr/share/ufw/ufw-init-functions"
-else
-    echo "Could not find $s (aborting)"
-    exit 1
-fi
-
-case "$1" in
-start)
-    # process multiple error strings
-    ret=0
-    output=`ufw_start` || ret="$?"
-    echo "$output" | while read line ; do
-        echo "$line"
-    done
-    exit "$ret"
-    ;;
-stop)
-    ufw_stop || exit "$?"
-    ;;
-force-stop)
-    ufw_stop --force || exit "$?"
-    ;;
-restart|force-reload)
-    ufw_reload || exit "$?"
-    ;;
-status)
-    ufw_status || exit "$?"
-    ;;
-flush-all)
-    # Use sparingly. It flushes the built-in chains, deletes all non-builtin
-    # chains and resets the policy to ACCEPT
-    flush_builtins || exit "$?"
-    ;;
-*)
-    echo "Usage: /etc/rc.d/ufw 
{start|stop|restart|force-reload|force-stop|flush-all|status}"
-    exit 1
-    ;;
-esac
-
-exit 0
+# chkconfig: 2345 21 92
+# description:  Starts and stops ufw firewall system
+
+source /lib/initscripts/functions
+
+TEXTDOMAIN=ufw
+TEXTDOMAINDIR=/lib/initscripts/messages
+source /lib/initscripts/functions
+daemon=$"ufw firewall"
+
+actions=(start stop status)
+
+rc_start()
+{
+       start_msg
+       /usr/sbin/ufw enable --
+       ok $?
+}
+
+rc_stop()
+{
+       stop_msg
+       /usr/sbin/ufw disable --
+       ok $?
+}
+
+rc_status()
+{
+       /usr/sbin/ufw status
+       ok $?
+}
+
+rc_exec $1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to