Skip to content

Commit

Permalink
Merge pull request #39 from mariux64/fixes-2.10.1
Browse files Browse the repository at this point in the history
nginx: fixes
  • Loading branch information
wwwutz authored Jun 24, 2024
2 parents 79e002c + 93da50d commit de1f2c5
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions nginx.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -u
function B_NGINX {

# SRCURL[0]="https://nginx.org/download/nginx-1.26.1.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/56b83c172c7f2fd09d59123bc28ff2b1/nginx-1.26.1.tar.gz"
SRCURL="https://beehive.molgen.mpg.de/56b83c172c7f2fd09d59123bc28ff2b1/nginx-1.26.1.tar.gz"

BUILD_PKG=${BUILD_nginx}
BUILD_EXT=${SRCURL/${SRCURL%.*.*}/}
Expand All @@ -26,13 +26,12 @@ cat >${PREFIX}/profile <<-EOF
PATH=${PREFIX}/sbin:\${PATH}
EOF

. ${PREFIX}/profile
if [ -v NGINX_SSL_DHPARAM ]; then
mkdir -p "${NGINX_SSL_DHPARAM%/*}"
test -e "${NGINX_SSL_DHPARAM}" || openssl dhparam -dsaparam -out "${NGINX_SSL_DHPARAM}" 2048
fi

mkdir -p "${NGINX_SSL_DHPARAM%/*}"
test -e "${NGINX_SSL_DHPARAM}" || openssl dhparam -dsaparam -out "${NGINX_SSL_DHPARAM}" 2048


test -e ${BUILD_PKG}${BUILD_EXT} || wget -nv ${SRCURL} -O ${BUILD_PKG}${BUILD_EXT}
test -e ${BUILD_PKG}${BUILD_EXT} || wget -nv "${SRCURL}" -O ${BUILD_PKG}${BUILD_EXT}
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}${BUILD_EXT} --strip-components=1 -C ${BUILD_PKG}

pushd ${BUILD_PKG}
Expand All @@ -44,28 +43,28 @@ pushd ${BUILD_PKG}
patch -p1 --silent --backup --forward --input=../nginx.chicken.patch || true

local _conf=(
--prefix=${PREFIX}
--prefix="${PREFIX}"
--with-http_ssl_module
--with-http_v2_module
--without-http_uwsgi_module
--without-http_scgi_module
--without-http_grpc_module
--without-http_memcached_module
--error-log-path=${LOGDIR}/nginx-error.log
--http-log-path=${LOGDIR}/nginx-access.log
--http-client-body-temp-path=${DEVSHM}/client-body-temp
--http-proxy-temp-path=${DEVSHM}/proxy-temp
--http-fastcgi-temp-path=${DEVSHM}/fastcgi-temp \
--pid-path=${DEVSHM}/nginx.pid
--lock-path=${DEVSHM}/nginx.lock
--error-log-path="${LOGDIR}"/nginx-error.log
--http-log-path="${LOGDIR}"/nginx-access.log
--http-client-body-temp-path="${DEVSHM}"/client-body-temp
--http-proxy-temp-path="${DEVSHM}"/proxy-temp
--http-fastcgi-temp-path="${DEVSHM}"/fastcgi-temp
--pid-path="${DEVSHM}"/nginx.pid
--lock-path="${DEVSHM}"/nginx.lock
--with-debug
--build=bwakbwakbwak
)

CFLAGS='-O2 -fPIC' \
./configure "${_conf[@]}"

make -j ${NPROC} install
make -j "${NPROC}" install

popd

Expand Down

0 comments on commit de1f2c5

Please sign in to comment.