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'
|
# Template file for 'lighttpd'
|
||||||
pkgname=lighttpd
|
pkgname=lighttpd
|
||||||
version=1.4.35
|
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"
|
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 which"
|
||||||
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"
|
||||||
systemd_services="lighttpd.service on"
|
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"
|
||||||
|
@ -45,5 +48,7 @@ pre_configure() {
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
|
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
|
||||||
# Install systemd services
|
# 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