pkgname=lighttpd pkgver=1.4.13 pkgrel=1 pkgdesc="lighttpd is a secure, fast, compliant and very flexible web-server" arch=(i686 x86_64) url="http://www.lighttpd.net/" depends=('pcre' 'openssl' 'zlib' 'bzip2' 'attr') makedepends=('fcgi' 'libmysqlclient' 'libldap' 'lua' 'gdbm' 'libmemcache' 'sqlite3' \ 'libxml2' 'vim' 'pkgconfig') backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd' \ 'etc/conf.d/lighttpd' 'etc/conf.d/spawn-php' \ 'home/lighttpd/html/index.html') options=('NOLIBTOOL') install=$pkgname.install source=(http://www.lighttpd.net/download/$pkgname-$pkgver.tar.gz \ index.html $pkgname.rc.d $pkgname.conf.d $pkgname.logrotate.d \ spawn-php.rc.d spawn-php.conf.d tweakconf.vim lighttpd-1.4.13.mod_deflate.jz.patch) md5sums=('d775d6478391b95d841a1018c8db0b95' '85593eb67b928fec79b1efb3fa3cce84'\ '6d05e499e47425e99bf809c88bd4969d' '14565fa5d30c60941190ceb32b1b551f'\ 'a8c31344b90328c5b751d965d79c5047' 'df940132363030eafcf7009a5322048f'\ '1ba657b113b7e473fb301631a7e2e1a4' '99d7627fc2c3d152687a4a8d8e5a1663') build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < ../lighttpd-1.4.13.mod_deflate.jz.patch || return 1 ./configure --prefix=/usr --libdir=/usr/lib/lighttpd \ --with-ldap --with-gdbm --with-lua --with-memcache \ --with-openssl=/usr/include/openssl \ --with-kerberos5 \ --with-mysql=/usr/bin/mysql_config \ --with-webdav-props --with-webdav-locks \ --with-attr --without-fam --with-bzip2 make || return 1 make DESTDIR=$startdir/pkg install || return 1 # install configuration scripts and daemons install -Dm644 ../index.html $startdir/pkg/home/lighttpd/html/index.html install -Dm755 ../lighttpd.rc.d $startdir/pkg/etc/rc.d/lighttpd install -Dm644 ../lighttpd.conf.d $startdir/pkg/etc/conf.d/lighttpd install -Dm644 ../lighttpd.logrotate.d $startdir/pkg/etc/logrotate.d/lighttpd install -Dm755 ../spawn-php.rc.d $startdir/pkg/etc/rc.d/spawn-php install -Dm644 ../spawn-php.conf.d $startdir/pkg/etc/conf.d/spawn-php