mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
125 lines
3.3 KiB
Bash
125 lines
3.3 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="http://www.openldap.org/"
|
|
LICENSE="OpenLDAP Public License"
|
|
REVISION="2"
|
|
SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz"
|
|
CHECKSUM_SHA256="cdd6cffdebcd95161a73305ec13fc7a78e9707b46ca9f84fb897cd5626df3824"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="settings/openldap/ldap.conf keep-old"
|
|
USER_SETTINGS_FILES="
|
|
settings/openldap/ldap.conf template data/openldap/ldap.conf.default
|
|
"
|
|
|
|
PROVIDES="
|
|
openldap$secondaryArchSuffix = $portVersion
|
|
lib:liblber$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
lib:liblber_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
lib:libldap$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
lib:libldap_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
lib:libldap_r$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
lib:libldap_r_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:ldapadd
|
|
cmd:ldapcompare
|
|
cmd:ldapdelete
|
|
cmd:ldapexop
|
|
cmd:ldapmodify
|
|
cmd:ldapmodrdn
|
|
cmd:ldappasswd
|
|
cmd:ldapsearch
|
|
cmd:ldapurl
|
|
cmd:ldapwhoami
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
openldap${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblber$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
devel:liblber_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
devel:libldap$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
devel:libldap_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
devel:libldap_r$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
devel:libldap_r_2.4$secondaryArchSuffix = 2.10.8 compat >= 2.10
|
|
"
|
|
REQUIRES_devel="
|
|
openldap$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:soelim
|
|
"
|
|
|
|
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
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
runConfigure ./configure --enable-slapd=no --with-tls=openssl
|
|
make $jobArgs depend
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
prepareInstalledDevelLibs liblber liblber-2.4 libldap libldap-2.4 \
|
|
libldap_r libldap_r-2.4
|
|
|
|
mkdir -p $dataDir/openldap
|
|
mv $settingsDir/openldap/ldap.conf.default $dataDir/openldap/
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
# On primary architectures: move man3 to devel package
|
|
packageEntries devel $developDir $documentationDir/man/man3
|
|
else
|
|
# On secondary architectures: delete binDir and documentationDir
|
|
rm -rf $binDir $documentationDir
|
|
packageEntries devel $developDir
|
|
fi
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|