diff options
-rw-r--r-- | patches/geoip-api-c_pre.local.patch | 11 | ||||
-rw-r--r-- | patches/openlitespeed-1.4.24.local.patch | 94 | ||||
-rw-r--r-- | subr/pkg_autoconf.subr | 36 | ||||
-rw-r--r-- | subr/pkg_configure.subr | 2 | ||||
-rw-r--r-- | subr/pkg_setup_env.subr | 2 | ||||
-rw-r--r-- | vars/build.vars | 15 |
6 files changed, 138 insertions, 22 deletions
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 <sys/sendfile.h> + #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 <sched.h> + # 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 <util/stringlist.h> + #include <util/signalutil.h> + #include <util/vmembuf.h> ++#ifndef __midipix__ + #include <sys/sysctl.h> ++#endif + + #include <extensions/cgi/cgidworker.h> + #include <extensions/registry/extappregistry.h> +@@ -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]; diff --git a/subr/pkg_autoconf.subr b/subr/pkg_autoconf.subr index 981dae74..e8bf0572 100644 --- a/subr/pkg_autoconf.subr +++ b/subr/pkg_autoconf.subr @@ -15,22 +15,26 @@ pkg_autoconf() { -exec install -m 0700 "${MIDIPIX_BUILD_PWD}/etc/config.sub" {} \;; if [ -e "${WORKDIR}/${PKG_SUBDIR}/configure.ac" ]\ && [ ! -e "${WORKDIR}/${PKG_SUBDIR}/configure" ]; then - if [ -e "${WORKDIR}/${PKG_SUBDIR}/autogen.sh" ]; then - for __ in "${WORKDIR}/${PKG_SUBDIR}/build-aux" "${WORKDIR}/${PKG_SUBDIR}"; do - if [ -e "${__}" ]; then - echo install -m 0700 \ - "${MIDIPIX_BUILD_PWD}/etc/config.sub" \ - "${__}/config.sub"; - install -m 0700 \ - "${MIDIPIX_BUILD_PWD}/etc/config.sub" \ - "${__}/config.sub"; - break; - fi; - done; - (build_fileop cd "${WORKDIR}/${PKG_SUBDIR}" && "${SHELL}" ./autogen.sh) || exit 1; - else - (build_fileop cd "${WORKDIR}/${PKG_SUBDIR}" && autoconf) || exit 1; - fi; + for __ in bootstrap autogen.sh ""; do + if [ -z "${__}" ]; then + (build_fileop cd "${WORKDIR}/${PKG_SUBDIR}" && autoconf)\ + || exit 1 && break; + elif [ -e "${WORKDIR}/${PKG_SUBDIR}/${__}" ]; then + for ___ in "${WORKDIR}/${PKG_SUBDIR}/build-aux" "${WORKDIR}/${PKG_SUBDIR}"; do + if [ -e "${___}" ]; then + echo install -m 0700 \ + "${MIDIPIX_BUILD_PWD}/etc/config.sub" \ + "${___}/config.sub"; + install -m 0700 \ + "${MIDIPIX_BUILD_PWD}/etc/config.sub" \ + "${___}/config.sub"; + break; + fi; + done; + (build_fileop cd "${WORKDIR}/${PKG_SUBDIR}" && "${SHELL}" "${__}")\ + || exit 1 && break; + fi; + done; fi; for __ in ${PKG_BUILD_DIR} ${PKG_CONFIG_CACHE_EXTRA}; do build_fileop cp "${MIDIPIX_BUILD_PWD}/etc/config.cache" "${WORKDIR}/${__}/"; diff --git a/subr/pkg_configure.subr b/subr/pkg_configure.subr index 1d53d8b6..f876e1e3 100644 --- a/subr/pkg_configure.subr +++ b/subr/pkg_configure.subr @@ -9,8 +9,8 @@ pkg_configure() { PKG_CONFIGURE="${WORKDIR}/${PKG_SUBDIR}/configure"; fi; if [ -x "${PKG_CONFIGURE}" ]; then - export CFLAGS_FOR_BUILD="${HOST_TOOLCHAIN_CFLAGS_CONFIGURE_DEFAULT}"; CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}" \ + CXXFLAGS="${PKG_CXXFLAGS_CONFIGURE}${PKG_CXXFLAGS_CONFIGURE_EXTRA:+ ${PKG_CXXFLAGS_CONFIGURE_EXTRA}}" \ LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}" \ ${PKG_CONFIGURE} \ ${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG}; diff --git a/subr/pkg_setup_env.subr b/subr/pkg_setup_env.subr index 83c24117..fb7b4566 100644 --- a/subr/pkg_setup_env.subr +++ b/subr/pkg_setup_env.subr @@ -22,7 +22,7 @@ pkg_setup_env() { else [ -n "${PKG_ENV_VARS_EXTRA}" ] && set_env_vars_with_sep : "${PKG_ENV_VARS_EXTRA}"; [ -z "${PKG_FNAME}" ] && PKG_FNAME="${PKG_URL##*/}"; - [ -z "${PKG_SUBDIR}" ] && PKG_SUBDIR="${PKG_FNAME%%.tar*}"; + [ -z "${PKG_SUBDIR}" ] && PKG_SUBDIR="${PKG_FNAME%%.t*}"; [ -z "${PKG_TARGET}" ] && PKG_TARGET="${TARGET}"; [ -z "${MIDIPIX_BUILD_PWD}" ] && MIDIPIX_BUILD_PWD="$(pwd)"; if [ -z "${PKG_BUILD_DIR}" ]; then diff --git a/vars/build.vars b/vars/build.vars index 908105cf..553f8969 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -58,7 +58,7 @@ fi; : ${LOG_MSG_INFO_COLOUR:=93}; : ${LOG_MSG_SUCC_COLOUR:=92}; : ${LOG_MSG_WARN_COLOUR:=96}; -: ${PKG_BUILD_VARS:="BUILD_CMDLINE BUILD_DIR BUILD_STEPS BUILD_TYPE CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA CFLAGS_INSTALL_EXTRA CONFIG_CACHE_EXTRA CONFIGURE CONFIGURE_ARGS CONFIGURE_ARGS_EXTRA DISABLED ENV_VARS_EXTRA FNAME INSTALL_FILES INSTALL_TARGET INSTALL_TARGET_EXTRA LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA LDFLAGS_INSTALL_EXTRA MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN NO_MAKE_BUILD NO_MAKE_INSTALL PREFIX_EXTRA SHA256SUM SLIBTOOL SUBDIR SUBDIR_CREATE TARGET URL URL_FNAME URL_TYPE URLS_GIT VERSION"}; +: ${PKG_BUILD_VARS:="BUILD_CMDLINE BUILD_DIR BUILD_STEPS BUILD_TYPE CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA CFLAGS_INSTALL_EXTRA CONFIG_CACHE_EXTRA CONFIGURE CONFIGURE_ARGS CONFIGURE_ARGS_EXTRA CXXFLAGS_CONFIGURE_EXTRA DISABLED ENV_VARS_EXTRA FNAME INSTALL_FILES INSTALL_TARGET INSTALL_TARGET_EXTRA LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA LDFLAGS_INSTALL_EXTRA MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN NO_MAKE_BUILD NO_MAKE_INSTALL PREFIX_EXTRA SHA256SUM SLIBTOOL SUBDIR SUBDIR_CREATE TARGET URL URL_FNAME URL_TYPE URLS_GIT VERSION"}; : ${TARBALL_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}.}; : ${TARBALL_SIGN_GPG_KEY:=}; : ${TARBALL_CROSS_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_cross.}; @@ -258,7 +258,7 @@ LIB_PACKAGES_CONFIGURE_ARGS="-C --disable-nls --host=${TARGET} --prefix= --targe LIB_PACKAGES_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}"; LIB_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}"; LIB_PACKAGES_PACKAGES_LEAVES=" -apr apr_util bzip2 curl expat libz libffi gdbm pcre glib gzip libarchive libatomic_ops +apr apr_util bzip2 curl expat libz libffi gdbm geoip pcre glib gzip libarchive libatomic_ops libpipeline libressl libevent libfetch libgpg_error libassuan libfirm libgcrypt libksba libxml2 lua ncurses ncursestw ncursesw npth sqlite3 xz"; LIB_PACKAGES_PACKAGES_X11=" @@ -308,6 +308,8 @@ LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_GDBM_SHA256SUM:=d97b2166ee867fd6ca5c022efee80702d6f30dd66af0e03ed092285c3af9bcea}; : ${PKG_GDBM_VERSION:=1.12}; : ${PKG_GDBM_URL:=ftp://ftp.gnu.org/gnu/gdbm/gdbm-${PKG_GDBM_VERSION}.tar.gz}; +: ${PKG_GEOIP_URLS_GIT:="geoip-api-c=https://github.com/maxmind/geoip-api-c@master"}; +: ${PKG_GEOIP_SUBDIR:=geoip-api-c}; : ${PKG_PCRE_SHA256SUM:=ccdf7e788769838f8285b3ee672ed573358202305ee361cfec7a4a4fb005bbc7}; : ${PKG_PCRE_VERSION:=8.39}; : ${PKG_PCRE_URL:=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PKG_PCRE_VERSION}.tar.gz}; @@ -499,8 +501,8 @@ LEAF_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}"; LEAF_PACKAGES_PACKAGES=" apk_tools bash bc bdwgc bind chicken clang_host coreutils cparser cron dash datamash diffutils dos2unix ed figlet file findutils gawk git gnupg grep hexcurse htop inetutils infounzip infozip -irssi john ldns less lighttpd lynx make man_db mc mksh nano netcat nginx openssh p7zip pacman -patch perl procps_ng python3 rsync rxvt_unicode sed smallbasic tar tcsh the_silver_searcher +irssi john ldns less lighttpd lynx make man_db mc mksh nano netcat nginx openlitespeed openssh +p7zip pacman patch perl procps_ng python3 rsync rxvt_unicode sed smallbasic tar tcsh the_silver_searcher tmux util_linux vim weechat wget which whois xeyes xwd zsh"; LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_APK_TOOLS_SHA256SUM:=def2b2c23cd12fd2a9c19be49653b0d1bf9d81a26dac5a0ee79a1351d674f93b}; @@ -714,6 +716,11 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_NGINX_SUBDIR:=nginx-${PKG_NGINX_VERSION}}; : ${PKG_NGINX_BUILD_DIR:=${PKG_NGINX_SUBDIR}}; : ${PKG_NGINX_CONFIGURE_ARGS:="--prefix="}; +: ${PKG_OPENLITESPEED_SHA256SUM:=c2dd2a42a86994433e1f7e48f1a336201c4f7f79b204c837e56911fd60f08a1f}; +: ${PKG_OPENLITESPEED_VERSION:=1.4.24}; +: ${PKG_OPENLITESPEED_URL:=http://open.litespeedtech.com/packages/openlitespeed-${PKG_OPENLITESPEED_VERSION}.tgz}; +: ${PKG_OPENLITESPEED_CONFIGURE_ARGS_EXTRA:="--with-openssl=${PREFIX_NATIVE} --with-zlib=${PREFIX_NATIVE}"}; +: ${PKG_OPENLITESPEED_CXXFLAGS_CONFIGURE_EXTRA:="-D_GNU_SOURCE"}; : ${PKG_OPENSSH_SHA256SUM:=3ffb989a6dcaa69594c3b550d4855a5a2e1718ccdde7f5e36387b424220fbecc}; : ${PKG_OPENSSH_VERSION:=7.3p1}; : ${PKG_OPENSSH_URL:=http://artfiles.org/openbsd/OpenSSH/portable/openssh-${PKG_OPENSSH_VERSION}.tar.gz}; |