# Maintainer: Natanael Copa pkgname=lighttpd pkgver=1.4.33 _streamver=2.2.0 pkgrel=1 pkgdesc="a secure, fast, compliant and very flexible web-server" url="http://www.lighttpd.net/" arch="all" license="custom" install="$pkgname.pre-install" depends= pkgusers="lighttpd" pkggroups="lighttpd" makedepends="flex pcre-dev openssl-dev zlib-dev bzip2-dev lua-dev pkgconfig automake autoconf openldap-dev libxml2-dev sqlite-dev libev-dev" source="http://download.lighttpd.net/lighttpd/releases-1.4.x/$pkgname-$pkgver.tar.bz2 http://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-$_streamver.tar.gz $pkgname.initd $pkgname.confd $pkgname.logrotate spawn-fcgi.confd spawn-fcgi.initd lighttpd.conf mime-types.conf mod_cgi.conf mod_fastcgi.conf mod_fastcgi_fpm.conf " subpackages="$pkgname-doc $pkgname-mod_auth $pkgname-mod_h264_streaming $pkgname-mod_webdav" prepare() { cd "$srcdir"/$pkgname-$pkgver for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done # copy over the mod-h264-streaming mod # http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2#DownloadLighttpd1.4.191.4.20andother1.4.x cp "$srcdir"/lighttpd-1.4.18/src/moov.* src/ cp "$srcdir"/lighttpd-1.4.18/src/mod_h264_streaming.c src/ cat >> src/Makefile.am <<__EOF__ lib_LTLIBRARIES += mod_h264_streaming.la mod_h264_streaming_la_SOURCES = mod_h264_streaming.c moov.c mod_h264_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined mod_h264_streaming_la_LIBADD = \$(common_libadd) __EOF__ aclocal -I m4 && autoconf && automake --add-missing } build() { local i cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-dependency-tracking \ --enable-lfs \ --libdir=/usr/lib/lighttpd \ --without-mysql \ --without-attr \ --without-kerberos5 \ --without-fam \ --with-webdav-props \ --with-webdav-locks \ --without-gdbm \ --without-memcache \ --with-bzip2 \ --with-ldap \ --with-openssl \ --with-libev \ --with-lua \ || return 1 make } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/lighttpd/*.la || return 1 # create dirs install -d -m755 -o lighttpd -g lighttpd \ "$pkgdir"/var/run/lighttpd/ \ "$pkgdir"/var/log/lighttpd/ || return 1 install -d -m755 \ "$pkgdir"/etc/lighttpd/ \ "$pkgdir"/var/www/localhost/htdocs || return 1 # lighttpd install -D -m755 "$srcdir"/lighttpd.initd "$pkgdir"/etc/init.d/lighttpd install -D -m644 "$srcdir"/lighttpd.confd "$pkgdir"/etc/conf.d/lighttpd install -D -m644 "$srcdir"/lighttpd.logrotate \ "$pkgdir"/etc/logrotate.d/lighttpd # spawn-fcgi install -D -m755 "$srcdir"/spawn-fcgi.initd \ "$pkgdir"/etc/init.d/spawn-fcgi install -D -m644 "$srcdir"/spawn-fcgi.confd \ "$pkgdir"/etc/conf.d/spawn-fcgi # config files for i in lighttpd.conf mime-types.conf mod_cgi.conf mod_fastcgi.conf mod_fastcgi_fpm.conf; do install -m644 "$srcdir"/$i "$pkgdir"/etc/lighttpd/$i done } _mv_mod() { mkdir -p "$subpkgdir"/usr/lib/lighttpd while [ $# -gt 0 ]; do mv "$pkgdir"/usr/lib/lighttpd/$1.so \ "$subpkgdir"/usr/lib/lighttpd/ || return 1 shift done } mod_h264_streaming() { pkgdesc="H264 Streaming Module for lighttpd" url="http://h264.code-shop.com/trac" license="CCPL-nc-sa-3.0" replaces="lighttpd-h264_streaming" _mv_mod mod_h264_streaming } mod_auth() { pkgdesc="Authentication module for lighttpd" _mv_mod mod_auth } mod_webdav() { pkgdesc="WebDAV module for lighttpd" _mv_mod mod_webdav } md5sums="e66b8164e5fc5a6beec0823b697fbe1d lighttpd-1.4.33.tar.bz2 ac37885c881a058194405232e7737a7a lighttpd-1.4.18_mod_h264_streaming-2.2.0.tar.gz aa1f130f66607615143b2b497c55b177 lighttpd.initd 0dede109282bfe685bdec6b35f0e4b6b lighttpd.confd ad091c9157134890499f26d170352c9f lighttpd.logrotate 1d925aed297ec4541fb230dd19e11bc1 spawn-fcgi.confd 2f177ba0a35fd1c683edef3453c20bc8 spawn-fcgi.initd 268bf5dd2c370ee5e119246775ac5640 lighttpd.conf fef397e7bcf1b741dea211a555e1803c mime-types.conf 9c1407e95f62ed22da66c4ef5f69c3b5 mod_cgi.conf f3363e39832f1b6678468b482d121afb mod_fastcgi.conf aee5947a1abf380b0685a534ca384b42 mod_fastcgi_fpm.conf" sha256sums="2ff2324658c0f90e7d39afd40f08f11ca230903b9019c31a2bbecd8f087f235e lighttpd-1.4.33.tar.bz2 732cf98d823f2c7ddc96a3130a3c88d588b02ed20a0e7f8c9be25a265fbea2d6 lighttpd-1.4.18_mod_h264_streaming-2.2.0.tar.gz 14a769551522d7c05319db2efd6b03962638413e4a3d58a0ee5f3f4760d33f16 lighttpd.initd 94f69a173dc26610a43532474230537b9bc31ec846fb9f94cb72765f125edf87 lighttpd.confd 503ee1cd454e2c0f9a212ef60dc8321893eda06ccf721ecbe94d189a09e0bc6c lighttpd.logrotate bfa452a849165f921a2febf0b06879db18c4c921f156b1452d06bb821063f768 spawn-fcgi.confd 69d626c51195813b0fa3694c1ccc587d05044bd7c865965f6d8d5365e403bf8b spawn-fcgi.initd 7dad7aca511f77cb0a4562e5b3280772b56570bd778d35493494a6118e5841e4 lighttpd.conf 575231104d51fa1882c47021ab0aa00d615401059a6748d64453cb39aafba537 mime-types.conf 322656b4cfd22ca9f1f8ab160e0b932f1646622422fd49c6fc82ab416223eecf mod_cgi.conf d1adc1358b5d9e85353caa2e706bfa231d145dd59c075cdcb3f818b3cb5d722e mod_fastcgi.conf e7eb047360e09d1a2b693f08d4a912b99954090c5bdea706f46a33554e867043 mod_fastcgi_fpm.conf" sha512sums="f380adb20944846340b409290c43d54188f94e7992fe1e90121ab866f75048dfb7c2c1592b07b1df0af3b6d12b60d1d7e5d41de75c8684b8939b3df736f00762 lighttpd-1.4.33.tar.bz2 12e1b7c8146cccfa78678ce56cd2f704423559b23b90996dff00602634f110512146386086ac234293a3c28900a06c2bec1c97e680e7eed5173372f88177b351 lighttpd-1.4.18_mod_h264_streaming-2.2.0.tar.gz 3d92f1f2fab79d12570e445d0bfba1c3b53898c6eeb323ec2171a289417c01039746f722c5e00bac36ea7fc433e3e7422b64f8952ad780b3d68e010ef3d8bf61 lighttpd.initd 93a05dddab14ba6355a0345f1da2fe900c8b55fed8f98506295dc12d96c7cef803c4aca77f016b8acea7bbde485be1e09a57d31fdca6f91023fbeb4db9a90a8b lighttpd.confd e1284fe9ab4b9a53c21b40a5ac3e77e66343e187321b8a2f7464db64747f3a99f7e17a9e7c0e298db84a24fa1286cfe344dbff182eddd9de5c0605f5397a6972 lighttpd.logrotate d2a45db667bc60837978496ac29c85b6beb814f66a4229b0d867a2ec86803705ad0384f58c704623fdb2b4265ad49aa3b85af2ab91f064e5428adf5ea08337c2 spawn-fcgi.confd c3a107e35eec7ac242a983cc8fe977addc51737e750baef6479b522e82b2eb23624284d687cfb1679bfcef5ef6c62a8275f0907400b28f8b4aa01624c06358d7 spawn-fcgi.initd c945a9d5d8ab8404344e4a8a0018bf940071ff8ca9b611e686d328a26b50f25cecc72d3a0a2ff9f7ee9e91339692e8794ea46b3d6f1529c8d977ea226872d041 lighttpd.conf e35a0eba52a335982823060cb58781778bf8a9d2f71fdbb1ec9a6b228699b7194ebdc7d98fa0b490beead1348794b6398d3de0450ba1444a4994aefe93465072 mime-types.conf 27cc638d8068dcf47bd9db44943d1db6c6f4e8e6abd6b42af7cea004b1c093440068541d98c68f8bea70b956713adaf8ed59a4b642dea826ee8620a05f8cfde5 mod_cgi.conf 1f7ca06b3501326f204bfa4de2694b1552fddfac5af52357a5cea5861c20204069adf6f92ea0c267968e5e2dc02804e34a61eb710026c213e3523a490254b3aa mod_fastcgi.conf f9efc4b70d825600f5356c30e57d0b6cac11c01739337f7192c09c2cfd96cb76c8328b11d818ea4c2addc1a6d253975b84700106ae75854d55d0df73e220bd2b mod_fastcgi_fpm.conf"