mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
73 lines
2.5 KiB
Bash
73 lines
2.5 KiB
Bash
pkgname=lighttpd
|
|
pkgver=1.4.53
|
|
pkgrel=1
|
|
pkgdesc='A secure, fast, compliant and very flexible web-server.'
|
|
license=('custom')
|
|
arch=('x86_64')
|
|
url="https://www.lighttpd.net/"
|
|
depends=('pcre' 'bzip2' 'libldap' 'util-linux')
|
|
makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig' 'geoip' 'libsasl')
|
|
optdepends=('libxml2: mod_webdav'
|
|
'lua: mod_cml/mod_magnet'
|
|
'libmysqlclient: mod_mysql_vhost'
|
|
'sqlite3: mod_webdav'
|
|
'geoip: GeoIP support')
|
|
categories=('network')
|
|
backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd')
|
|
options=('!libtool' 'emptydirs')
|
|
install=${pkgname}.install
|
|
source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.gz"
|
|
'lighttpd.tmpfiles'
|
|
'lighttpd.service'
|
|
'lighttpd.logrotate.d'
|
|
'lighttpd.conf')
|
|
sha256sums=('423b3951f212e3a30511eb86f4662a1848c6e857074289ff23fc310eef520266'
|
|
'd8a185145a7c08b4fd8c8e6c12dae3e176389dd9b1c66e239757b2ba5108c871'
|
|
'708cefe97541edba73f572ed3836bd056462b1467e45e1912c9d960139929696'
|
|
'b7c1f4a6a886f0f8e0f0b3248cf004aab2dd67c740f7389d7e1eb08b3eaa0d39'
|
|
'48b531fbcc58a40ec26716c93f0b0d4a33bed1667d8ef77c17b36d807b5c39a3')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
--libexecdir=/usr/lib/lighttpd/modules \
|
|
--libdir=/usr/lib \
|
|
--sysconfdir=/etc/lighttpd \
|
|
--with-mysql \
|
|
--with-ldap \
|
|
--with-attr \
|
|
--with-openssl \
|
|
--with-krb5 \
|
|
--without-fam \
|
|
--with-webdav-props \
|
|
--with-webdav-locks \
|
|
--with-gdbm \
|
|
--without-memcached \
|
|
--with-lua \
|
|
--with-geoip
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
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}"/{run/lighttpd,var/{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
|
|
find . -type f ! -name 'Makefile*' -exec install -D -m644 {} "${pkgdir}"/usr/share/doc/lighttpd/config/{} \;
|
|
popd >/dev/null
|
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
}
|