aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cherokee/APKBUILD
blob: 254f174fb1a3d418bc096903b12d3fcca4582bd9 (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
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=cherokee
pkgver=1.2.101
pkgrel=1
pkgdesc="A very fast, flexible and easy to configure Web Server"
url="http://www.cherokee-project.com/"
arch="all"
license="GPL2"
depends="pcre rrdtool python"
depends_dev="openssl-dev gettext-dev ffmpeg-dev geoip-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://www.cherokee-project.com/download/${pkgver%.*}/${pkgver}/${pkgname}-${pkgver}.tar.gz
	cherokee.initd
	cherokee.confd
	"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--with-wwwroot=/var/www \
		--enable-os-string="Alpine Linux"
	make || return 1
}

package() {
	cd "$_builddir"

	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/cherokee/*.la || return 1

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname || return 1
}

md5sums="ef47003355a2e368e4d9596cd070ef23  cherokee-1.2.101.tar.gz
8cc44726585fa04a2772a0c3faa6a72d  cherokee.initd
bd6a840f72c630ce1eaabe058097584f  cherokee.confd"