summaryrefslogtreecommitdiffstats
path: root/extra/ufw/Pkgfile
blob: 2bc087b76041f01422ea702af4475f77d8b52aed (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
27
28
# Description: Un parefeu très simple
# URL: https://launchpad.net/ufw
# Maintainer: NuTyX core team
# Packager: Tux03
# Depends on: iptables
# Run on: iptables

name=ufw
version=0.30
release=1
source=(http://launchpad.net/ufw/0.30/0.30/+download/ufw-0.30.tar.gz\
	ufwd)

build() {
        cd $name-$version
        python2 ./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

}