mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
network/lighttpd: Updated for version 1.4.28.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
0d744fe432
commit
dfd0943e2b
3 changed files with 11 additions and 36 deletions
|
@ -1,12 +0,0 @@
|
|||
diff -purN orig/src/network.c lighttpd-1.4.25/src/network.c
|
||||
--- orig/src/network.c 2010-01-28 10:43:33.829209750 -0500
|
||||
+++ lighttpd-1.4.25/src/network.c 2010-01-28 10:44:22.639208732 -0500
|
||||
@@ -525,7 +525,7 @@ int network_init(server *srv) {
|
||||
|
||||
if (!s->ssl_use_sslv2) {
|
||||
/* disable SSLv2 */
|
||||
- if (SSL_OP_NO_SSLv2 != SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2)) {
|
||||
+ if (!(SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2))) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
|
||||
ERR_error_string(ERR_get_error(), NULL));
|
||||
return -1;
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
# Slackware build script for lighttpd
|
||||
#
|
||||
|
||||
# Copyright (c) 2007 Daniel de Kok <moc.mikciat@leinad>
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -23,16 +23,14 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=lighttpd
|
||||
VERSION=1.4.26
|
||||
VERSION=1.4.28
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -52,14 +50,13 @@ bailout() {
|
|||
does not exist. You should create it/them with the following:
|
||||
groupadd -g 208 $LIGHTTPD_GROUP
|
||||
useradd -u 208 -g $LIGHTTPD_GROUP -d /var/www $LIGHTTPD_USER\n"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ! grep -q ^$LIGHTTPD_GROUP: /etc/group 2>/dev/null ; then
|
||||
bailout
|
||||
exit 1
|
||||
elif ! grep -q ^$LIGHTTPD_USER: /etc/passwd 2>/dev/null ; then
|
||||
bailout
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
|
@ -87,9 +84,6 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# apply ssl related bug fix (rm in 1.4.27)
|
||||
patch -p1 < ${CWD}/08-ssl-retval-fix.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -111,11 +105,7 @@ chmod 0700 $PKG/var/cache/lighttpd
|
|||
mkdir -p $PKG/var/www/htdocs-lighttpd
|
||||
touch $PKG/var/log/lighttpd/{access,error}.log.new
|
||||
|
||||
# We'll create this, even though it will be empty by default, because
|
||||
# our suggested fastcgi path will use this as the socket directory
|
||||
# instead of /tmp (to avoid symlink attacks and such)
|
||||
# This is also the default directory used for the pid file now
|
||||
# (configurable in lighttpd.conf)
|
||||
# Create the default pid file directory (configurable in lighttpd.conf)
|
||||
mkdir -p $PKG/var/run/lighttpd
|
||||
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/run/lighttpd
|
||||
|
||||
|
@ -126,10 +116,7 @@ install -D -m 0644 $CWD/$PRGNAM.logrotate $PKG/etc/logrotate.d/lighttpd.new
|
|||
chown -R $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/log/lighttpd/
|
||||
chown -R $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/cache/lighttpd
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING INSTALL NEWS README doc/* \
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="lighttpd"
|
||||
VERSION="1.4.26"
|
||||
VERSION="1.4.28"
|
||||
HOMEPAGE="http://www.lighttpd.net/"
|
||||
DOWNLOAD="http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.26.tar.bz2"
|
||||
MD5SUM="a682c8efce47a2f4263a247ba0813c9b"
|
||||
DOWNLOAD="http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.bz2"
|
||||
MD5SUM="586eb535d31ac299652495b058dd87c4"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="paul wisehart"
|
||||
EMAIL="wise@lupulin.net"
|
||||
APPROVED="Erik Hanson"
|
||||
EMAIL="paul@oldcode.org"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue