desktop/lighttpd/PKGBUILD

73 lines
2.4 KiB
Bash
Raw Normal View History

pkgname=lighttpd
2016-12-24 19:59:51 +08:00
pkgver=1.4.44
2016-07-17 10:53:20 +08:00
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')
2016-10-16 21:15:06 +08:00
makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig' 'geoip')
optdepends=('libxml2: mod_webdav'
'lua: mod_cml/mod_magnet'
'libmysqlclient: mod_mysql_vhost'
2016-10-16 21:15:06 +08:00
'sqlite3: mod_webdav'
'geoip: GeoIP support')
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')
2016-12-24 19:59:51 +08:00
sha256sums=('e67dd1255320ed93ea13320d0a8a9bd133a4c5e5cb3f1e951b530bda69467236'
2016-01-04 23:22:21 +08:00
'd8a185145a7c08b4fd8c8e6c12dae3e176389dd9b1c66e239757b2ba5108c871'
'708cefe97541edba73f572ed3836bd056462b1467e45e1912c9d960139929696'
'b7c1f4a6a886f0f8e0f0b3248cf004aab2dd67c740f7389d7e1eb08b3eaa0d39'
'48b531fbcc58a40ec26716c93f0b0d4a33bed1667d8ef77c17b36d807b5c39a3')
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 \
2016-10-16 21:15:06 +08:00
--with-krb5 \
--without-fam \
--with-webdav-props \
--with-webdav-locks \
--with-gdbm \
2016-10-16 21:15:06 +08:00
--without-memcached \
--with-lua \
--with-geoip
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"
2015-08-08 23:03:27 +08:00
install -d -m755 -o http -g http "${pkgdir}"/{run/lighttpd,var/{log,cache}/lighttpd/}
2013-04-09 19:04:36 +08:00
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"
}