@ -8,44 +8,72 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := openldap
PKG_VERSION := 2.4.46
PKG_RELEASE := 2
PKG_VERSION := 2.4.47
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tgz
PKG_SOURCE_URL := https://gpl.savoirfairelinux.net/pub/mirrors/openldap/openldap-release/ \
http://mirror.eu.oneandone.net/software/openldap/openldap-release/ \
http://mirror.switch.ch/ftp/software/mirror/OpenLDAP/openldap-release/ \
https://www.openldap.org/software/download/OpenLDAP/openldap-release/
PKG_HASH := 9a90dcb86b99ae790ccab93b7585a31fbcbeec8c94bf0f7ab0ca0a87ea0c4b2d
PKG_HASH := f54c5877865233d9ada77c60c0f69b3e0bfd8b1b55889504c650047cc305520b
PKG_LICENSE := OLDAP-2.8
PKG_LICENSE_FILES := LICENSE
PKG_FIXUP := autoreconf
PKG_CONFIG_DEPENDS := \
CONFIG_OPENLDAP_DEBUG \
CONFIG_OPENLDAP_MONITOR \
CONFIG_OPENLDAP_DB47 \
CONFIG_OPENLDAP_ICU
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / o p e n l d a p / D e f a u l t
TITLE:= LDAP implementation
d e f i n e P a c k a g e / l i b o p e n l d a p / D e f a u l t
SECTION:= net
CATEGORY:= Network
SUBMENU:= OpenLDAP
TITLE:= LDAP directory suite
URL:= http://www.openldap.org/
MAINTAINER:= W. Michael Petullo <mike@flyn.org>
e n d e f
d e f i n e P a c k a g e / o p e n l d a p / D e f a u l t / d e s c r i p t i o n
OpenLDAP Software is an open source implementation of the
Lightweight Directory Access Protocol ( LDAP) .
e n d e f
d e f i n e P a c k a g e / l i b o p e n l d a p
$( call Package/openldap/Default)
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +libopenssl +libsasl2 +libpthread
$( call Package/libopenldap/Default)
MENU:= 1
DEPENDS:= +libopenssl +libsasl2 +libpthread +OPENLDAP_DB47:libdb47 +OPENLDAP_ICU:icu
TITLE += ( libraries)
e n d e f
d e f i n e P a c k a g e / l i b o p e n l d a p / c o n f i g
config OPENLDAP_DEBUG
bool "Enable debugging information"
default y
help
Enable debugging information. This option must be enabled
for the loglevel directive to work.
config OPENLDAP_MONITOR
bool "Enable monitor backend"
default n
help
Enable monitor backend to obtain information about the running
status of the daemon. See OpenLDAP documentation for more
information.
config OPENLDAP_DB47
bool "Berkeley DB support"
default n
help
Enable Berkeley DB support ( BDB) .
config OPENLDAP_ICU
bool "ICU support"
default n
help
Enable ICU ( International Components for Unicode) support.
e n d e f
d e f i n e P a c k a g e / l i b o p e n l d a p / d e s c r i p t i o n
$( call Package/openldap/Default/description)
This package contains the shared LDAP client libraries, needed by other programs.
O p e n L D A P S o f t w a r e i s a n o p e n s o u r c e i m p l e m e n t a t i o n o f t h e L i g h t w e i g h t D i r e c t o r y A c c e s s P r o t o c o l ( L D A P ) . T h i s p a c k a g e c o n t a i n s t h e s h a r e d L D A P c l i e n t l i b r a r i e s , n e e d e d b y o t h e r p r o g r a m s .
e n d e f
d e f i n e P a c k a g e / l i b o p e n l d a p / c o n f f i l e s
@ -53,33 +81,28 @@ define Package/libopenldap/conffiles
e n d e f
d e f i n e P a c k a g e / o p e n l d a p - u t i l s
$( call Package/openldap/Default)
SECTION:= utils
CATEGORY:= Utilities
$( call Package/libopenldap/Default)
DEPENDS:= +libopenldap
TITLE += ( utilities)
e n d e f
d e f i n e P a c k a g e / o p e n l d a p - u t i l s / d e s c r i p t i o n
$( call Package/openldap/Default/description)
This package contains client programs required to access LDAP servers.
T h i s p a c k a g e c o n t a i n s c l i e n t p r o g r a m s r e q u i r e d t o a c c e s s L D A P s e r v e r s .
e n d e f
d e f i n e P a c k a g e / o p e n l d a p - s e r v e r
$( call Package/openldap/Default)
SECTION:= net
CATEGORY:= Network
$( call Package/libopenldap/Default)
DEPENDS:= +libopenldap +libuuid
TITLE += ( server)
e n d e f
d e f i n e P a c k a g e / o p e n l d a p - s e r v e r / d e s c r i p t i o n
$( call Package/openldap/Default/description)
This package contains server programs required to provide LDAP services.
T h i s p a c k a g e c o n t a i n s s e r v e r p r o g r a m s r e q u i r e d t o p r o v i d e L D A P s e r v i c e s .
e n d e f
d e f i n e P a c k a g e / o p e n l d a p - s e r v e r / c o n f f i l e s
/ e t c / o p e n l d a p / s l a p d . c o n f
/ e t c / i n i t . d / l d a p
e n d e f
TARGET_CFLAGS += $( FPIC) -lpthread \
@ -88,44 +111,60 @@ TARGET_CFLAGS += $(FPIC) -lpthread \
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-debug \
--enable-dynamic \
--enable-syslog \
--disable-local \
--disable-slurpd \
--with-cyrus-sasl \
--without-fetch \
--with-threads \
--with-tls \
--with-yielding_select= "yes" \
--without-threads \
--enable-null \
--disable-bdb \
--disable-hdb \
--disable-monitor \
--disable-relay
CONFIGURE_VARS += \
ol_cv_lib_icu = "no"
i f d e f C O N F I G _ O P E N L D A P _ M O N I T O R
CONFIGURE_ARGS += --enable-monitor
e l s e
CONFIGURE_ARGS += --disable-monitor
e n d i f
i f d e f C O N F I G _ O P E N L D A P _ D E B U G
CONFIGURE_ARGS += --enable-debug
e l s e
CONFIGURE_ARGS += --disable-debug
e n d i f
i f d e f C O N F I G _ O P E N L D A P _ D B 4 7
CONFIGURE_ARGS += \
--enable-bdb \
--enable-hdb
e l s e
CONFIGURE_ARGS += \
--disable-bdb \
--disable-hdb
e n d i f
i f n d e f C O N F I G _ O P E N L D A P _ I C U
CONFIGURE_VARS += \
ol_cv_lib_icu = "no"
e n d i f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
DESTDIR = " $( PKG_INSTALL_DIR) " \
HOSTCC = " $( HOSTCC) " \
depend all install
cd $( PKG_BUILD_DIR) /libraries/liblmdb && $( MAKE) $( CONFIGURE_VARS)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/include/{ lber,ldap} *.h $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/include $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/include/{ lber,ldap} *.h $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/lib{ lber,ldap} *.{ a,so*} $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b o p e n l d a p / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/openldap
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/openldap/ldap.conf $( 1) /etc/openldap/
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /etc/openldap $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /etc/openldap/ldap.conf $( 1) /etc/openldap/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/lib{ lber,ldap} *.so.* $( 1) /usr/lib/
e n d e f
@ -138,15 +177,15 @@ define Package/openldap-server/install
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/ldap.init $( 1) /etc/init.d/ldap
$( INSTALL_DIR) $( 1) /etc/openldap/schema
$( INSTALL_CONF ) $( PKG_INSTALL_DIR) /etc/openldap/schema/* $( 1) /etc/openldap/schema/
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /etc/openldap/schema/* $( 1) /etc/openldap/schema/
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/openldap/slapd.conf $( 1) /etc/openldap/
$( INSTALL_DIR) $( 1) /usr/sbin
# XXX : OpenLDAP installs slapd into libexecdir, not sbindir:
# NB : OpenLDAP installs slapd into libexecdir, not sbindir
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/lib/slapd $( 1) /usr/sbin/
# XXX: switch default backend to ldif, since bdb is disabled
$( SED) 's|^\(database\)\([ \t]\+\)bdb|\1\2ldif|g' \
-e 's|^\(index\)|#\1|g' \
$( 1) /etc/openldap/slapd.conf
$( eval SLAPTOOLS := slapadd slapcat slapdn slapindex slappasswd slaptest slapauth slapacl slapschema)
for i in $( SLAPTOOLS) ; do \
$( LN) ./slapd $( 1) /usr/sbin/$$ $$ i; \
done
e n d e f
$( eval $ ( call BuildPackage ,libopenldap ) )