blob: 3e6319a1257730fc61575bbd842f3d05fbebf11e (
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
29
30
31
32
33
34
|
# Description: L'outil de contrôle pour le filtrage des paquets de données aux travers des interfaces réseaux
# URL: http://www.iptables.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:
name=iptables
version=1.4.12.2
release=1
source=(ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2
rc.iptables
fix-build-with-3.2.patch)
build() {
source /etc/blfs-bootscripts
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2
cd $name-$version
patch -p1 < ../fix-build-with-3.2.patch
./configure --prefix=/usr \
--exec_prefix="" \
--libdir=/lib \
--bindir=/sbin \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
--enable-libipq
make
make DESTDIR=$PKG install
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-$name
install -m700 $SRC/rc.iptables \
$PKG/etc/rc.d/rc.iptables
}
|