desktop/lighttpd/PKGBUILD

71 lines
2.7 KiB
Bash
Raw Normal View History

pkgname=lighttpd
2015-07-26 20:24:59 +08:00
pkgver=1.4.36
pkgrel=1
2012-05-04 00:40:09 +08:00
pkgdesc='A secure, fast, compliant and very flexible web-server.'
license=('custom')
2013-12-12 01:07:59 +08:00
arch=('x86_64')
url="http://www.lighttpd.net/"
2013-04-09 19:04:36 +08:00
depends=('pcre' 'bzip2' 'libldap' 'util-linux')
makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig')
optdepends=('libxml2: mod_webdav'
'lua: mod_cml/mod_magnet'
'libmysqlclient: mod_mysql_vhost'
'sqlite3: mod_webdav')
categories=('network')
backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd')
options=('!libtool' 'emptydirs')
2013-04-09 19:04:36 +08:00
install=${pkgname}.install
2015-07-26 20:24:59 +08:00
source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.gz"
2013-04-09 19:04:36 +08:00
'lighttpd.tmpfiles'
'lighttpd.service'
'lighttpd.logrotate.d'
'lighttpd.conf')
2015-07-26 20:24:59 +08:00
sha512sums=('ecb88874dd81b5a469d94b8a1b03823b5b12cf49264d77f0d3b71cd4b537ffdd03595a3a471186c36cd9cfaebc5cff5c5f4037c2d8aeb83012ca224651f8a359'
'0079d6fd80ca42fa5384838b3df68d25000fb7a5a92ea9fb02f6a18cdfb85b23279c78b881e21270e7e450ee3ae28ea839932f3268b826b52478079e510ecd33'
'e9cb6f83e19366f8243a1ac1962d957f11801dbf20b2ebdaecd96d8422f794fd9061725dab648a6fd1bc7b74f59601340970f05ab4288e5c9ff92b065fbf1bf4'
'6ad0213cb50e9325b0cbf8a58365387868f9798c775ce3b68b032fc4046ea637eb31f1fde38af7bb5efc5aac6a6e3443a8a620fd1c55f3beeece35300dec0fbd'
'000f2ec18c52aa0d828355aec68ff85639e64161883c7567d23159d752b5f33054cca1a82177be58543fc880f165e797b2d262eea318053593b656c659addc6b')
build() {
2013-04-09 19:04:36 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--libexecdir=/usr/lib/lighttpd/modules \
2015-04-24 21:15:36 +08:00
--libdir=/usr/lib \
--sysconfdir=/etc/lighttpd \
--with-mysql \
--with-ldap \
--with-attr \
--with-openssl \
--with-kerberos5 \
--without-fam \
--with-webdav-props \
--with-webdav-locks \
--with-gdbm \
--with-memcache \
--with-lua
make
}
check() {
2013-04-09 19:04:36 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
2013-04-09 19:04:36 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2013-04-09 19:04:36 +08:00
install -D -m644 "${srcdir}/lighttpd.logrotate.d" "${pkgdir}/etc/logrotate.d/lighttpd"
install -D -m644 "${srcdir}/lighttpd.conf" "${pkgdir}/etc/lighttpd/lighttpd.conf"
install -d -m755 -o http -g http "${pkgdir}"/var/{run,log,cache}/lighttpd/
install -D -m644 "${srcdir}/lighttpd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/lighttpd.conf"
install -D -m644 "${srcdir}/lighttpd.service" "${pkgdir}/usr/lib/systemd/system/lighttpd.service"
pushd doc/config >/dev/null
2013-04-09 19:04:36 +08:00
find . -type f ! -name 'Makefile*' -exec install -D -m644 {} "${pkgdir}"/usr/share/doc/lighttpd/config/{} \;
popd >/dev/null
2013-04-09 19:04:36 +08:00
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}