summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGilrain2015-06-09 16:33:21 +0200
committerGilrain2015-06-09 16:33:21 +0200
commitf12e9e8c5a59d2ca68f16e9094520814869bd82e (patch)
tree9884d27cb6711c4dcc2420462d07da290614400f /PKGBUILD
downloadaur-f12e9e8c5a59d2ca68f16e9094520814869bd82e.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f34c3f070d1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re>
+
+pkgname=pgl
+pkgver=2.3.0
+pkgrel=2
+pkgdesc='A privacy oriented firewall application (GUI).'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/peerguardian/'
+license=('GPL3')
+depends=('bash' 'systemd' 'dbus' 'coreutils' 'procps-ng' 'logrotate' 'wget' 'iptables' 'libnetfilter_queue' 'qt4' 'polkit-qt4' 'whois')
+optdepends=('unzip: for zipped blocklists'
+ 'p7zip: for 7z blocklists'
+ 'net-tools: to whitelist local IP addresses'
+ 'networkmanager: to whitelist newly started network interfaces'
+ 'smtp-forwarder: to send reports'
+ 'tcptraceroute: to diagnose connection problems')
+makedepends=('zlib')
+conflicts=('pgl-cli' 'pgl-git')
+backup=('etc/pgl/allow.p2p'
+ 'etc/pgl/blocklists.list'
+ 'etc/pgl/pglcmd.conf'
+ 'etc/logrotate.d/pglcmd'
+ 'etc/logrotate.d/pgld')
+install=install
+changelog=changelog
+source=("https://downloads.sourceforge.net/project/peerguardian/PeerGuardian%20Linux/$pkgver/$pkgname-$pkgver.tar.gz")
+sha1sums=('e817f8b16377cafa8f39da125d313231a3a8f149')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ # makes sure qt4 is used
+ export QMAKE=qmake-qt4
+ export MOC=moc-qt4
+ export UIC=uic-qt4
+ export RCC=rcc-qt4
+
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --datarootdir=/usr/share \
+ --with-piddir=/run --with-systemd --disable-cron --without-initddir
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ # integrates daemon log in systemd journal
+ sed -i '/^LOG_SYSLOG/s/0/1/g' $pkgdir/usr/lib/pgl/pglcmd.defaults
+}