summaryrefslogtreecommitdiffstats
path: root/extra/ufw/Pkgfile
blob: ac73c5b968b1ca14d4d5ba5bcff894b8a37ad77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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

}