aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-06-09 11:56:30 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-06-09 11:56:30 +0000
commitbc20a0f968cda772ec8879c5deca87cebf3ae07d (patch)
tree17c8b3451d5773ef5b5060620220e02e0edc7df8 /main
parente3525c93343e1d9c0f541feccbe4b67c0409b103 (diff)
downloadaports-bc20a0f968cda772ec8879c5deca87cebf3ae07d.tar.bz2
aports-bc20a0f968cda772ec8879c5deca87cebf3ae07d.tar.xz
testing/squark: move to main
Diffstat (limited to 'main')
-rw-r--r--main/squark/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/squark/APKBUILD b/main/squark/APKBUILD
new file mode 100644
index 0000000000..0780787e23
--- /dev/null
+++ b/main/squark/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Timo TerĂs <timo.teras@iki.fi>
+pkgname=squark
+pkgver=0.1
+pkgrel=3
+pkgdesc="Squark - Squid User Authentication and Rating Kit"
+subpackages=
+depends="haserl lua"
+makedepends="net-snmp-dev cmph-dev lua-dev pkgconfig"
+source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
+ "
+url="http://git.alpinelinux.org/cgit/squark/"
+arch="all"
+license=GPL-2
+
+prepare() {
+ cd "$srcdir"
+ ln -s squark-master $pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i -e 's:-Werror::' Make.rules
+ for i in $source; do
+ case $i in
+ *.patch) patch -p1 -i "$srcdir"/$i || return 1
+ esac
+ done
+ sed -i -e 's:lua5.1:lua:g' "$srcdir"/"$pkgname-$pkgver"/src/Makefile
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make FULL_VERSION="$pkgver-r$pkgrel" || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make FULL_VERSION="$pkgver-r$pkgrel" DESTDIR="$pkgdir" install
+}
+
+md5sums="d7acc2d0f3a9ecff53b0b79eb6544eb6 squark-0.1.tar.bz2"