mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
lighttpd: use make_dirs to create lighttpd directories.
This commit is contained in:
parent
ecc7b9f11c
commit
cbca560153
2 changed files with 6 additions and 16 deletions
14
srcpkgs/lighttpd/files/lighttpd/run
Executable file → Normal file
14
srcpkgs/lighttpd/files/lighttpd/run
Executable file → Normal file
|
@ -1,16 +1,2 @@
|
||||||
#!/bin/sh
|
#!/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
|
exec lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'lighttpd'
|
# Template file for 'lighttpd'
|
||||||
pkgname=lighttpd
|
pkgname=lighttpd
|
||||||
version=1.4.52
|
version=1.4.52
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dwith_bzip=true -Dwith_fam=false -Dwith_gdbm=true
|
configure_args="-Dwith_bzip=true -Dwith_fam=false -Dwith_gdbm=true
|
||||||
-Dwith_geoip=false -Dwith_krb5=true -Dwith_ldap=true -Dwith_libev=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
|
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
|
pcre-devel libressl-devel fcgi-devel libldap-devel attr-devel libmemcached-devel
|
||||||
mit-krb5-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>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://lighttpd.net"
|
homepage="https://lighttpd.net"
|
||||||
|
@ -25,6 +25,10 @@ system_accounts="_${pkgname}"
|
||||||
_lighttpd_homedir="/srv/www/${pkgname}"
|
_lighttpd_homedir="/srv/www/${pkgname}"
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
||||||
|
make_dirs="
|
||||||
|
/srv/www/lighttpd 0755 lighttpd lighttpd
|
||||||
|
/var/log/lighttpd 0755 lighttpd lighttpd"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
vsv lighttpd
|
vsv lighttpd
|
||||||
|
|
Loading…
Add table
Reference in a new issue