diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-07 08:57:43 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-07 08:58:16 +0000 |
commit | dab2a3eaae74c39a1a259d944a66ea893741def0 (patch) | |
tree | ba4a9a2e88387b9d5e9bea9cb2ab7e96f15517d8 /testing/sarg | |
parent | 5a05ca12e58993fe875ed8c4d75a31e369981557 (diff) | |
download | aports-dab2a3eaae74c39a1a259d944a66ea893741def0.tar.bz2 aports-dab2a3eaae74c39a1a259d944a66ea893741def0.tar.xz |
testing/sarg: new aport
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" |