summaryrefslogtreecommitdiff
path: root/pcr/xtables-addons/PKGBUILD
blob: 1db9c2566aaaa7d589f5ce57a4d3b9aaf3e6560a (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
# Contributor (Arch): Thiago Coutinho <root at thiagoc . net>
# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=xtables-addons
pkgver=2.6
pkgrel=3
pkgdesc="Successor to patch-o-matic(-ng). Additional extensions for iptables, ip6tables, etc. CHAOS, TARPIT, TEE, DELUDE and other targets; condition, geoip, ipp2p and other matches. Includes ipset package."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://xtables-addons.sourceforge.net/"
depends=('iptables>=1.4.5' 'glibc' 'linux>=3.7')
makedepends=('linux-api-headers' 'linux-headers')
conflicts=(ipset)
replaces=(ipset)
provides=(ipset)
install='xtables-addons.install'
source=(http://download.sourceforge.net/project/xtables-addons/Xtables-addons/$pkgver/$pkgname-$pkgver.tar.xz)
md5sums=('087835ba7e564481b6fd398692268340')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure \
      --prefix=/usr \
      --libexecdir=/usr/lib/iptables \
      --sysconfdir=/etc \
      --with-xtlibdir=/usr/lib/iptables \
      --mandir=/usr/share/man
  make || return 1
}

package () {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install || return 1
  mv $pkgdir/lib/* $pkgdir/usr/lib/
  mv $pkgdir/usr/lib/modules/$(uname -r)/extra $pkgdir/usr/lib/modules/$(uname -r)/$(readlink /usr/lib/modules/$(uname -r)/extramodules)
  rmdir $pkgdir/lib
  mv $pkgdir/usr/sbin $pkgdir/usr/bin
  chmod a-x $pkgdir/usr/lib/iptables/*.so
}