From 34a9176f315067eabb840624d7549f60f9bc9b92 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Fri, 28 Nov 2014 20:09:20 +0000 Subject: [PATCH] openldap: Add recipe for version 2.4.40 --- .../openldap/licenses/OpenLDAP Public License | 47 +++++++ net-nds/openldap/openldap-2.4.40.recipe | 115 ++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 net-nds/openldap/licenses/OpenLDAP Public License create mode 100644 net-nds/openldap/openldap-2.4.40.recipe diff --git a/net-nds/openldap/licenses/OpenLDAP Public License b/net-nds/openldap/licenses/OpenLDAP Public License new file mode 100644 index 000000000..05ad7571e --- /dev/null +++ b/net-nds/openldap/licenses/OpenLDAP Public License @@ -0,0 +1,47 @@ +The OpenLDAP Public License + Version 2.8, 17 August 2003 + +Redistribution and use of this software and associated documentation +("Software"), with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions in source form must retain copyright statements + and notices, + +2. Redistributions in binary form must reproduce applicable copyright + statements and notices, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution, and + +3. Redistributions must contain a verbatim copy of this document. + +The OpenLDAP Foundation may revise this license from time to time. +Each revision is distinguished by a version number. You may use +this Software under terms of this license revision or under the +terms of any subsequent revision of the license. + +THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS +CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) +OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +The names of the authors and copyright holders must not be used in +advertising or otherwise to promote the sale, use or other dealing +in this Software without specific, written prior permission. Title +to copyright in this Software shall at all times remain with copyright +holders. + +OpenLDAP is a registered trademark of the OpenLDAP Foundation. + +Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, +California, USA. All Rights Reserved. Permission to copy and +distribute verbatim copies of this document is granted. diff --git a/net-nds/openldap/openldap-2.4.40.recipe b/net-nds/openldap/openldap-2.4.40.recipe new file mode 100644 index 000000000..79d33b86f --- /dev/null +++ b/net-nds/openldap/openldap-2.4.40.recipe @@ -0,0 +1,115 @@ +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." +HOMEPAGE="http://www.openldap.org/" +SRC_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.40.tgz" +CHECKSUM_SHA256="d12611a5c25b6499293c2bb7b435dc2b174db73e83f5a8cb7e34f2ce5fa6dadb" +REVISION="1" +LICENSE="OpenLDAP Public License" +COPYRIGHT="1998-2014 The OpenLDAP Foundation" + +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 +" + +PATCH() +{ + sed -i 's/-lnet/-lnetwork/g' configure.in + sed -i 's/net, socket/network, socket/g' configure.in +} + +PROVIDES=" + openldap$secondaryArchSuffix = $portVersion + lib:liblber$secondaryArchSuffix = 2.10.3 + lib:liblber_2.4$secondaryArchSuffix = 2.10.3 + lib:libldap$secondaryArchSuffix = 2.10.3 + lib:libldap_2.4$secondaryArchSuffix = 2.10.3 + lib:libldap_r$secondaryArchSuffix = 2.10.3 + lib:libldap_r_2.4$secondaryArchSuffix = 2.10.3 +" + +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 >= $haikuVersion + lib:libcrypto$secondaryArchSuffix + lib:libssl$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libcrypto$secondaryArchSuffix + devel:libssl$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + cmd:libtoolize + cmd:aclocal + cmd:autoconf + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:soelim +" + +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 + + 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/ + + packageEntries devel $developDir $documentationDir/man/man3 + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $binDir + fi +} + +PROVIDES_devel=" + openldap${secondaryArchSuffix}_devel = $portVersion + devel:liblber$secondaryArchSuffix = 2.10.3 + devel:liblber_2.4$secondaryArchSuffix = 2.10.3 + devel:libldap$secondaryArchSuffix = 2.10.3 + devel:libldap_2.4$secondaryArchSuffix = 2.10.3 + devel:libldap_r$secondaryArchSuffix = 2.10.3 + devel:libldap_r_2.4$secondaryArchSuffix = 2.10.3 +" + +REQUIRES_devel=" + openldap$secondaryArchSuffix == $portVersion base +"