void-packages/srcpkgs/lighttpd/template

51 lines
1.5 KiB
Text

# Template file for 'lighttpd'
pkgname=lighttpd
version=1.4.34
revision=2
makedepends="libmysqlclient-devel lua-devel libxml2-devel sqlite-devel gdbm-devel pcre-devel openssl-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"
make_dirs="
/srv/www 0755 root root
/var/log/lighttpd 0750 lighttpd lighttpd"
short_desc="A secure, fast, compliant and very flexible web-server."
maintainer="Enno Boland <eb@s01.de>"
license="Simplified BSD"
homepage="http://lighttpd.net"
distfiles="http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.bz2"
checksum=e4b5682ef21b0bdea4a18dc7ccac6b5a0bf526b691ad0fe5c25c8b9fc38d0c12
build_style=gnu-configure
configure_args="
--with-gnu-ld \
--libdir=/usr/lib/lighttpd/modules/ \
--sysconfdir=/etc/lighttpd \
--with-mysql=${XBPS_CROSS_BASE}/usr/bin/mysql_config \
--with-ldap \
--with-attr \
--with-zlib \
--with-bzip2 \
--with-openssl \
--with-pcre \
--with-kerberos5 \
--without-fam \
--with-memcache \
--with-webdav-props \
--with-webdav-locks \
--with-gdbm \
--with-memcache \
--with-lua"
lib32_disabled=yes
disable_parallel_build=yes
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
# Install systemd services
vinstall ${FILESDIR}/lighttpd.service 644 usr/lib/systemd/system
}