2006-07-18 16:19:27 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=openldap
|
|
|
|
PKG_VERSION:=2.2.29
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
|
|
|
|
ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ \
|
|
|
|
ftp://ftp.plig.org/pub/OpenLDAP/openldap-release/
|
|
|
|
PKG_MD5SUM:=6c4c72a1336aa45b463e738034c078d6
|
|
|
|
|
2006-10-09 20:20:30 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-18 16:19:27 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
2008-02-14 23:24:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2006-07-18 16:19:27 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-09 20:20:30 +00:00
|
|
|
define Package/openldap/Default
|
|
|
|
TITLE:=LDAP implementation
|
|
|
|
URL:=http://www.openldap.org/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 16:19:27 +00:00
|
|
|
define Package/libopenldap
|
2006-10-09 20:20:30 +00:00
|
|
|
$(call Package/openldap/Default)
|
2006-07-18 16:19:27 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libopenssl +libsasl2
|
2006-10-09 20:20:30 +00:00
|
|
|
TITLE+= (libraries)
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libopenldap/description
|
|
|
|
=
|
|
|
|
OpenLDAP Software is an open source implementation of the
|
|
|
|
Lightweight Directory Access Protocol (LDAP).
|
|
|
|
This package contains the shared LDAP client libraries, needed by other programs.
|
2006-07-18 16:19:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libopenldap/conffiles
|
|
|
|
/etc/openldap/ldap.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openldap-utils
|
2006-10-09 20:20:30 +00:00
|
|
|
$(call Package/openldap/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2006-07-26 01:26:21 +00:00
|
|
|
DEPENDS:=+libopenldap
|
2006-10-09 20:20:30 +00:00
|
|
|
TITLE+= (utilities)
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openldap-utils/description
|
|
|
|
=
|
|
|
|
OpenLDAP Software is an open source implementation of the
|
|
|
|
Lightweight Directory Access Protocol (LDAP).
|
|
|
|
This package contains client programs required to access LDAP servers.
|
2006-07-18 16:19:27 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-01 18:52:18 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2006-10-09 20:20:30 +00:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-debug \
|
|
|
|
--enable-dynamic \
|
|
|
|
--enable-syslog \
|
|
|
|
--disable-local \
|
|
|
|
--disable-slapd \
|
|
|
|
--disable-slurpd \
|
|
|
|
--with-cyrus-sasl \
|
|
|
|
--without-fetch \
|
|
|
|
--with-threads \
|
|
|
|
--with-tls \
|
|
|
|
--with-yielding_select="yes" \
|
2007-04-01 18:52:18 +00:00
|
|
|
--without-cyrus-sasl \
|
|
|
|
--without-threads \
|
|
|
|
--without-tls
|
2006-10-09 20:20:30 +00:00
|
|
|
|
2006-07-18 16:19:27 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-04-01 18:52:18 +00:00
|
|
|
HOSTCC="$(HOSTCC)" \
|
|
|
|
depend all install
|
2006-07-18 16:19:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(1)/usr/lib/
|
2006-07-18 16:19:27 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-09 20:20:30 +00:00
|
|
|
define Package/libopenldap/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/openldap
|
2006-10-09 20:20:30 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-09 20:20:30 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/openldap
|
2006-10-09 20:20:30 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/openldap/* $(1)/usr/share/openldap/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openldap-utils/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(1)/usr/bin/
|
2006-10-09 20:20:30 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-18 16:19:27 +00:00
|
|
|
$(eval $(call BuildPackage,libopenldap))
|
|
|
|
$(eval $(call BuildPackage,openldap-utils))
|