|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/configure openlitespeed-1.4.27/configure
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/configure 2017-08-15 23:10:20.876017915 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -11323,7 +11323,7 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
# This must be glibc/ELF.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
+linux* | k*bsd*-gnu | kopensolaris*-gnu | midipix)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
version_type=linux
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
need_lib_prefix=no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
need_version=no
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -15907,16 +15907,8 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
if test "$OPENLSWS_BSSL" = no ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- if test "$OSNAME" = Darwin ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- usedynossl=yes
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- CPPFLAGS="$CPPFLAGS -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg "
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- usedynossl=no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- CPPFLAGS="$CPPFLAGS -I../../ssl/include -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg "
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- echo "Will build latest stable openssl libraries for you, this may take several minutes ..."
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- OSSL=`. $srcdir/dlossl.sh`
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- echo "Finsihed building openssl."
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
+ usedynossl=yes
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
+ CPPFLAGS="$CPPFLAGS -I../../src -I../../include "
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
echo "Openssl: use_dyn_ossl = $usedynossl"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -16243,12 +16235,6 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-ZLIB_HOME=/usr/local
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-if test ! -f "${ZLIB_HOME}/include/zlib.h"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
- ZLIB_HOME=/usr
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
# Locate zlib, if wanted
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
#
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -16392,7 +16378,6 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-if test "$OSNAME" = Darwin ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
# Check whether --with-openssl was given.
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -16520,8 +16505,6 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
$as_echo_n "checking lib pcre... " >&6; }
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
PCRE_LDFLAGS=
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/dist/install.sh openlitespeed-1.4.27/dist/install.sh
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/dist/install.sh 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -7,92 +7,6 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
MARIADBCPUARCH=
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b19456 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-inst_admin_php()
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-{
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- OS=`uname -s`
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- OSTYPE=`uname -m`
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DLCMD=
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DL=`which wget`
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- if [ $? -eq 0 ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DLCMD="wget -nv -O "
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DL=`which curl`
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- if [ $? -eq 0 ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DLCMD="curl -L -o "
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- if [ "x$OS" = "xFreeBSD" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DL=`which fetch`
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- if [ $? -eq 0 ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- DLCMD="fetch -o "
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- fi
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- fi
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ "x$DLCMD" = "x" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- echo "ERROR: cannot find proper download method curl/wget/fetch."
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo "DLCMD is $DLCMD"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- HASADMINPHP=n
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- mv "$LSWS_HOME/admin/fcgi-bin/admin_php" "$LSWS_HOME/admin/fcgi-bin/admin_php.bak"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo "admin_php found and mv to admin_php.bak"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ ! -d "$LSWS_HOME/admin/fcgi-bin/" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- mkdir -p "$LSWS_HOME/admin/fcgi-bin/"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo "Mkdir $LSWS_HOME/admin/fcgi-bin/ for installing admni_php"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ "x$OS" = "xLinux" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ "x$OSTYPE" != "xx86_64" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- $DLCMD $LSWS_HOME/admin/fcgi-bin/admin_php http://www.litespeedtech.com/packages/lsphp5_bin/i386/lsphp5
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- $DLCMD $LSWS_HOME/admin/fcgi-bin/admin_php http://www.litespeedtech.com/packages/lsphp5_bin/x86_64/lsphp5
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ $? = 0 ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- HASADMINPHP=y
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo "admin_php downloaded."
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-# if [ -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-# HASADMINPHP=y
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-# fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- elif [ "x$OS" = "xFreeBSD" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ "x$OSTYPE" != "xamd64" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- $DLCMD $LSWS_HOME/admin/fcgi-bin/admin_php http://www.litespeedtech.com/packages/lsphp5_bin/i386-freebsd/lsphp5
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- $DLCMD $LSWS_HOME/admin/fcgi-bin/admin_php http://www.litespeedtech.com/packages/lsphp5_bin/x86_64-freebsd/lsphp5
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ $? = 0 ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- HASADMINPHP=y
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo "admin_php downloaded."
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ "x$HASADMINPHP" = "xn" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo -e "\033[38;5;148mStart to build php, this may take several minutes, please waiting ...\033[39m"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- $LSWS_HOME/admin/misc/build_admin_php.sh
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- chmod "$EXEC_MOD" "$LSWS_HOME/admin/fcgi-bin/admin_php"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- if [ ! -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- echo -e "\033[38;5;148mFinal checking found admin_php not exists, installation abort.\033[39m"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- exit 1
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-}
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
install_lsphp7_centos()
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
action=install
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -230,17 +144,6 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
}
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-inst_lsphp7()
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- check_os
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- if [ "x$OSNAME" = "xcentos" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- install_lsphp7_centos
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- install_lsphp7_debian
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- fi
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-}
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
#script start here
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
cd `dirname "$0"`
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
source ./functions.sh 2>/dev/null
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -332,7 +235,6 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
echo
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
echo -e "\033[38;5;148m$LSWS_HOME/conf/httpd_config.xml exists, will be converted to $LSWS_HOME/conf/httpd_config.conf!\033[39m"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- inst_admin_php
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
PHP_INSTALLED=y
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
if [ -e "$LSWS_HOME/conf/httpd_config.conf" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -401,9 +303,6 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
buildConfigFiles
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
installation
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-if [ "x$PHP_INSTALLED" = "xn" ] ; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
- inst_admin_php
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
-fi
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
rm $LSWS_HOME/bin/lshttpd
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22ed12 |
ln -sf ./openlitespeed $LSWS_HOME/bin/lshttpd
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -424,7 +323,6 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
ln -sf "$LSWS_HOME/fcgi-bin/lsphp5" "$LSWS_HOME/fcgi-bin/lsphp"
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
if [ "x$USE_LSPHP7" = "xyes" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- inst_lsphp7
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
if [ -f "$LSWS_HOME/fcgi-bin/lsphp7" ]; then
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
rm "$LSWS_HOME/fcgi-bin/lsphp"
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
ln -sf "$LSWS_HOME/fcgi-bin/lsphp7" "$LSWS_HOME/fcgi-bin/lsphp"
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/main/lshttpdmain.cpp openlitespeed-1.4.27/src/main/lshttpdmain.cpp
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/main/lshttpdmain.cpp 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -46,7 +46,9 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <util/stringlist.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <util/signalutil.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <util/vmembuf.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#ifndef __midipix__
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <sys/sysctl.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <extensions/cgi/cgidworker.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <extensions/registry/extappregistry.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -1441,7 +1443,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#ifdef LSWS_NO_SET_AFFINITY
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return 2;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return sysconf(_SC_NPROCESSORS_ONLN);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
int nm[2];
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/modules/Makefile.in openlitespeed-1.4.27/src/modules/Makefile.in
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/modules/Makefile.in 2017-08-15 23:10:18.868017963 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+++ openlitespeed-1.4.27/src/modules/Makefile.in 2017-09-19 23:30:25.052836970 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -188,7 +188,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
done | $(am__uniquify_input)`
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
ETAGS = etags
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
CTAGS = ctags
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-DIST_SUBDIRS = cache uploadprogress modinspector modreqparser lua
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+DIST_SUBDIRS = lua
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
am__relativize = \
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
dir0=`pwd`; \
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -375,8 +375,8 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
AM_CPPFLAGS = -I$(top_srcdir)/openssl/include/ -I$(top_srcdir)/include -I$(top_srcdir)/src
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
libmodules_a_METASOURCES = AUTO
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
libmodules_a_SOURCES = modgzip/modgzip.cpp
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-@HAVE_LIBLUA_FALSE@SUBDIRS = cache uploadprogress modinspector modreqparser
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-@HAVE_LIBLUA_TRUE@SUBDIRS = cache uploadprogress lua modinspector modreqparser
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+@HAVE_LIBLUA_FALSE@SUBDIRS =
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+@HAVE_LIBLUA_TRUE@SUBDIRS = lua
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
all: all-recursive
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
.SUFFIXES:
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/util/gsendfile.h openlitespeed-1.4.27/src/util/gsendfile.h
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/util/gsendfile.h 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -83,7 +83,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#if defined(linux) || defined(__linux) || defined(__linux__) || \
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
- defined(__gnu_linux__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+ defined(__gnu_linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <sys/sendfile.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#define gsendfile ::sendfile
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/util/pcutil.cpp openlitespeed-1.4.27/src/util/pcutil.cpp
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/util/pcutil.cpp 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -22,6 +22,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <stdlib.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <unistd.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <string.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#include <pthread.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#ifdef __linux
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <sched.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -73,7 +74,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
if (s_nCpu > 0)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return s_nCpu;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-#if defined(linux) || defined(__linux) || defined(__linux__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
s_nCpu = sysconf(_SC_NPROCESSORS_ONLN);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
int mib[2];
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -117,7 +118,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#ifdef __FreeBSD__
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
sizeof(cpu_set_t), mask);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-#elif defined(linux) || defined(__linux) || defined(__linux__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), mask);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
//return sched_setaffinity(0, sizeof(cpu_set_t), mask);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/util/pcutil.h openlitespeed-1.4.27/src/util/pcutil.h
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/util/pcutil.h 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -18,7 +18,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#ifndef PCUTIL_H
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#define PCUTIL_H
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <sched.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
# define SET_AFFINITY(pid, size, mask) sched_setaffinity(0, size, mask)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
# define GET_AFFINITY(pid, size, mask) sched_getaffinity(0, size, mask)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/util/sysinfo/partitioninfo.cpp openlitespeed-1.4.27/src/util/sysinfo/partitioninfo.cpp
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/util/sysinfo/partitioninfo.cpp 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -16,7 +16,11 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
* along with this program. If not, see http://www.gnu.org/licenses/. *
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
*****************************************************************************/
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include "partitioninfo.h"
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
#include <lsdef.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#ifdef __midipix__
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#include <sys/statfs.h>
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
PartitionInfo::PartitionInfo()
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -33,7 +37,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
int PartitionInfo::getPartitionInfo(const char *path, uint64_t *outTotal,
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
uint64_t *outFree)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
-#if defined(__linux) || defined(sun)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#if defined(__linux) || defined(sun) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
struct statvfs st;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
if (statvfs(path, &st) != 0)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
diff -ru openlitespeed-1.4.27.orig/src/util/sysinfo/siocglif_nicdetect.cpp openlitespeed-1.4.27/src/util/sysinfo/siocglif_nicdetect.cpp
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
--- openlitespeed-1.4.27.orig/src/util/sysinfo/siocglif_nicdetect.cpp 2017-08-15 22:41:26.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -18,6 +18,9 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
struct ifi_info *
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
NICDetect::get_ifi_info(int family, int doaliases)
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
{
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#ifdef __midipix__
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+ return NULL;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#else
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
struct ifi_info *ifi, *ifihead, **ifipnext;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
int sockfd, len, lastlen, flags, myflags;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
char *buf, lastname[IFNAMSIZ], *cptr;
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
@@ -163,5 +166,6 @@
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
close(sockfd);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
free(buf);
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
return (ifihead); /* pointer to first structure in linked list */
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
+#endif
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
}
|
|
Lucio Andrés Illanes Albornoz |
a7c532 |
|