mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
openldap, bump version, disable static library, add CONFLICTS (#7683)
This commit is contained in:
147
net-nds/openldap/openldap2.6-2.6.4.recipe
Normal file
147
net-nds/openldap/openldap2.6-2.6.4.recipe
Normal file
@@ -0,0 +1,147 @@
|
||||
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="1"
|
||||
SOURCE_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$portVersion.tgz"
|
||||
CHECKSUM_SHA256="d51704e50178430c06cf3d8aa174da66badf559747a47d920bb54b2d4aa40991"
|
||||
SOURCE_DIR="openldap-$portVersion"
|
||||
|
||||
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="
|
||||
openldap2.6$secondaryArchSuffix = $portVersion
|
||||
lib:liblber$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libldap$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
openldap2.6${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="
|
||||
openldap2.6$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
CONFLICTS_tools="
|
||||
openldap
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
openldap2.6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liblber$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libldap$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
openldap2.6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
openldap${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:soelim
|
||||
"
|
||||
|
||||
defineDebugInfoPackage openldap2.6$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
|
||||
}
|
||||
Reference in New Issue
Block a user