summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-15 10:26:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-15 10:26:07 +0000
commit4f0c803e547dc242374deccfd1ecbfe4a59b1e6f (patch)
tree6d6c37a4e104e84e0b03ff1d8dc9982a60936325 /testing
parent5b5fbb5f2fb084070b9e1025ecd996d3303733c6 (diff)
downloadaports-4f0c803e547dc242374deccfd1ecbfe4a59b1e6f.tar.bz2
aports-4f0c803e547dc242374deccfd1ecbfe4a59b1e6f.tar.xz
testing/darkhttpd: make document_root configurable
default it to /var/www/localhost/htdocs
Diffstat (limited to 'testing')
-rw-r--r--testing/darkhttpd/APKBUILD9
-rw-r--r--testing/darkhttpd/darkhttpd.initd12
2 files changed, 11 insertions, 10 deletions
diff --git a/testing/darkhttpd/APKBUILD b/testing/darkhttpd/APKBUILD
index 090ec916d..8aa180ed3 100644
--- a/testing/darkhttpd/APKBUILD
+++ b/testing/darkhttpd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Alan Messias Cordeiro <alancordeiro@gmail.com>
pkgname=darkhttpd
pkgver=1.9
-pkgrel=0
+pkgrel=1
pkgdesc="A simple, single-threaded, static content webserver"
url="http://unix4lyfe.org/darkhttpd/"
arch="all"
@@ -35,14 +35,15 @@ package() {
# install binary
cd "$_builddir"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1
+ install -d "$pkgdir"/var/www/localhost/htdocs || return 1
# install init.d
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
}
md5sums="156f239af542028c3fb5c2248aa0db8d darkhttpd-1.9.tar.bz2
-3b48a1d9602a2bff0db5f8a87432d356 darkhttpd.initd"
+cf157b9c79663870d5ad3fb7a43ad9d3 darkhttpd.initd"
sha256sums="33ef622069dc167bcf85e46482388f2d6555e25796f64a6c5b215d939f2b41c8 darkhttpd-1.9.tar.bz2
-9556d1e70ffd0b47258b01a9ac871636734fdf3caec61d604e71258fdc01fcdc darkhttpd.initd"
+3b8482966d2f5f9fb1e422864af458d0ce5a59a0b08950930cfc1059e21eae0a darkhttpd.initd"
sha512sums="dba843a5cdd1825666f1a4f2ae578e694c69f6f3d4e72586ab6cb96ef35e5581295ccbdff80bb8f58aba91f4c3342fe213604cb8eac5cbbd49d34bc8a0d795e4 darkhttpd-1.9.tar.bz2
-83d9546e73cbfd860684fe319fba5318057510ea2f03eab1ccfaece77b82a57fe3aab9573fdb77e8da4729b63a2db1940ce4ce92c8bf328f30acdb8176e9df9c darkhttpd.initd"
+c8956e2a7e85df03a449caac94a5de661fb8051a01ffc8d36d456175c299c5ef9633b5a31247bb11ba5f218438b66f845fce007df33ef8ff60e6582df2c3d161 darkhttpd.initd"
diff --git a/testing/darkhttpd/darkhttpd.initd b/testing/darkhttpd/darkhttpd.initd
index 0f5f4d9f3..f059052ed 100644
--- a/testing/darkhttpd/darkhttpd.initd
+++ b/testing/darkhttpd/darkhttpd.initd
@@ -1,8 +1,8 @@
#! /sbin/runscript
-description="darkhttpd web server"
-command="/usr/bin/darkhttpd"
-command_args="/var/www --chroot --daemon"
-procname="darkhttpd"
-pidfile=""
-stopsig="SIGTERM"
+description="darkhttpd web server"
+command="/usr/bin/darkhttpd"
+command_args="${document_root:-/var/www/localhost/htdocs} --chroot --daemon"
+procname="darkhttpd"
+pidfile=""
+stopsig="SIGTERM"