mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +01:00
Add OpenSSL package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
e8faa75cdd
commit
2c0abfca2e
4 changed files with 44 additions and 0 deletions
1
cfg/alix/OPENSSL
Normal file
1
cfg/alix/OPENSSL
Normal file
|
@ -0,0 +1 @@
|
|||
OPENSSL_TARGET="linux-generic32 386"
|
1
cfg/rpi3/OPENSSL
Normal file
1
cfg/rpi3/OPENSSL
Normal file
|
@ -0,0 +1 @@
|
|||
OPENSSL_TARGET="linux-generic32"
|
41
pkg/openssl/build
Executable file
41
pkg/openssl/build
Executable file
|
@ -0,0 +1,41 @@
|
|||
VERSION="1.1.0g"
|
||||
SRCDIR="openssl-${VERSION}"
|
||||
TARBALL="${SRCDIR}.tar.gz"
|
||||
URL="https://www.openssl.org/source"
|
||||
SHA256SUM="de4d501267da39310905cb6dc8c6121f7a2cad45a7707f76df828fe1b85073af"
|
||||
|
||||
source "$SCRIPTDIR/cfg/$CFG/OPENSSL"
|
||||
|
||||
prepare() {
|
||||
return
|
||||
}
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
|
||||
$SOURCE/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
|
||||
--openssldir=/etc/ssl --libdir=/lib \
|
||||
-DOPENSSL_NO_HEARTBEATS \
|
||||
threads shared zlib-dynamic no-async $OPENSSL_TARGET
|
||||
|
||||
make -j 1
|
||||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
local DEPLOY="$3"
|
||||
local DEVDEPLOY="$4"
|
||||
|
||||
make DESTDIR="$DEPLOY" install
|
||||
|
||||
mv "$DEPLOY/include" "$DEVDEPLOY"
|
||||
cp -r "$DEPLOY/lib" "$DEVDEPLOY"
|
||||
|
||||
rm "$DEPLOY/bin/c_rehash"
|
||||
rm -r "$DEPLOY/etc/ssl/misc"
|
||||
rm -r "$DEPLOY/share"
|
||||
rm -r "$DEPLOY/lib/pkgconfig"
|
||||
rm ${DEPLOY}/lib/*.a
|
||||
}
|
1
pkg/openssl/depends
Normal file
1
pkg/openssl/depends
Normal file
|
@ -0,0 +1 @@
|
|||
zlib
|
Loading…
Reference in a new issue