aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cherokee/APKBUILD
blob: f93cfcf5885506d441b727ea4e7a87182622877e (plain) (blame)
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
# Contributor: Mika Havela <mika.havela@gmail.com> 
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=cherokee
pkgver=0.99.41
pkgrel=3
pkgdesc="A very fast, flexible and easy to configure Web Server"
url="http://www.cherokee-project.com/"
license="GPL2"
depends="pcre rrdtool"
makedepends="openssl-dev gettext-dev ffmpeg-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.cherokee-project.com/download/0.99/${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
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install

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

md5sums="388affc0636aca802ec46cea4ebb8d08  cherokee-0.99.41.tar.gz
4180dbb6701f928054079aa1e3bd5ebc  cherokee.initd
bd6a840f72c630ce1eaabe058097584f  cherokee.confd"