# Contributor: Alan Messias Cordeiro # Maintainer: Alan Messias Cordeiro pkgname=darkhttpd pkgver=1.11 pkgrel=1 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 43240f57da51481554ccb7e1710baf45 darkhttpd.initd" sha256sums="afad244add43c53010b36ada6ccdf1a854885cb37d6aeff103ad0aa4aed96c51 darkhttpd-1.11.tar.bz2 b4441bef90ca7fce5861edab165a3a7ea21b2e63faf27ec85aa85702fc8ac96b darkhttpd.logrotate 395e5b063f0f7ded6b21228fc7300737bc70b6697230669dd8233cfbf748ed97 darkhttpd.initd" sha512sums="91ce6b2acd963b1ea593b4e48601c08d66afac44c2cbd34f087ee0b536e68876b8e8f572588bc1beefb899d08f7625d2c8fffdf1ba3b7389185b4f8e0750e1d9 darkhttpd-1.11.tar.bz2 bb95277a9f8f227aeec8bfe6ef54f52a2f034ed0dd25258b996c17f9ce9dd4ad220366b10490246b25bb6b18ccde7bda0d52eeb88667941cf2fdab15c940dbbc darkhttpd.logrotate 75d4f319d4aee5ae5c30962c0487e1dc4923d0277a842ead583bb9b0a6d0313bd87cb9b55130faaeabc3ae5a848c29a9081f1af33ddbb4e85b5cd11083968383 darkhttpd.initd"