aboutsummaryrefslogtreecommitdiffstats
path: root/testing/squidguard/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-07-13 08:35:30 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-07-13 08:37:40 +0000
commit05f7b76a0d044693460872278223eb03746b20ea (patch)
tree00e19f9a020f3a42d175fc5519e422778dc5ed41 /testing/squidguard/APKBUILD
parent573e22ed61e696c7beb121d3c95d829f4f623596 (diff)
downloadaports-05f7b76a0d044693460872278223eb03746b20ea.tar.bz2
aports-05f7b76a0d044693460872278223eb03746b20ea.tar.xz
testing/squidguard: new aport
Diffstat (limited to 'testing/squidguard/APKBUILD')
-rw-r--r--testing/squidguard/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/squidguard/APKBUILD b/testing/squidguard/APKBUILD
new file mode 100644
index 0000000000..522386ea2e
--- /dev/null
+++ b/testing/squidguard/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=squidguard
+_realname=squidGuard
+pkgver=1.4
+pkgrel=0
+pkgdesc="Squid URL redirector"
+url="http://www.squidguard.org"
+license="GPL"
+depends=
+makedepends="flex bison db-dev"
+install="$pkgname.post-install"
+subpackages=""
+source="http://www.squidguard.org/Downloads/$_realname-$pkgver.tar.gz
+ squidguard-1.4-gentoo.patch
+ squidguard-1.4-upstream-fixes.patch
+ squidguard-1.4-vsnprintf.patch"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ patch -p1 < ../../squidguard-1.4-gentoo.patch
+ patch -p1 < ../../squidguard-1.4-upstream-fixes.patch
+ patch -p1 < ../../squidguard-1.4-vsnprintf.patch
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-sg-config=/etc/squidGuard/squidGuard.conf \
+ --with-sg-logdir=/var/log/squidGuard
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTDIR="$pkgdir" install
+ install -D -m644 ../../squidGuard.conf.blocksites $pkgdir/etc/squidGuard/squidGuard.conf
+ install -D -m644 ../../blockedsites $pkgdir/etc/squidGuard/blockedsites
+}
+
+md5sums="de834150998c1386c30feae196f16b06 squidGuard-1.4.tar.gz
+ba58e934fe2f75fcb5dfbe054e045449 squidguard-1.4-gentoo.patch
+4b512e930dede70ddf36d4f7c75a598f squidguard-1.4-upstream-fixes.patch
+8878c72f27e45dab99e5d0197d50caec squidguard-1.4-vsnprintf.patch"