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

commit ea8cd9fee3f3a1d07cde7791e2d5e093fa6cd5f6
Author: jercel <jerce...@gmail.com>
Date:   Fri Jul 10 21:06:21 2009 +0200

ufw-0.27.1-1-i686

* New Package
* Close #3607

diff --git a/source/network-extra/ufw/FrugalBuild 
b/source/network-extra/ufw/FrugalBuild
new file mode 100644
index 0000000..2cabf41
--- /dev/null
+++ b/source/network-extra/ufw/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: jercel <jerce...@gmail.com>
+
+pkgname=ufw
+pkgver=0.27.1
+pkgrel=1
+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')
+_F_rcd_name="$pkgname"
+groups=('network-extra')
+archs=('i686')
+up2date="elinks -dump '$url/+download' | Flasttar"
+backup=(etc/ufw/after.rules etc/ufw/after6.rules etc/ufw/before.rules 
etc/ufw/before6.rules \
+       etc/ufw/sysctl.conf etc/ufw/ufw.conf)
+source=(http://launchpad.net/ufw/$pkgver/+download/$pkgname-$pkgver.tar.gz 
setup.patch rc.ufw)
+sha1sums=('6ede47fe111429df0231adb1659d7b39b32d6ac1' \
+          'bbe23a0700407fba843ca7356a425bc7ae787feb' \
+          'd4c61b4b698216377e567bfdd4582e4810c22cea')
+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
new file mode 100644
index 0000000..27c264d
--- /dev/null
+++ b/source/network-extra/ufw/rc.ufw
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+# (c) 2009 jercel <jerce...@gmail.com>
+# rc.ufw for FrugalWare
+# 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
diff --git a/source/network-extra/ufw/setup.patch 
b/source/network-extra/ufw/setup.patch
new file mode 100644
index 0000000..7af57a3
--- /dev/null
+++ b/source/network-extra/ufw/setup.patch
@@ -0,0 +1,19 @@
+--- setup.py   2009-05-08 18:11:20.000000000 +0200
++++ setup.py   2009-07-10 11:35:08.000000000 +0200
+@@ -168,16 +168,6 @@
+ shutil.copytree('src', 'staging')
+ os.unlink(os.path.join('staging', 'ufw-init'))
+ os.unlink(os.path.join('staging', 'ufw-init-functions'))
+-
+-exe = 'iptables'
+-(rc, out) = cmd([exe, '-V'])
+-if rc != 0:
+-    raise OSError(errno.ENOENT, "Could not find version for '%s'" % (exe))
+-version = re.sub('^v', '', re.split('\s', out)[1])
+-print "Found '%s' version '%s'" % (exe, version)
+-if version < "1.4":
+-    print >> sys.stderr, "WARN: version '%s' has limited IPv6 support. See 
README for details." % (version)
+-
+ setup (name='ufw',
+       version=ufw_version,
+       description='front-end for Linux firewalling',
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to