openldap: bump to 2.4.46, add debuginfo.

This commit is contained in:
fbrosson
2018-04-26 01:06:38 +00:00
parent 89e4098e9e
commit 555323b5cd

View File

@@ -7,13 +7,17 @@ develop the OpenLDAP Suite and its related documentation."
COPYRIGHT="1998-2016 The OpenLDAP Foundation" COPYRIGHT="1998-2016 The OpenLDAP Foundation"
HOMEPAGE="http://www.openldap.org/" HOMEPAGE="http://www.openldap.org/"
LICENSE="OpenLDAP Public License" LICENSE="OpenLDAP Public License"
REVISION="2" REVISION="1"
SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz" SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz"
CHECKSUM_SHA256="cdd6cffdebcd95161a73305ec13fc7a78e9707b46ca9f84fb897cd5626df3824" CHECKSUM_SHA256="9a90dcb86b99ae790ccab93b7585a31fbcbeec8c94bf0f7ab0ca0a87ea0c4b2d"
ARCHITECTURES="x86_gcc2 x86 x86_64" ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86" SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="2.10.9"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVers="${portVersion%.*}"
GLOBAL_WRITABLE_FILES="settings/openldap/ldap.conf keep-old" GLOBAL_WRITABLE_FILES="settings/openldap/ldap.conf keep-old"
USER_SETTINGS_FILES=" USER_SETTINGS_FILES="
settings/openldap/ldap.conf template data/openldap/ldap.conf.default settings/openldap/ldap.conf template data/openldap/ldap.conf.default
@@ -21,12 +25,12 @@ USER_SETTINGS_FILES="
PROVIDES=" PROVIDES="
openldap$secondaryArchSuffix = $portVersion openldap$secondaryArchSuffix = $portVersion
lib:liblber$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:liblber$secondaryArchSuffix = $libVersionCompat
lib:liblber_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:liblber_$portVers$secondaryArchSuffix = $libVersionCompat
lib:libldap$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:libldap$secondaryArchSuffix = $libVersionCompat
lib:libldap_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:libldap_$portVers$secondaryArchSuffix = $libVersionCompat
lib:libldap_r$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:libldap_r$secondaryArchSuffix = $libVersionCompat
lib:libldap_r_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 lib:libldap_r_$portVers$secondaryArchSuffix = $libVersionCompat
" "
if [ -z "$secondaryArchSuffix" ]; then if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES PROVIDES="$PROVIDES
@@ -51,12 +55,12 @@ REQUIRES="
PROVIDES_devel=" PROVIDES_devel="
openldap${secondaryArchSuffix}_devel = $portVersion openldap${secondaryArchSuffix}_devel = $portVersion
devel:liblber$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:liblber$secondaryArchSuffix = $libVersionCompat
devel:liblber_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:liblber_$portVers$secondaryArchSuffix = $libVersionCompat
devel:libldap$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:libldap$secondaryArchSuffix = $libVersionCompat
devel:libldap_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:libldap_$portVers$secondaryArchSuffix = $libVersionCompat
devel:libldap_r$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:libldap_r$secondaryArchSuffix = $libVersionCompat
devel:libldap_r_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10 devel:libldap_r_$portVers$secondaryArchSuffix = $libVersionCompat
" "
REQUIRES_devel=" REQUIRES_devel="
openldap$secondaryArchSuffix == $portVersion base openldap$secondaryArchSuffix == $portVersion base
@@ -77,6 +81,11 @@ BUILD_PREREQUIRES="
cmd:soelim cmd:soelim
" "
defineDebugInfoPackage openldap$secondaryArchSuffix \
"$libDir"/liblber-$portVers.so.$libVersion \
"$libDir"/libldap-$portVers.so.$libVersion \
"$libDir"/libldap_r-$portVers.so.$libVersion
PATCH() PATCH()
{ {
sed \ sed \
@@ -102,8 +111,13 @@ INSTALL()
rm $libDir/lib*.la rm $libDir/lib*.la
prepareInstalledDevelLibs liblber liblber-2.4 libldap libldap-2.4 \ prepareInstalledDevelLibs \
libldap_r libldap_r-2.4 liblber \
liblber-$portVers \
libldap \
libldap-$portVers \
libldap_r \
libldap_r-$portVers
mkdir -p $dataDir/openldap mkdir -p $dataDir/openldap
mv $settingsDir/openldap/ldap.conf.default $dataDir/openldap/ mv $settingsDir/openldap/ldap.conf.default $dataDir/openldap/