lighttpd: added systemd build option.
This commit is contained in:
parent
6033882b15
commit
1ac72d8d91
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue