1 # Contributor: Vladimir Kutyavin <vlkut@bk.ru>
2 pkgname=xtables-addons-git
5 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."
8 url="http://xtables-addons.sourceforge.net/"
9 depends=('iptables>=1.4.3' 'glibc')
10 makedepends=('linux-api-headers')
11 conflicts=(ipset, xtables-addons)
12 replaces=(ipset, xtables-addons)
13 provides=(ipset, xtables-addons)
15 _gitroot="git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons/"
16 _gitname="xtables-addons"
20 msg 'Connecting to GIT server...'
22 if [[ -d $_gitname ]]; then
23 ( cd $_gitname && git pull origin )
24 msg 'The local files are updated.'
29 msg 'GIT checkout done or server timeout'
30 msg 'Starting make...'
32 rm -rf $_gitname-build
33 git clone $_gitname{,-build}
39 --libexecdir=/usr/lib/iptables \
41 --with-xtlibdir=/usr/lib/iptables \
42 --mandir=/usr/share/man
44 make DESTDIR=$pkgdir install || return 1
45 chmod a-x $pkgdir/usr/lib/iptables/*.so
46 #remove ipset there is a ipset package
48 # $pkgdir/usr/lib/iptables/libipset_* \
49 # $pkgdir/usr/sbin/ipset
50 # $pkgdir/usr/share/man/man8/ipset.8
51 # rmdir $pkgdir/usr/sbin