diff options
Diffstat (limited to 'testing/sarg')
-rw-r--r-- | testing/sarg/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/sarg/APKBUILD b/testing/sarg/APKBUILD new file mode 100644 index 0000000000..96628569a5 --- /dev/null +++ b/testing/sarg/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=sarg +pkgver=2.3.1 +pkgrel=0 +pkgdesc="SARG Squid Analysis Report Generator" +url="http://sarg.sourceforge.net/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc $pkgname-php" +source="http://sourceforge.net/projects/sarg/files/sarg/sarg-$pkgver/sarg-$pkgver.tar.gz" + +_builddir="$srcdir"/sarg-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc/sarg \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +php() { + pkgdesc="SARG php interface" + depends="php" + arch="noarch" + cd "$_builddir" + mkdir -p "$subpkgdir"/usr/share/webapps + cp -a sarg-php \ + "$subpkgdir"/usr/share/webapps +} + +md5sums="bf637b8a820b81e2c55e815934151b4d sarg-2.3.1.tar.gz" |