aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/APKBUILD
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2013-05-08 13:21:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-09 06:45:33 +0000
commit7fb51995c49d292b40a4cf2429cafec98ec72f55 (patch)
tree7957e695f6c0b4f0dbf7e51144518702ac21e5ba /main/varnish/APKBUILD
parent40f70f0e3529770eea2387974808398394548161 (diff)
downloadaports-7fb51995c49d292b40a4cf2429cafec98ec72f55.tar.bz2
aports-7fb51995c49d292b40a4cf2429cafec98ec72f55.tar.xz
Improved confd and add checkpath, build fixes
Diffstat (limited to 'main/varnish/APKBUILD')
-rw-r--r--main/varnish/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/main/varnish/APKBUILD b/main/varnish/APKBUILD
index 6fafe2088b..adb1162bef 100644
--- a/main/varnish/APKBUILD
+++ b/main/varnish/APKBUILD
@@ -1,8 +1,9 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=varnish
pkgver=3.0.3
-pkgrel=1
+pkgrel=2
pkgdesc="High-performance HTTP accelerator"
url="http://www.varnish-cache.org/"
arch="all"
@@ -10,8 +11,10 @@ license="BSD"
depends="gcc libc-dev"
depends_dev=
makedepends="$depends_dev pcre-dev ncurses-dev"
-install=""
+install="varnish.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+pkgusers="varnish"
+pkggroups="varnish"
source="http://repo.varnish-cache.org/source/varnish-$pkgver.tar.gz
varnishd.initd
varnishd.confd
@@ -50,7 +53,10 @@ package() {
|| return 1
install -Dm644 "$srcdir"/varnishd.logrotate \
"$pkgdir"/etc/logrotate.d/varnishd || return 1
- mkdir -p "$pkgdir"/var/log/varnish
+ install -d -o varnish -g varnish \
+ "$pkgdir"/var/cache/varnish \
+ "$pkgdir"/var/log/varnish \
+ || return 1
find "$pkgdir" -name *.la -print | xargs rm
}
@@ -61,7 +67,7 @@ libs() {
}
md5sums="714310c83fdbd2061d897dacd3f63d8b varnish-3.0.3.tar.gz
-4f78964bf3eb6f1fd0fd2d533575982e varnishd.initd
-6dd289ba81464eacc238109143126d6a varnishd.confd
+c2659431b145229c1fb7f885a55d6fc2 varnishd.initd
+459d87260de5ee9ba7ca590d85418620 varnishd.confd
a6cb8a43c9465699cf956dc992998225 varnishd.logrotate
8c5532869bea7f668e2ce5d4585359f8 varnish-3.0.3-pthread-uclibc.patch"