void-packages/srcpkgs/lighttpd/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

52 lines
1.5 KiB
Bash

# Template file for 'lighttpd'
pkgname=lighttpd
version=1.4.35
revision=9
makedepends="libmysqlclient-devel lua-devel libxml2-devel sqlite-devel gdbm-devel pcre-devel libressl-devel fcgi-devel"
hostmakedepends="automake pkg-config pcre-devel libtool"
conf_files="/etc/lighttpd/lighttpd.conf"
system_accounts="lighttpd"
lighttpd_homedir="/var/tmp/lighttpd"
build_options="systemd"
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=4a71c1f6d8af41ed894b507720c4c17184dc320590013881d5170ca7f15c5bf7
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"
lib32disabled=yes
pre_configure() {
autoreconf -fi
}
post_install() {
vsv lighttpd
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
# Install systemd services
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/lighttpd.service 644 usr/lib/systemd/system
fi
}