lighttpd: use make_dirs to create lighttpd directories.

This commit is contained in:
maxice8 2019-01-26 20:32:03 -02:00
parent ecc7b9f11c
commit cbca560153
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 6 additions and 16 deletions

14
srcpkgs/lighttpd/files/lighttpd/run Executable file → Normal file
View file

@ -1,16 +1,2 @@
#!/bin/sh
[ -s conf ] && . ./conf
: ${ROOTDIR:=/srv/www/lighttpd}
: ${LOGDIR:=/var/log/lighttpd}
if [ ! -d $ROOTDIR ]; then
mkdir -p $ROOTDIR
chown _lighttpd:_lighttpd $ROOTDIR
fi
if [ ! -d $LOGDIR ]; then
mkdir -p $LOGDIR
chown _lighttpd:_lighttpd $LOGDIR
fi
exec lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf

View file

@ -1,7 +1,7 @@
# Template file for 'lighttpd'
pkgname=lighttpd
version=1.4.52
revision=1
revision=2
build_style=meson
configure_args="-Dwith_bzip=true -Dwith_fam=false -Dwith_gdbm=true
-Dwith_geoip=false -Dwith_krb5=true -Dwith_ldap=true -Dwith_libev=true
@ -13,7 +13,7 @@ hostmakedepends="pkg-config"
makedepends="libuuid-devel lua-devel libxml2-devel libev-devel sqlite-devel gdbm-devel
pcre-devel libressl-devel fcgi-devel libldap-devel attr-devel libmemcached-devel
mit-krb5-devel"
short_desc="A secure, fast, compliant and very flexible web-server"
short_desc="Secure, fast, compliant and very flexible web-server"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://lighttpd.net"
@ -25,6 +25,10 @@ system_accounts="_${pkgname}"
_lighttpd_homedir="/srv/www/${pkgname}"
lib32disabled=yes
make_dirs="
/srv/www/lighttpd 0755 lighttpd lighttpd
/var/log/lighttpd 0755 lighttpd lighttpd"
post_install() {
vlicense COPYING
vsv lighttpd