blob: c2b812f857835de3b96724a0d0a1efd6d6bf0f3f (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 102057 2010-12-04 09:52:03Z allan $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
pkgname=iptables
pkgver=1.4.10
pkgrel=1
pkgdesc="A Linux kernel packet control tool"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.netfilter.org/"
depends=('glibc' 'bash')
options=('!libtool')
source=(http://www.iptables.org/projects/iptables/files/${pkgname}-${pkgver}.tar.bz2
iptables
ip6tables
empty.rules
simple_firewall.rules
iptables.conf.d)
backup=(etc/conf.d/iptables)
sha1sums=('8190b8c9714a3eec825317e8ac1deeb3d11c6d29'
'd7540316581bb66c5594885882a14ba394e95098'
'70d70113e3a23f0fe99404c5536507a887a4ca5c'
'83b3363878e3660ce23b2ad325b53cbd6c796ecf'
'9907f9e815592837abc7fa3264a401567b7606ab'
'1c52444ffbecc09f56bb325db49e924dd32f9213')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# http://bugs.archlinux.org/task/17046
sed -i '87 i libxt_RATEEST.so: libxt_RATEEST.oo' extensions/GNUmakefile.in
sed -i '88 i \\t${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -lm -shared ${LDFLAGS} -o $@ $<;\n' extensions/GNUmakefile.in
./configure --prefix=/usr --with-kernel=usr/src/linux-$(uname -r) \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
--enable-devel --enable-libipq
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -D -m755 ../iptables ${pkgdir}/etc/rc.d/iptables
install -D -m755 ../ip6tables ${pkgdir}/etc/rc.d/ip6tables
install -D -m644 ../empty.rules ${pkgdir}/etc/iptables/empty.rules
install -D -m644 ../simple_firewall.rules ${pkgdir}/etc/iptables/simple_firewall.rules
install -D -m644 ../iptables.conf.d ${pkgdir}/etc/conf.d/iptables
}
|