Commit 48803c92 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/lighttpd: fix bad shell substitution in spawn-fcgi

fixes #160
parent 334ba402
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lighttpd
pkgver=1.4.23
pkgrel=0
pkgrel=1
pkgdesc="a secure, fast, compliant and very flexible web-server"
url="http://www.lighttpd.net/"
license="custom"
......@@ -11,7 +11,6 @@ makedepends="flex pcre-dev openssl-dev zlib-dev bzip2-dev lua-dev pkgconfig"
source="http://www.$pkgname.net/download/$pkgname-$pkgver.tar.bz2
$pkgname.initd
$pkgname.confd
$install
$pkgname.logrotate
spawn-fcgi.confd
spawn-fcgi.initd
......@@ -70,11 +69,9 @@ build() {
md5sums="0ab6bb7b17bf0f515ce7dce68e5e215a lighttpd-1.4.23.tar.bz2
6910842e8ba496e8aa984ab30a46eb72 lighttpd.initd
0dede109282bfe685bdec6b35f0e4b6b lighttpd.confd
e250fe505d07733e920348bea0909c29 lighttpd.pre-install
6e0e81296d854887e11bc4f8d6f998d7 lighttpd.post-install
ad091c9157134890499f26d170352c9f lighttpd.logrotate
1d925aed297ec4541fb230dd19e11bc1 spawn-fcgi.confd
78bc6ceac57ecaa47abf4d5df857fe57 spawn-fcgi.initd
2f177ba0a35fd1c683edef3453c20bc8 spawn-fcgi.initd
df5b2360ea380d988bf16905ab214286 lighttpd.conf
fef397e7bcf1b741dea211a555e1803c mime-types.conf
9c1407e95f62ed22da66c4ef5f69c3b5 mod_cgi.conf
......
......@@ -7,6 +7,7 @@ SPAWNFCGI_PID="/var/run/spawn-fcgi.pid"
depend() {
need net
after firewall
}
start() {
......@@ -21,7 +22,7 @@ start() {
# copy the allowed environment variables
unset E
for i in ${ALLOWED_ENV}; do
E="${E} ${i}=${!i}"
eval "E=\"${E} ${i}=\$${i}\""
done
# clean environment and set up a new one
......@@ -49,3 +50,4 @@ stop() {
fi
eend 0
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment