1 # Maintainer: Nick Campbell <s0ma AT theangryfist DOT net>
2 # Contributer: Pierre Schmitz <pierre@archlinux.de>
8 pkgdesc='a secure, fast, compliant and very flexible web-server with CodeShop H264 streaming module.'
10 arch=('i686' 'x86_64')
11 url="http://www.lighttpd.net/"
12 depends=('pcre' 'bzip2' 'libldap' 'util-linux-ng')
13 makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig')
14 optdepends=('libxml2: mod_webdav'
15 'lua: mod_cml/mod_magnet'
16 'libmysqlclient: mod_mysql_vhost'
17 'sqlite3: mod_webdav')
18 backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd')
19 options=('!libtool' 'emptydirs')
20 source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.bz2"
21 "http://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-${_h264ver}.tar.gz"
22 "lighttpd-1.4.28-Makefile.am-h264-streaming.patch"
23 'lighttpd.rc.d' 'lighttpd.logrotate.d' 'lighttpd.conf')
25 md5sums=('586eb535d31ac299652495b058dd87c4'
26 '9cecce34321d3d0e54dd11dc129f4349'
27 'a5bf8df58f3e72504f7688f5822c4c4f'
28 '517a048cb54a37463c8e4a1dde637cf6'
29 '857e174643fd7761a2f0d8431a679f6c'
30 '0b4a308f0e8d4d317618c430d6f4289b')
34 cp ${srcdir}/lighttpd-1.4.18/src/mod_h264_streaming.c ${srcdir}/lighttpd-${pkgver}/src/
35 cp ${srcdir}/lighttpd-1.4.18/src/mod_streaming_export.h ${srcdir}/lighttpd-${pkgver}/src/
36 cp ${srcdir}/lighttpd-1.4.18/src/output_mp4.* ${srcdir}/lighttpd-${pkgver}/src/
37 cp ${srcdir}/lighttpd-1.4.18/src/output_bucket.* ${srcdir}/lighttpd-${pkgver}/src/
38 cp ${srcdir}/lighttpd-1.4.18/src/mp4_* ${srcdir}/lighttpd-${pkgver}/src/
39 cp ${srcdir}/lighttpd-1.4.18/src/moov.* ${srcdir}/lighttpd-${pkgver}/src/
41 patch -u ${srcdir}/lighttpd-${pkgver}/src/Makefile.am ${srcdir}/lighttpd-1.4.28-Makefile.am-h264-streaming.patch
43 cd ${srcdir}/lighttpd-${pkgver}
47 ./configure --prefix=/usr \
48 --enable-maintainer-mode \
49 --libexecdir=/usr/lib/lighttpd/modules \
50 --sysconfdir=/etc/lighttpd \
66 cd ${srcdir}/lighttpd-${pkgver}
67 make DESTDIR=${pkgdir} install
69 install -D -m755 ${srcdir}/lighttpd.rc.d ${pkgdir}/etc/rc.d/lighttpd
70 install -D -m644 ${srcdir}/lighttpd.logrotate.d ${pkgdir}/etc/logrotate.d/lighttpd
71 install -D -m644 ${srcdir}/lighttpd.conf ${pkgdir}/etc/lighttpd/lighttpd.conf
72 install -d -m755 -o http -g http ${pkgdir}/var/{run,log,cache}/lighttpd/
74 pushd doc/config >/dev/null
75 find . -type f ! -name 'Makefile*' -exec install -D -m644 {} $pkgdir/usr/share/doc/lighttpd/config/{} \;
79 find . -maxdepth 1 -type f -name '*.txt' -exec install -D -m644 {} $pkgdir/usr/share/doc/lighttpd/{} \;
82 install -D -m644 COPYING ${pkgdir}/usr/share/licenses/lighttpd/COPYING
84 echo -e "\n\nMore information about H264 Streaming Module: http://h264.code-shop.com/trac"
85 echo -e "\nNon-Commercial License: http://creativecommons.org/licenses/by-nc-sa/3.0/"
86 echo -e "\nCommercial License: http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-License-Version2\n\n"