summaryrefslogtreecommitdiff
path: root/community/sarg
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/sarg
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/sarg')
-rw-r--r--community/sarg/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/sarg/PKGBUILD b/community/sarg/PKGBUILD
new file mode 100644
index 000000000..2ee80b3c6
--- /dev/null
+++ b/community/sarg/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 93778 2013-07-10 07:27:18Z bpiotrowski $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
+# Contributor: Tino Reichardt <milky-archlinux@mcmilk.de>
+
+pkgname=sarg
+pkgver=2.3.6
+pkgrel=3
+pkgdesc="Squid Analysis Report Generator"
+arch=('i686' 'x86_64')
+url="http://sarg.sourceforge.net"
+license=('GPL')
+depends=('gd' 'libldap')
+makedepends=('cmake')
+backup=('etc/sarg/css.tpl'
+ 'etc/sarg/exclude_codes'
+ 'etc/sarg/sarg.conf'
+ 'etc/sarg/user_limit_block')
+source=(http://downloads.sourceforge.net/sourceforge/sarg/$pkgname-$pkgver.tar.gz)
+md5sums=('399809d00671ae564468bf363c12fd7f')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+ ./configure --prefix=/usr # po files workaround
+ rm -f Makefile
+ LDFLAGS=-lm cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc/sarg -DMANDIR=/usr/share/man/man1 .
+ make
+}
+
+package() {
+ cd ${srcdir}/$pkgname-$pkgver
+ mkdir -p $pkgdir/usr/share/sarg $pkgdir/etc
+ make DESTDIR="$pkgdir" install
+ make -C po DESTDIR="$pkgdir" install
+ cp -a sarg-php ${pkgdir}/usr/share/sarg/
+ chmod -R o+r ${pkgdir}{/etc,/usr/share/sarg}
+ chmod o+x ${pkgdir}/usr/share/sarg/sarg-php
+ chmod -R o+x ${pkgdir}/usr/share/sarg/sarg-php/locale
+}