Skip to content

Commit

Permalink
Merge branch 'new_dev' into nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Dec 31, 2023
2 parents d617ea1 + dd5f2cb commit 172656a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions sapi/src/builder/extension/privoxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
cd {$privoxy_prefix}/../
ls -lh privoxy
cp -rf privoxy {$workdir}/bin/
strip {$workdir}/bin/privoxy/sbin/privoxy
PRIVOXY_VERSION=$({$workdir}/bin/privoxy/sbin/privoxy --help | grep 'Privoxy version' | awk '{print $3}')
EOF;
Expand Down
4 changes: 2 additions & 2 deletions sapi/src/builder/extension/socat.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
cd {$builddir}/socat
cp -f socat {$workdir}/bin/
cp -rf doc {$workdir}/bin/socat-docs
cd {$builddir}/socat
cd {$workdir}/bin/
SOCAT_VERSION=$({$workdir}/bin/socat -V | grep 'socat version' | awk '{ print $3 }')
strip {$builddir}/socat
strip {$workdir}/bin/socat
EOF;
if ($p->getOsType() == 'macos') {
Expand Down
4 changes: 2 additions & 2 deletions sapi/src/builder/library/nginx.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
# hg update -C release-1.25.2
# git clone -b release-1.25.2 --depth 1 --progress https://github.com/nginx/nginx.git
# hg clone -r release-1.25.2 --rev=1 http://hg.nginx.org/nginx
hg clone -r default --rev=1 http://hg.nginx.org/nginx
hg clone -r release-1.25.3 --rev=1 http://hg.nginx.org/nginx
# hg clone -r default --rev=1 http://hg.nginx.org/nginx
EOF
)
Expand Down
7 changes: 6 additions & 1 deletion sapi/src/builder/library/privoxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

return function (Preprocessor $p) {
$privoxy_prefix = PRIVOXY_PREFIX;

$cflags = $p->getOsType() == 'macos' ? "" : '-static';
$options = $p->getOsType() == 'macos' ? "" : '--enable-static-linking';

$p->addLibrary(
(new Library('privoxy'))
->withHomePage('https://www.privoxy.org')
Expand Down Expand Up @@ -45,13 +49,14 @@
PACKAGES="openssl zlib"
PACKAGES="\$PACKAGES libbrotlicommon libbrotlidec libbrotlienc "
PACKAGES="\$PACKAGES libpcre libpcre16 libpcre32 libpcrecpp libpcreposix"
CFLAGS=" {$cflags} " \
CPPFLAGS="$(pkg-config --cflags-only-I --static \$PACKAGES )" \
LDFLAGS="$(pkg-config --libs-only-L --static \$PACKAGES )" \
LIBS="$(pkg-config --libs-only-l --static \$PACKAGES )" \
PCRE_STATIC=YES \
./configure \
--prefix={$privoxy_prefix} \
--enable-static-linking \
{$options} \
--with-openssl \
--without-mbedtls \
--with-brotli \
Expand Down

0 comments on commit 172656a

Please sign in to comment.