From af9520a4d91d44044bbf7d1314aa7e7c52d4f556 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 17:51:00 +0200 Subject: [PATCH] lighttpd: added runit service. --- srcpkgs/lighttpd/files/lighttpd/run | 2 ++ srcpkgs/lighttpd/template | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100755 srcpkgs/lighttpd/files/lighttpd/run diff --git a/srcpkgs/lighttpd/files/lighttpd/run b/srcpkgs/lighttpd/files/lighttpd/run new file mode 100755 index 00000000000..b1d0bb000f7 --- /dev/null +++ b/srcpkgs/lighttpd/files/lighttpd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template index 4b00de585ac..dec166b8f74 100644 --- a/srcpkgs/lighttpd/template +++ b/srcpkgs/lighttpd/template @@ -1,16 +1,14 @@ # Template file for 'lighttpd' pkgname=lighttpd 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" -hostmakedepends="automake pkg-config pcre-devel libtool which" +hostmakedepends="automake pkg-config pcre-devel libtool" conf_files="/etc/lighttpd/lighttpd.conf" system_accounts="lighttpd" lighttpd_homedir="/var/tmp/lighttpd" +replaces="runit-void<20141013_2" build_options="systemd" -if [ "$build_option_systemd" ]; then - systemd_services="lighttpd.service on" -fi make_dirs=" /srv/www 0755 root root /var/log/lighttpd 0750 lighttpd lighttpd" @@ -46,6 +44,7 @@ pre_configure() { autoreconf -fi } post_install() { + vsv lighttpd vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd # Install systemd services if [ "$build_option_systemd" ]; then