mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
144 lines
3.4 KiB
Bash
144 lines
3.4 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="2"
|
|
SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz"
|
|
CHECKSUM_SHA256="082e998cf542984d43634442dbe11da860759e510907152ea579bdc42fe39ea0"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="2.0.200"
|
|
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="
|
|
openldap$secondaryArchSuffix = $portVersion
|
|
lib:liblber$secondaryArchSuffix = $libVersionCompat
|
|
lib:libldap$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
openldap2.6$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
openldap${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:ldapadd$commandSuffix
|
|
cmd:ldapcompare$commandSuffix
|
|
cmd:ldapdelete$commandSuffix
|
|
cmd:ldapexop$commandSuffix
|
|
cmd:ldapmodify$commandSuffix
|
|
cmd:ldapmodrdn$commandSuffix
|
|
cmd:ldappasswd$commandSuffix
|
|
cmd:ldapsearch$commandSuffix
|
|
cmd:ldapurl$commandSuffix
|
|
cmd:ldapvc$commandSuffix
|
|
cmd:ldapwhoami$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
openldap$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
openldap${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblber$secondaryArchSuffix = $libVersionCompat
|
|
devel:libldap$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
openldap$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix >= 3
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:soelim
|
|
"
|
|
|
|
defineDebugInfoPackage openldap$secondaryArchSuffix \
|
|
"$libDir"/liblber.so.$libVersion \
|
|
"$libDir"/libldap.so.$libVersion
|
|
|
|
PATCH()
|
|
{
|
|
sed \
|
|
-e 's/-\<lnet\>/&work/g' \
|
|
-e 's/net, socket/network, socket/g' \
|
|
-i configure.ac
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--enable-slapd=no \
|
|
--disable-static \
|
|
--with-tls=openssl
|
|
make $jobArgs depend
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
liblber \
|
|
libldap
|
|
fixPkgconfig
|
|
|
|
mkdir -p $dataDir/openldap
|
|
mv $settingsDir/openldap/ldap.conf.default $dataDir/openldap/
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$documentationDir/man/man3
|
|
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$manDir/man1
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|