diff options
author | Alan Messias Cordeiro <alancordeiro@gmail.com> | 2014-01-14 11:05:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-15 10:18:46 +0000 |
commit | 5b5fbb5f2fb084070b9e1025ecd996d3303733c6 (patch) | |
tree | 35e43fc020964c09362c008e27acdf8a555dc43c /testing/darkhttpd | |
parent | 96d57390a842f441c65fe19aaeea2d2638d7b7b0 (diff) | |
download | aports-5b5fbb5f2fb084070b9e1025ecd996d3303733c6.tar.bz2 aports-5b5fbb5f2fb084070b9e1025ecd996d3303733c6.tar.xz |
testing/darkhttpd adding OpenRC script
Diffstat (limited to 'testing/darkhttpd')
-rw-r--r-- | testing/darkhttpd/APKBUILD | 18 | ||||
-rw-r--r-- | testing/darkhttpd/darkhttpd.initd | 8 |
2 files changed, 21 insertions, 5 deletions
diff --git a/testing/darkhttpd/APKBUILD b/testing/darkhttpd/APKBUILD index 8c7dc29d19..090ec916d1 100644 --- a/testing/darkhttpd/APKBUILD +++ b/testing/darkhttpd/APKBUILD @@ -12,7 +12,8 @@ depends_dev="" makedepends="$depends_dev" install="" subpackages="" -source="http://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2" +source="http://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2 + $pkgname.initd" _builddir="$srcdir/$pkgname-$pkgver" prepare() { @@ -31,10 +32,17 @@ build() { } package() { + # install binary cd "$_builddir" - install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1 + + # install init.d + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1 } -md5sums="156f239af542028c3fb5c2248aa0db8d darkhttpd-1.9.tar.bz2" -sha256sums="33ef622069dc167bcf85e46482388f2d6555e25796f64a6c5b215d939f2b41c8 darkhttpd-1.9.tar.bz2" -sha512sums="dba843a5cdd1825666f1a4f2ae578e694c69f6f3d4e72586ab6cb96ef35e5581295ccbdff80bb8f58aba91f4c3342fe213604cb8eac5cbbd49d34bc8a0d795e4 darkhttpd-1.9.tar.bz2" +md5sums="156f239af542028c3fb5c2248aa0db8d darkhttpd-1.9.tar.bz2 +3b48a1d9602a2bff0db5f8a87432d356 darkhttpd.initd" +sha256sums="33ef622069dc167bcf85e46482388f2d6555e25796f64a6c5b215d939f2b41c8 darkhttpd-1.9.tar.bz2 +9556d1e70ffd0b47258b01a9ac871636734fdf3caec61d604e71258fdc01fcdc darkhttpd.initd" +sha512sums="dba843a5cdd1825666f1a4f2ae578e694c69f6f3d4e72586ab6cb96ef35e5581295ccbdff80bb8f58aba91f4c3342fe213604cb8eac5cbbd49d34bc8a0d795e4 darkhttpd-1.9.tar.bz2 +83d9546e73cbfd860684fe319fba5318057510ea2f03eab1ccfaece77b82a57fe3aab9573fdb77e8da4729b63a2db1940ce4ce92c8bf328f30acdb8176e9df9c darkhttpd.initd" diff --git a/testing/darkhttpd/darkhttpd.initd b/testing/darkhttpd/darkhttpd.initd new file mode 100644 index 0000000000..0f5f4d9f3e --- /dev/null +++ b/testing/darkhttpd/darkhttpd.initd @@ -0,0 +1,8 @@ +#! /sbin/runscript + +description="darkhttpd web server" +command="/usr/bin/darkhttpd" +command_args="/var/www --chroot --daemon" +procname="darkhttpd" +pidfile="" +stopsig="SIGTERM" |