lighttpd: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:51:00 +02:00
parent 4cae2e1d89
commit af9520a4d9
2 changed files with 6 additions and 5 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf

View File

@ -1,16 +1,14 @@
# Template file for 'lighttpd' # Template file for 'lighttpd'
pkgname=lighttpd pkgname=lighttpd
version=1.4.35 version=1.4.35
revision=4 revision=5
makedepends="libmysqlclient-devel lua-devel libxml2-devel sqlite-devel gdbm-devel pcre-devel libressl-devel fcgi-devel" makedepends="libmysqlclient-devel lua-devel libxml2-devel sqlite-devel gdbm-devel pcre-devel libressl-devel fcgi-devel"
hostmakedepends="automake pkg-config pcre-devel libtool which" hostmakedepends="automake pkg-config pcre-devel libtool"
conf_files="/etc/lighttpd/lighttpd.conf" conf_files="/etc/lighttpd/lighttpd.conf"
system_accounts="lighttpd" system_accounts="lighttpd"
lighttpd_homedir="/var/tmp/lighttpd" lighttpd_homedir="/var/tmp/lighttpd"
replaces="runit-void<20141013_2"
build_options="systemd" build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="lighttpd.service on"
fi
make_dirs=" make_dirs="
/srv/www 0755 root root /srv/www 0755 root root
/var/log/lighttpd 0750 lighttpd lighttpd" /var/log/lighttpd 0750 lighttpd lighttpd"
@ -46,6 +44,7 @@ pre_configure() {
autoreconf -fi autoreconf -fi
} }
post_install() { post_install() {
vsv lighttpd
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
# Install systemd services # Install systemd services
if [ "$build_option_systemd" ]; then if [ "$build_option_systemd" ]; then