network/lighttpd: Updated for version 1.4.20

This commit is contained in:
Paul Wisehart 2010-05-11 22:25:32 +02:00 committed by David Somero
parent 05cc16dfae
commit 82ae300f48
3 changed files with 43 additions and 18 deletions

View File

@ -33,3 +33,28 @@ to stop lighttpd on system shutdown.
if [ -x /etc/rc.d/rc.lighttpd ]; then
/etc/rc.d/rc.lighttpd stop
fi
* PHP users:
Slackware's default php package is meant to work with
httpd(apache). It works fine with lighttpd with a couple of tweaks.
1) Copy the php.ini from /etc/httpd to /etc/lighttpd
2) Uncomment mod_fastcgi from the modules section of
/etc/lighttpd/lighttpd.conf.
3) Rework the fastcgi section of /etc/lighttpd/lighttpd.conf to the
following: (Or just copy this in below the extisting commented out
fastcgi config.)
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi -c /etc/lighttpd/php.ini"
)
)
)
4) Change the group of /var/lib/php from "apache" to "lighttpd".
Otherwise php won't be able to use $_SESSION.

View File

@ -1,7 +1,7 @@
#!/bin/sh
#
# Slackware build script for lighttpd
#
# Copyright (c) 2007 Daniel de Kok <moc.mikciat@leinad>
# All rights reserved.
#
@ -21,26 +21,22 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Modified by the SlackBuilds.org team.
# Exit on most errors
set -e
PRGNAM=lighttpd
VERSION=1.4.18
VERSION=1.4.20
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
## lighttpd user & group. *MUST* exist before package creation
## lighttpd user & group *MUST* exist before package creation
# See http://slackbuilds.org/uid_gid.txt for current recomendations.
LIGHTTPD_USER=lighttpd
LIGHTTPD_GROUP=lighttpd
LIGHTTPD_USER=${LIGHTTPD_USER:-lighttpd}
LIGHTTPD_GROUP=${LIGHTTPD_GROUP:-lighttpd}
if ! grep ^$LIGHTTPD_GROUP: /etc/group > /dev/null 2>&1; then
echo "$0: Error: LIGHTTP group ($LIGHTTPD_GROUP) doesn't exist."
@ -58,13 +54,17 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

View File

@ -1,8 +1,8 @@
PRGNAM="lighttpd"
VERSION="1.4.18"
VERSION="1.4.20"
HOMEPAGE="http://www.lighttpd.net/"
DOWNLOAD="http://www.lighttpd.net/download/lighttpd-1.4.18.tar.gz"
MD5SUM="26f98dddf9d8c0775221b800986003ee"
MAINTAINER="Daniel de Kok"
EMAIL="danieldk@pobox.com"
APPROVED="rworkman"
DOWNLOAD="http://www.lighttpd.net/download/lighttpd-1.4.20.tar.bz2"
MD5SUM="ed6ee0bb714f393219a32768d86984d8"
MAINTAINER="paul wisehart"
EMAIL="wise@lupulin.net"
APPROVED="David Somero"