updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / pgl-cli / PKGBUILD
bloba40e5cacc70f11bd6b6cf447f6720c7ff1cab9e2
1 # Maintainer: Pierre Buard <pierre.buard+aur gmail com>
2 pkgname=pgl-cli
3 pkgver=2.1.3
4 pkgrel=1
5 pkgdesc='PeerGuardian is a privacy oriented firewall application (Daemon & CLI).'
6 url='http://sourceforge.net/projects/peerguardian/'
7 arch=('i686' 'x86_64')
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')
13 license=('GPL')
14 replace=('pgl-nogui')
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')
22 build() {
23     cd $srcdir/pgl-$pkgver/
24     make MAKE_PGLD=yes MAKE_PGLCMD=yes MAKE_PGLGUI=no INITDIR='/etc/rc.d'
27 package() {
28     cd $srcdir/pgl-$pkgver/
29     make MAKE_PGLD=yes MAKE_PGLCMD=yes MAKE_PGLGUI=no INITDIR='/etc/rc.d' DESTDIR=$pkgdir install
31     # Man
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
35     # Texts
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