diff options
author | Gilrain | 2015-06-09 16:49:23 +0200 |
---|---|---|
committer | Gilrain | 2015-06-09 16:49:23 +0200 |
commit | d50b4a7a3e4fc1291e51d32edd84d7f7ed192a25 (patch) | |
tree | 3c4a1212251a29858ccf80c8ba600647a207afd2 | |
download | aur-d50b4a7a3e4fc1291e51d32edd84d7f7ed192a25.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 42 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | install | 11 |
3 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b14fecd8f82d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,42 @@ +pkgbase = pgl-git + pkgdesc = A privacy oriented firewall application (Daemon & CLI). + pkgver = 2.3.0.r4.gac3553e + pkgrel = 1 + url = http://sourceforge.net/projects/peerguardian/ + install = install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = zlib + depends = bash + depends = systemd + depends = dbus + depends = coreutils + depends = procps-ng + depends = logrotate + depends = wget + depends = iptables + depends = libnetfilter_queue + depends = qt4 + depends = polkit-qt4 + depends = whois + optdepends = unzip: for zipped blocklists + optdepends = p7zip: for 7z blocklists + optdepends = net-tools: to whitelist local IP addresses + optdepends = networkmanager: to whitelist newly started network interfaces + optdepends = smtp-forwarder: to send reports + optdepends = tcptraceroute: to diagnose connection problems + provides = pgl + conflicts = pgl + conflicts = pgl-cli + backup = etc/pgl/allow.p2p + backup = etc/pgl/blocklists.list + backup = etc/pgl/pglcmd.conf + backup = etc/logrotate.d/pglcmd + backup = etc/logrotate.d/pgld + source = git://git.code.sf.net/p/peerguardian/code/ + sha256sums = SKIP + +pkgname = pgl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c6d9db6eb491 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re> + +pkgname=pgl-git +pkgver=2.3.0.r4.gac3553e +pkgrel=1 +pkgdesc='A privacy oriented firewall application (Daemon & CLI).' +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=('git' 'zlib') +license=('GPL3') +provides=('pgl') +conflicts=('pgl' 'pgl-cli') +backup=('etc/pgl/allow.p2p' + 'etc/pgl/blocklists.list' + 'etc/pgl/pglcmd.conf' + 'etc/logrotate.d/pglcmd' + 'etc/logrotate.d/pgld') +install=install +source=('git://git.code.sf.net/p/peerguardian/code/') +sha256sums=('SKIP') + +pkgver() { + cd "code" + + git describe --tags | sed -r 's/^pgl_//;s/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "code" + + ./autogen.sh +} + +build() { + cd "code" + + # 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 "code" + + make DESTDIR=$pkgdir install + + # integrates daemon log in systemd journal + sed -i '/^LOG_SYSLOG/s/0/1/g' $pkgdir/usr/lib/pgl/pglcmd.defaults +} diff --git a/install b/install new file mode 100644 index 000000000000..e20b93d0a3a1 --- /dev/null +++ b/install @@ -0,0 +1,11 @@ +post_upgrade() { + if [ $(vercmp $2 2.2.4-2) -lt 0 ]; then + echo "# Please reenable pgl.service to activate timer." + echo "# Then reboot or start pgl-update.timer manually." + fi +} + +post_remove() { + # Deletes logs, spool and consolidated blocklists + rm -rf /var/{log,lib,spool}/pgl/ +}
\ No newline at end of file |