Files
haikuports/net-nds/openldap/openldap2.4-2.4.48.recipe
Jérôme Duval 79cc6e1ac1 openldap2.4: remove devel provides ohne suffix
they provide the same compat as in openldap
2024-11-20 13:57:10 +01:00

123 lines
3.2 KiB
Bash

SUMMARY="Open source LDAP suite of applications and development tools"
DESCRIPTION="The OpenLDAP Project is a collaborative effort to develop a \
robust, commercial-grade, fully featured, and open source LDAP suite of \
applications and development tools. The project is managed by a worldwide \
coummunity of volunteers that use the Internet to communicate, plan, and \
develop the OpenLDAP Suite and its related documentation."
COPYRIGHT="1998-2016 The OpenLDAP Foundation"
HOMEPAGE="https://www.openldap.org/"
LICENSE="OpenLDAP Public License"
REVISION="5"
SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz"
CHECKSUM_SHA256="d9523ffcab5cd14b709fcf3cb4d04e8bc76bb8970113255f372bc74954c6074d"
SOURCE_DIR="openldap-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="2.10.11"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVers="${portVersion%.*}"
GLOBAL_WRITABLE_FILES="settings/openldap/ldap.conf keep-old"
USER_SETTINGS_FILES="
settings/openldap/ldap.conf template data/openldap/ldap.conf.default
"
PROVIDES="
openldap2.4$secondaryArchSuffix = $portVersion
lib:liblber_$portVers$secondaryArchSuffix = $libVersionCompat
lib:libldap_$portVers$secondaryArchSuffix = $libVersionCompat
lib:libldap_r_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
openldap2.4${secondaryArchSuffix}_devel = $portVersion
devel:liblber_$portVers$secondaryArchSuffix = $libVersionCompat
devel:libldap_$portVers$secondaryArchSuffix = $libVersionCompat
devel:libldap_r_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
openldap2.4$secondaryArchSuffix == $portVersion base
"
CONFLICTS_devel="
openldap${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libssl$secondaryArchSuffix >= 3
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:soelim
"
defineDebugInfoPackage openldap2.4$secondaryArchSuffix \
"$libDir"/liblber-$portVers.so.$libVersion \
"$libDir"/libldap-$portVers.so.$libVersion \
"$libDir"/libldap_r-$portVers.so.$libVersion
PATCH()
{
sed \
-e 's/-\<lnet\>/&work/g' \
-e 's/net, socket/network, socket/g' \
-i configure.in
}
BUILD()
{
# TODO: openldap uses it's own variation of autotools
mv Makefile.in Makefile.am
touch AUTHORS ChangeLog NEWS
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
runConfigure ./configure --enable-slapd=no --with-tls=openssl --disable-static
make $jobArgs depend
make
}
INSTALL()
{
make install
rm $libDir/lib*.la
prepareInstalledDevelLibs \
liblber \
liblber-$portVers \
libldap \
libldap-$portVers \
libldap_r \
libldap_r-$portVers
mkdir -p $dataDir/openldap
mv $settingsDir/openldap/ldap.conf.default $dataDir/openldap/
packageEntries devel \
$developDir \
$documentationDir/man/man3
# Cleanup, only provide these in the openldap packages
rm -rf $binDir $documentationDir #$developDir
}
TEST()
{
make check
}