aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkhttpd/APKBUILD
blob: f488b2dcb754d18be63861ac5ac6cfaa1126c9f1 (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=darkhttpd
pkgver=1.12
pkgrel=2
pkgdesc="A simple, single-threaded, static content webserver"
url="https://unix4lyfe.org/darkhttpd/"
arch="all"
license="BSD"
options="!check" # no tests
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="https://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2
	darkhttpd.logrotate
	darkhttpd.initd

	0001-Add-svg-support-to-default-mimetypes.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"

	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -d "$pkgdir"/var/www/localhost/htdocs \
		"$pkgdir"/var/log/darkhttpd

	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="e977ba0401b24a122733f8d5084fcdea4a3e2664dd5c127b26b822bfdbe458124104b1d5c673a8689af988b5713ce2e902945238b815b82104f286f577eea8bd  darkhttpd-1.12.tar.bz2
bb95277a9f8f227aeec8bfe6ef54f52a2f034ed0dd25258b996c17f9ce9dd4ad220366b10490246b25bb6b18ccde7bda0d52eeb88667941cf2fdab15c940dbbc  darkhttpd.logrotate
17c22c67e3f2e5bef9873c9fc8f1551cc7769dd0186be3f7563e1f908617c1c8dbbddae298246357133ae285b6d0e24c28f4e6defcb47c94634cf666690fcb52  darkhttpd.initd
71a35551e2e34e8ced60e2c836c7d22f9b543b79fda2e273b41eaed7aefc22895d9c0b2e6f86dc7d0f916ed244b9ea42e2236f796eab07e7e0ba83faa4ba5762  0001-Add-svg-support-to-default-mimetypes.patch"