45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'lighttpd'
|
|
pkgname=lighttpd
|
|
version=1.4.74
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dwith_brotli=disabled -Dwith_bzip=disabled
|
|
-Dwith_krb5=enabled -Dwith_ldap=enabled
|
|
-Dwith_libunwind=disabled -Dwith_lua=true
|
|
-Dwith_mysql=disabled -Dwith_openssl=true -Dwith_pcre2=true
|
|
-Dwith_pgsql=disabled
|
|
-Dwith_sasl=disabled -Dwith_webdav_props=enabled -Dwith_webdav_locks=enabled
|
|
-Dwith_xattr=true -Dwith_zlib=enabled -Dwith_zstd=disabled -Dwith_dbi=disabled
|
|
-Dmoduledir=lib/lighttpd/modules"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="
|
|
libxml2-devel lua53-devel mit-krb5-devel pcre2-devel sqlite-devel"
|
|
checkdepends="perl"
|
|
short_desc="Secure, fast, compliant and very flexible web-server"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://lighttpd.net"
|
|
distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
|
|
checksum=5c08736e83088f7e019797159f306e88ec729abe976dc98fb3bed71b9d3e53b5
|
|
|
|
conf_files="/etc/lighttpd/lighttpd.conf"
|
|
system_accounts="_lighttpd"
|
|
_lighttpd_homedir="/srv/www/${pkgname}"
|
|
lib32disabled=yes
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
elif [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
make_dirs="
|
|
/srv/www/lighttpd 0755 _lighttpd _lighttpd
|
|
/var/log/lighttpd 0755 _lighttpd _lighttpd"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vsv lighttpd
|
|
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
|
|
}
|