From b19456e7bca91b4ffd9001da0be6357d5cdafa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 11 Feb 2017 15:51:29 +0000 Subject: vars/build.vars, patches/*: adds geoip (HEAD) and OpenLiteSpeed v1.4.24 (preliminary commit.) subr/pkg_autoconf.subr: try either of ${WORKDIR}/${PKG_SUBDIR}/{bootstrap,autogen.sh}. subr/pkg_configure.subr: pass ${CXXFLAGS} as well as ${CFLAGS} during ./configure. subr/pkg_setup_env.subr: fix ${PKG_SUBDIR} inference when ${PKG_FNAME} does not end w/ .tar*. --- patches/geoip-api-c_pre.local.patch | 11 ++++ patches/openlitespeed-1.4.24.local.patch | 94 ++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 patches/geoip-api-c_pre.local.patch create mode 100644 patches/openlitespeed-1.4.24.local.patch (limited to 'patches') diff --git a/patches/geoip-api-c_pre.local.patch b/patches/geoip-api-c_pre.local.patch new file mode 100644 index 00000000..c2319bf6 --- /dev/null +++ b/patches/geoip-api-c_pre.local.patch @@ -0,0 +1,11 @@ +--- geoip-api-c/bootstrap.orig 2017-02-11 15:15:17.545489844 +0000 ++++ geoip-api-c/bootstrap 2017-02-11 15:17:36.181821782 +0000 +@@ -2,7 +2,7 @@ + + # make sure to use the installed libtool + rm -f ltmain.sh +-autoreconf -fiv ++autoreconf -iv + + ################################################### + # the steps below may help with outdated toolsets diff --git a/patches/openlitespeed-1.4.24.local.patch b/patches/openlitespeed-1.4.24.local.patch new file mode 100644 index 00000000..a0cd9b5f --- /dev/null +++ b/patches/openlitespeed-1.4.24.local.patch @@ -0,0 +1,94 @@ +--- openlitespeed-1.4.24/configure.orig 2016-12-02 19:52:25.745807731 +0000 ++++ openlitespeed-1.4.24/configure 2017-02-11 15:09:26.176648560 +0000 +@@ -15863,16 +15863,8 @@ + + + if test "$OPENLSWS_BSSL" = no ; then +- if test "$OSNAME" = Darwin ; then +- usedynossl=yes +- CPPFLAGS="$CPPFLAGS -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg " +- else +- usedynossl=no +- CPPFLAGS="$CPPFLAGS -I../../ssl/include -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg " +- echo "Will build latest stable openssl libraries for you, this may take several minutes ..." +- OSSL=`. $srcdir/dlossl.sh` +- echo "Finsihed building openssl." +- fi ++ usedynossl=yes ++ CPPFLAGS="$CPPFLAGS -I../../src -I../../include " + echo "Openssl: use_dyn_ossl = $usedynossl" + else + #### Not provide location, use default location, will not copy files +@@ -15982,12 +15974,6 @@ + fi + + +-ZLIB_HOME=/usr/local +-if test ! -f "${ZLIB_HOME}/include/zlib.h" +-then +- ZLIB_HOME=/usr +-fi +- + # + # Locate zlib, if wanted + # +@@ -16131,7 +16117,6 @@ + + + +-if test "$OSNAME" = Darwin ; then + + + # Check whether --with-openssl was given. +@@ -16259,8 +16244,6 @@ + + + +-fi +- + { $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 + $as_echo_n "checking lib pcre... " >&6; } + PCRE_LDFLAGS= +--- openlitespeed-1.4.24/src/util/gsendfile.h.orig 2016-12-02 19:51:11.000000000 +0000 ++++ openlitespeed-1.4.24/src/util/gsendfile.h 2017-02-11 15:37:19.976655229 +0000 +@@ -83,7 +83,7 @@ + #endif + + #if defined(linux) || defined(__linux) || defined(__linux__) || \ +- defined(__gnu_linux__) ++ defined(__gnu_linux__) || defined(__midipix__) + #include + #define gsendfile ::sendfile + #endif +--- openlitespeed-1.4.24/src/util/pcutil.h.orig 2016-12-02 19:51:11.000000000 +0000 ++++ openlitespeed-1.4.24/src/util/pcutil.h 2017-02-11 15:39:02.736901419 +0000 +@@ -18,7 +18,7 @@ + #ifndef PCUTIL_H + #define PCUTIL_H + +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) || defined(__midipix__) + #include + # define SET_AFFINITY(pid, size, mask) sched_setaffinity(0, size, mask) + # define GET_AFFINITY(pid, size, mask) sched_getaffinity(0, size, mask) +--- openlitespeed-1.4.24/src/main/lshttpdmain.cpp.orig 2016-12-02 19:51:11.000000000 +0000 ++++ openlitespeed-1.4.24/src/main/lshttpdmain.cpp 2017-02-11 15:50:52.882605886 +0000 +@@ -45,7 +45,9 @@ + #include + #include + #include ++#ifndef __midipix__ + #include ++#endif + + #include + #include +@@ -1428,7 +1430,7 @@ + #ifdef LSWS_NO_SET_AFFINITY + return 2; + #else +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) || defined(__midipix__) + return sysconf(_SC_NPROCESSORS_ONLN); + #else + int nm[2]; -- cgit v1.2.3