summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-01-23 22:33:43 +0100
committertnut <thierryn1 at hispeed dot ch>2010-01-23 22:33:43 +0100
commitd8fa3f11cb6edfd10a193f70cbc1995c986c8abf (patch)
tree3e38ac79297bfacc93ff21e34d2135d3ab81dc82
parentff560295097626ea55bb75a4c552f9ffb9eb618a (diff)
downloadnutyx-extra-d8fa3f11cb6edfd10a193f70cbc1995c986c8abf.tar.gz
nutyx-extra-d8fa3f11cb6edfd10a193f70cbc1995c986c8abf.tar.bz2
nutyx-extra-d8fa3f11cb6edfd10a193f70cbc1995c986c8abf.tar.xz
nutyx-extra-d8fa3f11cb6edfd10a193f70cbc1995c986c8abf.zip
Ajout de ufw#0.29.1-1
-rw-r--r--extra/ufw/.footprint85
-rw-r--r--extra/ufw/.md5sum2
-rw-r--r--extra/ufw/Pkgfile26
-rw-r--r--extra/ufw/ufwd62
4 files changed, 175 insertions, 0 deletions
diff --git a/extra/ufw/.footprint b/extra/ufw/.footprint
new file mode 100644
index 000000000..911e368dd
--- /dev/null
+++ b/extra/ufw/.footprint
@@ -0,0 +1,85 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/default/
+-rw-r--r-- root/root etc/default/ufw
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-x root/root etc/rc.d/init.d/ufwd
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+drwxr-xr-x root/root etc/rc.d/rc2.d/
+lrwxrwxrwx root/root etc/rc.d/rc2.d/S19ufwd -> ../init.d/ufwd
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S19ufwd -> ../init.d/ufwd
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/S19ufwd -> ../init.d/ufwd
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/S19ufwd -> ../init.d/ufwd
+drwxr-xr-x root/root etc/ufw/
+-rw-r--r-- root/root etc/ufw/after.rules
+-rw-r--r-- root/root etc/ufw/after6.rules
+drwxr-xr-x root/root etc/ufw/applications.d/
+-rw-r--r-- root/root etc/ufw/before.rules
+-rw-r--r-- root/root etc/ufw/before6.rules
+-rw-r--r-- root/root etc/ufw/sysctl.conf
+-rw-r--r-- root/root etc/ufw/ufw.conf
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/ufw/
+-rwxr-xr-x root/root lib/ufw/ufw-init
+-rwxr-xr-x root/root lib/ufw/ufw-init-functions
+-rw-r--r-- root/root lib/ufw/user.rules
+-rw-r--r-- root/root lib/ufw/user6.rules
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/ufw
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/python2.6/
+drwxr-xr-x root/root usr/lib/python2.6/site-packages/
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw-0.29.1-py2.6.egg-info
+drwxr-xr-x root/root usr/lib/python2.6/site-packages/ufw/
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/__init__.py (EMPTY)
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/__init__.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/applications.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/applications.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/backend.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/backend.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/backend_iptables.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/backend_iptables.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/common.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/common.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/frontend.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/frontend.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/util.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/ufw/util.pyc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/ufw-framework.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ufw.8.gz
+drwxr-xr-x root/root usr/share/ufw/
+drwxr-xr-x root/root usr/share/ufw/messages/
+-rw-r--r-- root/root usr/share/ufw/messages/ar.mo
+-rw-r--r-- root/root usr/share/ufw/messages/bg.mo
+-rw-r--r-- root/root usr/share/ufw/messages/ca.mo
+-rw-r--r-- root/root usr/share/ufw/messages/cs.mo
+-rw-r--r-- root/root usr/share/ufw/messages/da.mo
+-rw-r--r-- root/root usr/share/ufw/messages/de.mo
+-rw-r--r-- root/root usr/share/ufw/messages/el.mo
+-rw-r--r-- root/root usr/share/ufw/messages/en_AU.mo
+-rw-r--r-- root/root usr/share/ufw/messages/en_GB.mo
+-rw-r--r-- root/root usr/share/ufw/messages/fi.mo
+-rw-r--r-- root/root usr/share/ufw/messages/fr.mo
+-rw-r--r-- root/root usr/share/ufw/messages/he.mo
+-rw-r--r-- root/root usr/share/ufw/messages/hu.mo
+-rw-r--r-- root/root usr/share/ufw/messages/id.mo
+-rw-r--r-- root/root usr/share/ufw/messages/it.mo
+-rw-r--r-- root/root usr/share/ufw/messages/nb.mo
+-rw-r--r-- root/root usr/share/ufw/messages/nl.mo
+-rw-r--r-- root/root usr/share/ufw/messages/pl.mo
+-rw-r--r-- root/root usr/share/ufw/messages/pt.mo
+-rw-r--r-- root/root usr/share/ufw/messages/pt_BR.mo
+-rw-r--r-- root/root usr/share/ufw/messages/ru.mo
+-rw-r--r-- root/root usr/share/ufw/messages/sk.mo
+-rw-r--r-- root/root usr/share/ufw/messages/sl.mo
+-rw-r--r-- root/root usr/share/ufw/messages/sr.mo
+-rw-r--r-- root/root usr/share/ufw/messages/sv.mo
+-rw-r--r-- root/root usr/share/ufw/messages/tl.mo
+-rw-r--r-- root/root usr/share/ufw/messages/zh_CN.mo
diff --git a/extra/ufw/.md5sum b/extra/ufw/.md5sum
new file mode 100644
index 000000000..93ba40aa9
--- /dev/null
+++ b/extra/ufw/.md5sum
@@ -0,0 +1,2 @@
+b5ac77d58ae3886358405359becb2049 ufw-0.29.1.tar.gz
+f24b9abfa089d0f7bb5ac0368bc8ca26 ufwd
diff --git a/extra/ufw/Pkgfile b/extra/ufw/Pkgfile
new file mode 100644
index 000000000..ac73c5b96
--- /dev/null
+++ b/extra/ufw/Pkgfile
@@ -0,0 +1,26 @@
+# Description: Un parefeu très simple
+# URL: https://launchpad.net/ufw
+# Maintainer: NuTyX core team
+# Packager: Tux03
+# Depends on: python, iptables
+
+name=ufw
+version=0.29.1
+release=1
+source=(http://launchpad.net/ufw/0.29/0.29.1/+download/ufw-0.29.1.tar.gz\
+ ufwd)
+
+build() {
+ cd $name-$version
+ python ./setup.py install --root=$PKG
+ mkdir -p $PKG/usr/bin
+ mv $PKG/usr/{sbin,bin}/$name
+ rm -r $PKG/usr/sbin
+ chmod 644 $PKG/etc/ufw/*.rules $PKG/lib/ufw/*.rules
+ mkdir -p $PKG/etc/rc.d/{init.d,rc{1,2,3,4,5}.d}
+ install -m755 ../ufwd $PKG/etc/rc.d/init.d/ufwd
+ for i in 2 3 4 5
+ do ln -s ../init.d/ufwd $PKG/etc/rc.d/rc$i.d/S19ufwd
+ done
+
+}
diff --git a/extra/ufw/ufwd b/extra/ufw/ufwd
new file mode 100644
index 000000000..07290643f
--- /dev/null
+++ b/extra/ufw/ufwd
@@ -0,0 +1,62 @@
+#!/bin/sh -e
+
+[ -x /usr/bin/ufw ] || exit 0
+
+for s in "/lib/ufw/ufw-init-functions" "/etc/ufw/ufw.conf" ; do
+ if [ -s "$s" ]; then
+ . "$s"
+ else
+ echo "Could not find $s (aborting)"
+ exit 1
+ fi
+done
+
+error=0
+case "$1" in
+start)
+ if [ "$ENABLED" = "yes" ] || [ "$ENABLED" = "YES" ]; then
+ echo "Starting firewall:" "ufw"
+ output=`ufw_start` || error="$?"
+ if [ ! -z "$output" ]; then
+ /bin/echo -e "$output"
+ fi
+ else
+ echo "Skip starting firewall:" "ufw (not enabled)"
+ fi
+ exit $error
+ ;;
+stop)
+ if [ "$ENABLED" = "yes" ] || [ "$ENABLED" = "YES" ]; then
+ echo "Stopping firewall:" "ufw"
+ output=`ufw_stop` || error="$?"
+ if [ ! -z "$output" ]; then
+ /bin/echo -e "$output"
+ fi
+ else
+ echo "Skip stopping firewall:" "ufw (not enabled)"
+ fi
+ exit $error
+ ;;
+restart|force-reload)
+ echo "Reloading firewall:" "ufw"
+ output=`ufw_reload` || error="$?"
+ if [ ! -z "$output" ]; then
+ /bin/echo -e "$output"
+ fi
+ exit $error
+ ;;
+status)
+ output=`ufw_status` || error="$?"
+ if [ ! -z "$output" ]; then
+ /bin/echo -e "$output"
+ fi
+ exit $error
+ ;;
+*)
+ echo "Usage: /etc/rc.d/ufw {start|stop|restart|force-reload|status}"
+ exit 1
+ ;;
+esac
+
+exit 0
+