aboutsummaryrefslogtreecommitdiffstats
path: root/main/squid/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-01 13:12:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-01 13:12:42 +0000
commit5d4692319f2ccb4e39b50808e89e765e4c0f980e (patch)
tree83a0ac2feecd82ea38fc4c0abc0b17297c30c127 /main/squid/APKBUILD
parent353ecc79dae24a45ab45b41e4c79caa646aeee99 (diff)
downloadaports-5d4692319f2ccb4e39b50808e89e765e4c0f980e.tar.bz2
aports-5d4692319f2ccb4e39b50808e89e765e4c0f980e.tar.xz
main/squid: fix for squid initscript and pidfile
fixes #133
Diffstat (limited to 'main/squid/APKBUILD')
-rw-r--r--main/squid/APKBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/main/squid/APKBUILD b/main/squid/APKBUILD
index c93bfba602..111d9ef52e 100644
--- a/main/squid/APKBUILD
+++ b/main/squid/APKBUILD
@@ -3,7 +3,7 @@
pkgname=squid
pkgver=2.7.6
_ver=2.7.STABLE6
-pkgrel=6
+pkgrel=7
pkgdesc="A full-featured Web proxy cache server."
url="http://www.squid-cache.org"
install="squid.post-install"
@@ -49,15 +49,17 @@ subpackages="$pkgname-doc
source="http://www.squid-cache.org/Versions/v2/2.7/${pkgname}-${_ver}.tar.bz2
squid.initd
squid.confd
- squid.post-install
squid-2.7-gentoo.patch
$pkgname.logrotate
"
+pkgusers="squid"
+pkggroups="squid"
build() {
cd "$srcdir/$pkgname-$_ver"
patch -p1 -i "$srcdir"/squid-2.7-gentoo.patch || return 1
+
touch NEWS AUTHORS
aclocal && autoconf && automake -a || return 1
@@ -86,7 +88,10 @@ build() {
install -m644 -D "$srcdir"/$pkgname.logrotate \
"$pkgdir"/etc/logrotate.d/squid
- mkdir -p "$pkgdir"/var/cache/squid "$pkgdir"/var/log/squid
+ install -d -o squid -g squid \
+ "$pkgdir"/var/cache/squid \
+ "$pkgdir"/var/log/squid \
+ "$pkgdir"/var/run/squid
chmod +x "$pkgdir"/usr/lib/squid/*
}
@@ -272,8 +277,7 @@ errors_ukrainian_utf8() {
md5sums="6de3a6a7a56a7ecae092f2d31a04f039 squid-2.7.STABLE6.tar.bz2
-d31f293cf10a90bc3d60aa6428889db5 squid.initd
+d7f3f823f5648dae74cb68a3b2c2f70e squid.initd
44b052db7910f386ef88ddcf69c9ba4e squid.confd
-9bf350646e321f7c38ffeb9af828ec98 squid.post-install
-1d33108353d788b238d9a8877bf2e401 squid-2.7-gentoo.patch
+3827f71d940b47eb385a1a1d92a51d66 squid-2.7-gentoo.patch
58823e0b86bc2dc71d270208b7b284b4 squid.logrotate"