blob: 297becee8831d096e39b533b5406829cc1a27d82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lighttpd
pkgver=1.4.33
_streamver=2.2.0
pkgrel=3
pkgdesc="a secure, fast, compliant and very flexible web-server"
url="http://www.lighttpd.net/"
arch="all"
license="custom"
install="$pkgname.pre-install $pkgname.pre-upgrade"
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
CVE-2013-4508.patch
CVE-2013-4508b.patch
CVE-2013-4559.patch
CVE-2013-4560.patch
$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
a511605bb658386a09892c578dfc1edb CVE-2013-4508.patch
89dba7992857f6173b64305142c0a79d CVE-2013-4508b.patch
a17ed4614cdd6273d6cde40d48dbbf0e CVE-2013-4559.patch
f903d74285300a4323aafb9cd6e59aa0 CVE-2013-4560.patch
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
08b2529e527a9810fd46fa2e33529a05f70b58e06b5d908a9c8126778a8f8284 CVE-2013-4508.patch
d5c3740de1322b52d13387a797b191f5fe61aa542c58dfa828e778cedf674580 CVE-2013-4508b.patch
82c2b19fcf807d4d32732aa72a62b7d31a0988290b227c98b0399cfa98da91a4 CVE-2013-4559.patch
d87655bbfc597216476c2674d9018aa556f7b6e592c9313c94c82e141b9bff2f CVE-2013-4560.patch
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
2f0c876ee11e64cb4df5e1a59fe907c680b7825b8c6acc12d3697bc0ceaf0f3eee223702b04a7f14a9e7e5d55e027b6181b9837a3d5a7476b10f90a9b8b1238e CVE-2013-4508.patch
521e0828009b37d936d15564734568b0e0180b2261d40562d686f3abc10c4a8780524b404788f21d09fecefeabbd588c2cb8dce0c242f6dec693c2f664c296e2 CVE-2013-4508b.patch
63c200180d11658a3341061e3ac0d404504b9ef97927e8673ac78a2c41c8169b0e1c4e37d6da08de9d6c4fc390e452f256207dc850f85f8bdd761c6b4e3f58a7 CVE-2013-4559.patch
c7d699df342ad2822fddf6f20bddac9c069d3eeeaf20067781728ed341a36a9a1cc5c430ff2d5d1e1a422a31c3fcf7e8752bb034df69df15d8de3b179c757024 CVE-2013-4560.patch
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"
|