summaryrefslogtreecommitdiffstats
path: root/abs/core/iptables/PKGBUILD
blob: c79628510674841a15604e2d97ef5d3cb9d51463 (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=iptables
pkgver=1.4.1
pkgrel=1
pkgdesc="A Linux kernel packet control tool"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.netfilter.org/"
depends=('glibc')
source=(http://www.iptables.org/projects/iptables/files/iptables-$pkgver.tar.bz2 \
        iptables ip6tables empty.rules simple_firewall.rules iptables.conf.d)
md5sums=('e628f033b95741266a315d54fe73db9c'
         '89401d6f0cf1de46a455b7be6720a58b'
         '6e0e88c2ed0c3715d1409ee3258a0046'
         '14186bbafe21bb0638c0cb8e0903c829'
         'e53a83bb4d8ac8b7eadd7bd58294751d'
         'c7cf6e4455c228e50d20ce3edd75ee59')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${startdir}/pkg install
  install -D -m755 ../iptables $startdir/pkg/etc/rc.d/iptables
  install -D -m755 ../ip6tables $startdir/pkg/etc/rc.d/ip6tables
  install -D -m644 ../empty.rules $startdir/pkg/etc/iptables/empty.rules
  install -D -m644 ../simple_firewall.rules $startdir/pkg/etc/iptables/simple_firewall.rules
  install -D -m644 ../iptables.conf.d $startdir/pkg/etc/conf.d/iptables
}