From 1ac72d8d91184bb962688a0a2cb66ea0104eca55 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 20 Aug 2014 16:52:48 +0200 Subject: [PATCH] lighttpd: added systemd build option. --- srcpkgs/lighttpd/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template index bc52f00377..4b00de585a 100644 --- a/srcpkgs/lighttpd/template +++ b/srcpkgs/lighttpd/template @@ -1,13 +1,16 @@ # Template file for 'lighttpd' pkgname=lighttpd version=1.4.35 -revision=3 +revision=4 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" conf_files="/etc/lighttpd/lighttpd.conf" system_accounts="lighttpd" lighttpd_homedir="/var/tmp/lighttpd" -systemd_services="lighttpd.service on" +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" @@ -45,5 +48,7 @@ pre_configure() { post_install() { vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd # Install systemd services - vinstall ${FILESDIR}/lighttpd.service 644 usr/lib/systemd/system + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/lighttpd.service 644 usr/lib/systemd/system + fi }