aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/cherokee/APKBUILD
blob: 771046b9eb0141d7c11c73f45e6b1079974b8fa8 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=cherokee
pkgver=1.2.104
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 automake autoconf libtool"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/cherokee/webserver/archive/v$pkgver.tar.gz
	cherokee.initd
	cherokee.confd
	"

_builddir="$srcdir"/webserver-$pkgver

build() {
	cd "$_builddir"
	./autogen.sh || return 1
	./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

	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="2266dd801dc0ccb1b81a38919ad322f4  cherokee-1.2.104.tar.gz
8cc44726585fa04a2772a0c3faa6a72d  cherokee.initd
bd6a840f72c630ce1eaabe058097584f  cherokee.confd"
sha256sums="5cbd00ff48503eaf90356b2975e311c02977f9166927e57fc23f541a109efd98  cherokee-1.2.104.tar.gz
ce60a8953fe78bf0c5f688d324a3433382709b1d77d78f1074df73366f9cd70c  cherokee.initd
58db2070b710f2c3b38bc3d3be9703a22434f736cad742320b930b23cd5fa1b8  cherokee.confd"
sha512sums="1cb68dbfe457a49341eb4e3af4ccf9a55d81d7893b1d0ef2d4f3dbbbe1fde651139a8dac75feec665c7545a9e3d676e3b2745f29fd6ad8eeaeaa5d526004f3dc  cherokee-1.2.104.tar.gz
d0e3a94ba4b6ad839ec227de26ca6d27416abe1640c73803549349edd1e7f8cf37346f8c8b8d948a4bfcaad4c596d5533448e3e084c4dd1260436731a9803c6d  cherokee.initd
3dbe1bef319eb9f59d65194fa71f0b12235245b2f82d995817824be09f312bbad96f72a147fd5ea11b7d503d263e4543b2fca5b49873106b194246c3c75c790f  cherokee.confd"