summaryrefslogtreecommitdiff
path: root/pcr/xtables-addons/PKGBUILD
blob: 0b652408a76c7d52c8dddd959b7b98398feba403 (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
# Contributor: Vladimir Kutyavin <vlkut@bk.ru>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=xtables-addons
pkgver=1.46
pkgrel=1
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.3' 'glibc')
makedepends=('linux-api-headers' 'linux-headers')
conflicts=(ipset)
replaces=(ipset)
provides=(ipset)
source=(http://download.sourceforge.net/project/xtables-addons/Xtables-addons/$pkgver/$pkgname-$pkgver.tar.xz)

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
    make DESTDIR=$pkgdir install || return 1 
    chmod a-x $pkgdir/usr/lib/iptables/*.so
    #remove ipset there is a ipset package
#    rm \
#    $pkgdir/usr/lib/iptables/libipset_* \
#    $pkgdir/usr/sbin/ipset
#    $pkgdir/usr/share/man/man8/ipset.8
#    rmdir $pkgdir/usr/sbin
}