summaryrefslogtreecommitdiffstats
path: root/testing/squidguard/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-07-31 11:20:14 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-07-31 11:20:14 +0000
commit053030aa8bded4213c53bff2b2cd762bd8c3e10c (patch)
tree83e5c84d8f4dec3b03fd80c719471ddc428e18ff /testing/squidguard/APKBUILD
parent8406a3e22d6bed5fba02548d133491b4a807cce7 (diff)
downloadaports-053030aa8bded4213c53bff2b2cd762bd8c3e10c.tar.bz2
aports-053030aa8bded4213c53bff2b2cd762bd8c3e10c.tar.xz
testing/squidguard: fix incompatibility with DB >= 5
Diffstat (limited to 'testing/squidguard/APKBUILD')
-rw-r--r--testing/squidguard/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/testing/squidguard/APKBUILD b/testing/squidguard/APKBUILD
index 4187bfb1a..719ce130f 100644
--- a/testing/squidguard/APKBUILD
+++ b/testing/squidguard/APKBUILD
@@ -2,19 +2,22 @@
pkgname=squidguard
_realname=squidGuard
pkgver=1.4
-pkgrel=3
+pkgrel=4
pkgdesc="Squid URL redirector"
url="http://www.squidguard.org"
arch="all"
license="GPL"
depends=
makedepends="flex bison db-dev"
-install="$pkgname.post-install"
+install=
+pkguser="squid"
+pkggroup="squid"
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"
+ squidguard-1.4-vsnprintf.patch
+ squidguard-1.4-debian-bdb-51.patch"
_builddir="$srcdir"/$_realname-$pkgver
@@ -23,6 +26,7 @@ prepare() {
patch -p1 < ../../squidguard-1.4-gentoo.patch
patch -p1 < ../../squidguard-1.4-upstream-fixes.patch
patch -p1 < ../../squidguard-1.4-vsnprintf.patch
+ patch -p1 < ../../squidguard-1.4-debian-bdb-51.patch
}
build() {
@@ -39,9 +43,11 @@ package() {
make INSTDIR="$pkgdir" install
install -D -m644 ../../squidGuard.conf.blocksites $pkgdir/etc/squidGuard/squidGuard.conf
install -D -m644 ../../blockedsites $pkgdir/etc/squidGuard/blockedsites
+ mkdir -p "$pkgdir"/var/log/squidGuard && chown squid.squid "$pkgdir"/var/log/squidGuard
}
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"
+8878c72f27e45dab99e5d0197d50caec squidguard-1.4-vsnprintf.patch
+ea2deca296c41107bc981d1a2a093846 squidguard-1.4-debian-bdb-51.patch"