blob: b0a5e498a59a4a037b109c9dc2f21ca408583530 (
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
|
# Contributor: Alan Messias Cordeiro <alancordeiro@gmail.com>
# Maintainer: Alan Messias Cordeiro <alancordeiro@gmail.com>
pkgname=darkhttpd
pkgver=1.11
pkgrel=2
pkgdesc="A simple, single-threaded, static content webserver"
url="http://unix4lyfe.org/darkhttpd/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages=""
source="http://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2
darkhttpd.logrotate
$pkgname.initd"
_builddir="$srcdir/$pkgname-$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"
make || return 1
}
package() {
# install binary
cd "$_builddir"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1
install -d "$pkgdir"/var/www/localhost/htdocs \
"$pkgdir"/var/log/darkhttpd || return 1
# install init.d
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
}
md5sums="050e5a821b1fa71a82c6efba7fda1323 darkhttpd-1.11.tar.bz2
63aa435ce78851d57c39426e34ec728b darkhttpd.logrotate
c415ef1da584842708746d80da548570 darkhttpd.initd"
sha256sums="afad244add43c53010b36ada6ccdf1a854885cb37d6aeff103ad0aa4aed96c51 darkhttpd-1.11.tar.bz2
b4441bef90ca7fce5861edab165a3a7ea21b2e63faf27ec85aa85702fc8ac96b darkhttpd.logrotate
13d64145ac6dc48fecbfa8a734b2253bbfb4d6c68f2261c49c79643d2de61840 darkhttpd.initd"
sha512sums="91ce6b2acd963b1ea593b4e48601c08d66afac44c2cbd34f087ee0b536e68876b8e8f572588bc1beefb899d08f7625d2c8fffdf1ba3b7389185b4f8e0750e1d9 darkhttpd-1.11.tar.bz2
bb95277a9f8f227aeec8bfe6ef54f52a2f034ed0dd25258b996c17f9ce9dd4ad220366b10490246b25bb6b18ccde7bda0d52eeb88667941cf2fdab15c940dbbc darkhttpd.logrotate
4a2562c265b6e4473ac22960a9188c598b60e6d53ec8c92a09478bc4c9b18a5adc2cbb451b38b6e3fafc1bb373ad2970c421742be87d8f979a51ec19d95a4468 darkhttpd.initd"
|