blob: 6fafe2088b7fffb7be3d5b81c3ca216da724aba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=varnish
pkgver=3.0.3
pkgrel=1
pkgdesc="High-performance HTTP accelerator"
url="http://www.varnish-cache.org/"
arch="all"
license="BSD"
depends="gcc libc-dev"
depends_dev=
makedepends="$depends_dev pcre-dev ncurses-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://repo.varnish-cache.org/source/varnish-$pkgver.tar.gz
varnishd.initd
varnishd.confd
varnishd.logrotate
varnish-3.0.3-pthread-uclibc.patch"
_builddir="$srcdir"/varnish-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var/lib \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
install -Dm755 "$srcdir"/varnishd.initd "$pkgdir"/etc/init.d/varnishd \
|| return 1
install -Dm644 "$srcdir"/varnishd.confd "$pkgdir"/etc/conf.d/varnishd \
|| return 1
install -Dm644 "$srcdir"/varnishd.logrotate \
"$pkgdir"/etc/logrotate.d/varnishd || return 1
mkdir -p "$pkgdir"/var/log/varnish
find "$pkgdir" -name *.la -print | xargs rm
}
libs() {
pkgdesc="Libraries for varnish"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir"/usr/lib/
}
md5sums="714310c83fdbd2061d897dacd3f63d8b varnish-3.0.3.tar.gz
4f78964bf3eb6f1fd0fd2d533575982e varnishd.initd
6dd289ba81464eacc238109143126d6a varnishd.confd
a6cb8a43c9465699cf956dc992998225 varnishd.logrotate
8c5532869bea7f668e2ce5d4585359f8 varnish-3.0.3-pthread-uclibc.patch"
|