updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lighttpd-h264 / PKGBUILD
blobbfae710e6d6a5991f5ca4982ee667590d121185c
1 # Maintainer: Nick Campbell <s0ma AT theangryfist DOT net>
2 # Contributer: Pierre Schmitz <pierre@archlinux.de>
4 pkgname=lighttpd-h264
5 pkgver=1.4.28
6 pkgrel=1
7 _h264ver=2.2.9
8 pkgdesc='a secure, fast, compliant and very flexible web-server with CodeShop H264 streaming module.'
9 license=('custom')
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')
32 build() {
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
42   
43         cd ${srcdir}/lighttpd-${pkgver}
45         ./autogen.sh
47         ./configure --prefix=/usr \
48                 --enable-maintainer-mode \
49                 --libexecdir=/usr/lib/lighttpd/modules \
50                 --sysconfdir=/etc/lighttpd \
51                 --with-mysql \
52                 --with-ldap \
53                 --with-attr \
54                 --with-openssl \
55                 --with-kerberos5 \
56                 --without-fam \
57                 --with-webdav-props \
58                 --with-webdav-locks \
59                 --with-gdbm \
60                 --with-memcache \
61                 --with-lua
62         make
65 package() {
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/{} \;
76         popd >/dev/null
78         pushd doc >/dev/null
79         find . -maxdepth 1 -type f -name '*.txt' -exec install -D -m644 {} $pkgdir/usr/share/doc/lighttpd/{} \;
80         popd >/dev/null
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"