Skip to content

Commit edaab59

Browse files
committed
official repo release
1 parent 6ea9a71 commit edaab59

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/scripts/rpm/alma/8.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
set -e
33
# ====================================================================================
44
if [ -z "$UPLOAD_USER" ] || [ -z "$UPLOAD_PASS" ]; then
55
echo "Missing UPLOAD_USER or UPLOAD_PASS"
@@ -63,14 +63,14 @@ cd "$NGX_BUILD_PA/nginx_mods/boringssl-$BORINGSSL_VERSION"; cp "build/libcrypto.
6363
# ZLIB
6464
# cd $NGX_BUILD_PA/nginx_mods && echo "Downloading ZLIB..." && wget http://zlib.net/current/zlib.tar.gz > /dev/null 2>&1
6565
# cd $NGX_BUILD_PA/nginx_mods && tar xf zlib.tar.gz; rm -Rf zlib.tar.gz; mv zlib-* zlib
66-
# cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
66+
# cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
6767
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading ZLIB..." && git clone https://github.com/cloudflare/zlib.git > /dev/null 2>&1
68-
cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
68+
cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
6969
# ====================================================================================
7070
# SYSTEM_PCRE
7171
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading PCRE2..." && wget https://github.com/PCRE2Project/pcre2/archive/refs/tags/pcre2-${SYSTEM_PCRE}.tar.gz > /dev/null 2>&1
7272
cd $NGX_BUILD_PA/nginx_mods && tar xf pcre2-${SYSTEM_PCRE}.tar.gz; rm -Rf pcre2-${SYSTEM_PCRE}.tar.gz
73-
cd $NGX_BUILD_PA/nginx_mods/pcre2-pcre2-${SYSTEM_PCRE} && ./autogen.sh > /dev/null 2>&1; CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure --enable-utf --enable-unicode-properties --enable-static > /dev/null 2>&1; echo "Building PCRE2..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
73+
cd $NGX_BUILD_PA/nginx_mods/pcre2-pcre2-${SYSTEM_PCRE} && ./autogen.sh > /dev/null 2>&1; CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --enable-utf --enable-unicode-properties --enable-static > /dev/null 2>&1; echo "Building PCRE2..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
7474
# ====================================================================================
7575
# SYSTEM_MODSECURITY
7676
echo "Downloading ModSecurity..." && cd $NGX_BUILD_PA/nginx_mods && git clone --depth 1 -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity.git > /dev/null 2>&1
@@ -85,7 +85,7 @@ echo "Compiling ModSecurity..." && make -j$CORES > /dev/null 2>&1; make install
8585
# ====================================================================================
8686
# LibInjection
8787
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading LibInjection..." && git clone https://github.com/libinjection/libinjection.git > /dev/null 2>&1
88-
cd $NGX_BUILD_PA/nginx_mods/libinjection && ./autogen.sh > /dev/null 2>&1; CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; echo "Building LibInjection..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
88+
cd $NGX_BUILD_PA/nginx_mods/libinjection && ./autogen.sh > /dev/null 2>&1; CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; echo "Building LibInjection..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
8989
# ====================================================================================
9090
# NGX_MOD_MODSECURITY
9191
cd $NGX_BUILD_PA/nginx_mods/; echo "Downloading NgxModSec v${NGX_MOD_MODSECURITY}..." && wget https://github.com/SpiderLabs/ModSecurity-nginx/archive/refs/tags/v${NGX_MOD_MODSECURITY}.tar.gz > /dev/null 2>&1
@@ -105,7 +105,7 @@ cd $NGX_BUILD_PA/nginx_mods/; tar xf ${NGX_MOD_GEOIP2}.tar.gz; rm -Rf ${NGX_MOD_
105105
# Naxsi
106106
cd $NGX_BUILD_PA/nginx_mods/; echo "Downloading Naxsi..." && git clone --recurse-submodules https://github.com/wargio/naxsi.git naxsi > /dev/null 2>&1
107107
# ====================================================================================
108-
echo "Building Nginx v${NGINX_VERSION}..." && cd $NGX_BUILD_PA/nginx_source/nginx-${NGINX_VERSION} && CFLAGS="-fPIE" CXXFLAGS="-fPIE" ./configure --with-compat \
108+
echo "Building Nginx v${NGINX_VERSION}..." && cd $NGX_BUILD_PA/nginx_source/nginx-${NGINX_VERSION} && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --with-compat \
109109
--user=raweb \
110110
--group=raweb \
111111
--build="Raweb Webserver v$NGINX_VERSION" \

.github/scripts/rpm/alma/9.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
set -e
33
# ====================================================================================
44
if [ -z "$UPLOAD_USER" ] || [ -z "$UPLOAD_PASS" ]; then
55
echo "Missing UPLOAD_USER or UPLOAD_PASS"
@@ -62,19 +62,19 @@ cd "$NGX_BUILD_PA/nginx_mods/boringssl-$BORINGSSL_VERSION"; cp "build/libcrypto.
6262
# ZLIB
6363
# cd $NGX_BUILD_PA/nginx_mods && echo "Downloading ZLIB..." && wget http://zlib.net/current/zlib.tar.gz > /dev/null 2>&1
6464
# cd $NGX_BUILD_PA/nginx_mods && tar xf zlib.tar.gz; rm -Rf zlib.tar.gz; mv zlib-* zlib
65-
# cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
65+
# cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
6666
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading ZLIB..." && git clone https://github.com/cloudflare/zlib.git > /dev/null 2>&1
67-
cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
67+
cd $NGX_BUILD_PA/nginx_mods/zlib && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
6868
# ====================================================================================
6969
# SYSTEM_PCRE
7070
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading PCRE2..." && wget https://github.com/PCRE2Project/pcre2/archive/refs/tags/pcre2-${SYSTEM_PCRE}.tar.gz > /dev/null 2>&1
7171
cd $NGX_BUILD_PA/nginx_mods && tar xf pcre2-${SYSTEM_PCRE}.tar.gz; rm -Rf pcre2-${SYSTEM_PCRE}.tar.gz
72-
cd $NGX_BUILD_PA/nginx_mods/pcre2-pcre2-${SYSTEM_PCRE} && ./autogen.sh > /dev/null 2>&1; CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure --enable-utf --enable-unicode-properties --enable-static > /dev/null 2>&1; echo "Building PCRE2..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
72+
cd $NGX_BUILD_PA/nginx_mods/pcre2-pcre2-${SYSTEM_PCRE} && ./autogen.sh > /dev/null 2>&1; CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --enable-utf --enable-unicode-properties --enable-static > /dev/null 2>&1; echo "Building PCRE2..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
7373
# ====================================================================================
7474
# SYSTEM_MODSECURITY
7575
echo "Downloading ModSecurity..." && cd $NGX_BUILD_PA/nginx_mods && git clone --depth 1 -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity.git > /dev/null 2>&1
7676
cd $NGX_BUILD_PA/nginx_mods/ModSecurity && git submodule init > /dev/null 2>&1 && git submodule update > /dev/null 2>&1 && ./build.sh > /dev/null 2>&1
77-
cd $NGX_BUILD_PA/nginx_mods/ModSecurity && ./configure \
77+
cd $NGX_BUILD_PA/nginx_mods/ModSecurity && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure \
7878
--prefix=/usr/local/modsecurity \
7979
CPPFLAGS="-I/usr/local/include -fPIC" \
8080
LDFLAGS="-L/usr/local/lib" \
@@ -84,7 +84,7 @@ echo "Compiling ModSecurity..." && make -j$CORES > /dev/null 2>&1; make install
8484
# ====================================================================================
8585
# LibInjection
8686
cd $NGX_BUILD_PA/nginx_mods && echo "Downloading LibInjection..." && git clone https://github.com/libinjection/libinjection.git > /dev/null 2>&1
87-
cd $NGX_BUILD_PA/nginx_mods/libinjection && ./autogen.sh > /dev/null 2>&1; CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; echo "Building LibInjection..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
87+
cd $NGX_BUILD_PA/nginx_mods/libinjection && ./autogen.sh > /dev/null 2>&1; CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure > /dev/null 2>&1; echo "Building LibInjection..." && make -j$CORES > /dev/null 2>&1; make install > /dev/null 2>&1
8888
# ====================================================================================
8989
# NGX_MOD_MODSECURITY
9090
cd $NGX_BUILD_PA/nginx_mods/; echo "Downloading NgxModSec v${NGX_MOD_MODSECURITY}..." && wget https://github.com/SpiderLabs/ModSecurity-nginx/archive/refs/tags/v${NGX_MOD_MODSECURITY}.tar.gz > /dev/null 2>&1
@@ -104,7 +104,7 @@ cd $NGX_BUILD_PA/nginx_mods/; tar xf ${NGX_MOD_GEOIP2}.tar.gz; rm -Rf ${NGX_MOD_
104104
# Naxsi
105105
cd $NGX_BUILD_PA/nginx_mods/; echo "Downloading Naxsi..." && git clone --recurse-submodules https://github.com/wargio/naxsi.git naxsi > /dev/null 2>&1
106106
# ====================================================================================
107-
echo "Building Nginx v${NGINX_VERSION}..." && cd $NGX_BUILD_PA/nginx_source/nginx-${NGINX_VERSION} && CFLAGS="-fPIE" CXXFLAGS="-fPIE" ./configure --with-compat \
107+
echo "Building Nginx v${NGINX_VERSION}..." && cd $NGX_BUILD_PA/nginx_source/nginx-${NGINX_VERSION} && CFLAGS="-fPIC" CXXFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --with-compat \
108108
--user=raweb \
109109
--group=raweb \
110110
--build="Raweb Webserver v$NGINX_VERSION" \

0 commit comments

Comments
 (0)