Skip to content

Commit

Permalink
Updated OpenSSH To 8.3p1 And Updated Dependencies, Removed Old OpenSS…
Browse files Browse the repository at this point in the history
…L Parallel Build Patch File
  • Loading branch information
scdemanett committed Jun 15, 2020
1 parent c08798a commit e1ddcbf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 384 deletions.
21 changes: 7 additions & 14 deletions app.sh
Original file line number Diff line number Diff line change
@@ -1,55 +1,48 @@
### ZLIB ###
_build_zlib() {
local VERSION="1.2.8"
local VERSION="1.2.11"
local FOLDER="zlib-${VERSION}"
local FILE="${FOLDER}.tar.gz"
local URL="http://zlib.net/${FILE}"

_download_tgz "${FILE}" "${URL}" "${FOLDER}"
pushd "target/${FOLDER}"
./configure --prefix="${DEPS}" --libdir="${DEST}/lib"
./configure --prefix="${DEPS}" --libdir="${DEST}/lib" --shared
make
make install
rm -v "${DEST}/lib"/*.a
popd
}

### OPENSSL ###
_build_openssl() {
local VERSION="1.0.2e"
local VERSION="1.1.1g"
local FOLDER="openssl-${VERSION}"
local FILE="${FOLDER}.tar.gz"
local URL="http://mirror.switch.ch/ftp/mirror/openssl/source/${FILE}"
local URL="http://www.openssl.org/source/${FILE}"

_download_tgz "${FILE}" "${URL}" "${FOLDER}"
cp -vf "src/${FOLDER}-parallel-build.patch" "target/${FOLDER}/"
pushd "target/${FOLDER}"
patch -p1 -i "${FOLDER}-parallel-build.patch"
./Configure --prefix="${DEPS}" --openssldir="${DEST}/etc/ssl" \
zlib-dynamic --with-zlib-include="${DEPS}/include" --with-zlib-lib="${DEPS}/lib" \
shared threads linux-armv4 -DL_ENDIAN ${CFLAGS} ${LDFLAGS} \
-Wa,--noexecstack -Wl,-z,noexecstack
sed -i -e "s/-O3//g" Makefile
make
make install_sw
mkdir -p "${DEST}/libexec"
cp -vfa "${DEPS}/bin/openssl" "${DEST}/libexec/"
cp -vfa "${DEPS}/lib/libssl.so"* "${DEST}/lib/"
cp -vfa "${DEPS}/lib/libcrypto.so"* "${DEST}/lib/"
cp -vfaR "${DEPS}/lib/engines" "${DEST}/lib/"
cp -vfaR "${DEPS}/lib/engines"* "${DEST}/lib/"
cp -vfaR "${DEPS}/lib/pkgconfig" "${DEST}/lib/"
rm -vf "${DEPS}/lib/libcrypto.a" "${DEPS}/lib/libssl.a"
sed -e "s|^libdir=.*|libdir=${DEST}/lib|g" -i "${DEST}/lib/pkgconfig/libcrypto.pc"
sed -e "s|^libdir=.*|libdir=${DEST}/lib|g" -i "${DEST}/lib/pkgconfig/libssl.pc"
popd
}

### OPENSSH ###
_build_openssh() {
local VERSION="7.1p2"
local VERSION="8.3p1"
local FOLDER="openssh-${VERSION}"
local FILE="${FOLDER}.tar.gz"
local URL="http://mirror.switch.ch/ftp/pub/OpenBSD/OpenSSH/portable/${FILE}"
local URL="https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/${FILE}"

_download_tgz "${FILE}" "${URL}" "${FOLDER}"
pushd "target/${FOLDER}"
Expand Down
2 changes: 1 addition & 1 deletion src/dest/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

framework_version="2.1"
name="openssh"
version="7.1p2"
version="8.3p1"
description="OpenSSH is a suite of security-related network-level utilities based on the Secure Shell protocol."
depends=""
webui=""
Expand Down
Loading

0 comments on commit e1ddcbf

Please sign in to comment.