1 # Maintainer: Pierre Buard <pierre.buard+aur gmail com>
5 pkgdesc='PeerGuardian is a privacy oriented firewall application (Daemon & CLI).'
6 url='http://sourceforge.net/projects/peerguardian/'
8 depends=('dbus-core' 'libnfnetlink' 'libnetfilter_queue' 'iptables' 'wget')
9 optdepends=('zlib: to directly load gz compressed blocklists'
10 'p7zip: for blocklists packed as .7z'
11 'unzip: for blocklists packed as .zip'
12 'networkmanager: to run a white-listing script when detecting new network interfaces')
15 conflicts=('blockcontrol' 'moblock' 'pgl')
16 backup=('etc/pgl/allow.p2p'
17 'etc/pgl/blocklists.list'
18 'etc/pgl/pglcmd.conf')
19 source=(http://downloads.sourceforge.net/project/peerguardian/PeerGuardian%20Linux/$pkgver/pgl-$pkgver.tar.gz)
20 md5sums=('b478f01e133626d724e3acf676cfcbfa')
23 cd $srcdir/pgl-$pkgver/
24 make MAKE_PGLD=yes MAKE_PGLCMD=yes MAKE_PGLGUI=no INITDIR='/etc/rc.d'
28 cd $srcdir/pgl-$pkgver/
29 make MAKE_PGLD=yes MAKE_PGLCMD=yes MAKE_PGLGUI=no INITDIR='/etc/rc.d' DESTDIR=$pkgdir install
32 gzip $srcdir/pgl-$pkgver/docs/pgld.1
33 install -Dm644 $srcdir/pgl-$pkgver/docs/pgld.1.gz $pkgdir/usr/share/man/man1/pgld.1.gz
34 ln -s /usr/share/man/man1/pgld.1.gz $pkgdir/usr/share/man/man1/pglcmd.wd.1.gz
36 install -d $pkgdir/usr/share/doc/pgl/
37 install -Dm644 $srcdir/pgl-$pkgver/docs/{AUTHORS,BUGS,README,README.blocklists,THANKS,TODO} $pkgdir/usr/share/doc/pgl/
38 install -Dm644 $srcdir/pgl-$pkgver/debian/copyright $pkgdir/usr/share/licenses/pgl/LICENSE