diff --git a/sapi/src/builder/extension/openssh.php b/sapi/src/builder/extension/openssh.php index 40abbcdaa4..0775528996 100644 --- a/sapi/src/builder/extension/openssh.php +++ b/sapi/src/builder/extension/openssh.php @@ -19,14 +19,32 @@ $workdir = $p->getWorkDir(); $builddir = $p->getBuildDir(); + $system_arch = $p->getSystemArch(); $cmd = <<&1 | awk -F ',' '{ print $1 }' | sed 's/OpenSSH_//') EOF; + if ($p->getOsType() == 'macos') { + $cmd .= <<getOsType() == 'macos' ? "" : '-static'; $lib = new Library('openssh'); $lib->withHomePage('https://www.openssh.com/') ->withLicense('http://www.gnu.org/licenses/lgpl-2.1.html', Library::LICENSE_BSD) - ->withUrl('https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.3.tar.gz') ->withManual('https://www.openssh.com/portable.html') - ->withFile('openssh-V_9_3_P1.tar.gz') + ->withDocumentation('https://anongit.mindrot.org/openssh.git') + ->withFile('openssh-V_9_9_P1.tar.gz') + ->withHttpProxy(true, true) ->withDownloadScript( 'openssh', <<withPrefix($openssh_prefix) @@ -28,7 +30,7 @@ PACKAGES="\$PACKAGES " CPPFLAGS="$(pkg-config --cflags-only-I --static \$PACKAGES)" \ - LDFLAGS="$(pkg-config --libs-only-L --static \$PACKAGES) -static" \ + LDFLAGS="$(pkg-config --libs-only-L --static \$PACKAGES) {$cflags}" \ LIBS="$(pkg-config --libs-only-l --static \$PACKAGES)" \ ../configure \ --prefix={$openssh_prefix} \ @@ -39,7 +41,7 @@ EOF ) ->withBuildCached(false) - //->withBinPath($openssh_prefix . '/bin/') + ->withInstallCached(false) ->withDependentLibraries('openssl', 'zlib') //'libedit', ->disableDefaultLdflags() ->disablePkgName() diff --git a/sapi/src/template/make.php b/sapi/src/template/make.php index 58893ebfe9..28e8b70b9a 100755 --- a/sapi/src/template/make.php +++ b/sapi/src/template/make.php @@ -106,12 +106,6 @@ fi fi - - cleanPreInstallDirectory) : ?> - # If the install directory exist, clean the install directory - test -d preInstallDirectory?>/ && rm -rf preInstallDirectory?>/ ; - - cd getBuildDir()?>/name?>/