mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
openssl: define a debuginfo package
- libs debug info get there - openssl executable is stripped Makes the package much smaller (1.6M instead of 11M), and we now build with -g so debug information is available when needed.
This commit is contained in:
@@ -15,7 +15,7 @@ HOMEPAGE="https://www.openssl.org/"
|
||||
COPYRIGHT="1995-1998 Eric Young
|
||||
1998-2017 The OpenSSL Project."
|
||||
LICENSE="OpenSSL"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://www.openssl.org/source/openssl-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="8c6ff15ec6b319b50788f42c7abc2890c08ba5a1cdcd3810eb9092deada37b0f"
|
||||
PATCHES="openssl-$portVersion.patchset"
|
||||
@@ -63,6 +63,23 @@ BUILD_PREREQUIRES="
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
defineDebugInfoPackage openssl$secondaryArchSufix \
|
||||
$libDir/libssl.so.1.0.0 \
|
||||
$libDir/libcrypto.so.1.0.0 \
|
||||
$libDir/engines/lib4758cca.so \
|
||||
$libDir/engines/libaep.so \
|
||||
$libDir/engines/libatalla.so \
|
||||
$libDir/engines/libcapi.so \
|
||||
$libDir/engines/libchil.so \
|
||||
$libDir/engines/libcswift.so \
|
||||
$libDir/engines/libgmp.so \
|
||||
$libDir/engines/libgost.so \
|
||||
$libDir/engines/libnuron.so \
|
||||
$libDir/engines/libpadlock.so \
|
||||
$libDir/engines/libsureware.so \
|
||||
$libDir/engines/libubsec.so
|
||||
|
||||
|
||||
PATCH()
|
||||
{
|
||||
# fix hard-coded perl path
|
||||
@@ -74,7 +91,7 @@ BUILD()
|
||||
PERL="/bin/env perl" \
|
||||
./config --prefix=$prefix --libdir=$relativeLibDir \
|
||||
--openssldir=$dataRootDir/ssl \
|
||||
enable-ssl2 zlib shared
|
||||
enable-ssl2 zlib shared -g
|
||||
make
|
||||
# multi-job builds don't work correctly
|
||||
}
|
||||
@@ -102,6 +119,8 @@ INSTALL()
|
||||
rm -rf $prefix/bin
|
||||
rm -rf $dataRootDir/ssl
|
||||
rm -rf $documentationDir
|
||||
else
|
||||
strip $binDir/openssl
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user