2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=ftp
://ftp.openldap.org
/pub
/OpenLDAP
/openldap-release
/ \
16 ftp
://sunsite.cnlab-switch.ch
/mirror
/OpenLDAP
/openldap-release
/ \
17 ftp
://ftp.nl.uu.net
/pub
/unix
/db
/openldap
/openldap-release
/ \
18 ftp
://ftp.plig.org
/pub
/OpenLDAP
/openldap-release
/
19 PKG_MD5SUM
:=6c4c72a1336aa45b463e738034c078d6
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/openldap
/Default
26 TITLE
:=LDAP implementation
27 URL
:=http
://www.openldap.org
/
30 define Package
/libopenldap
31 $(call Package
/openldap
/Default
)
34 DEPENDS
:=+libopenssl
+libsasl2
38 define Package
/libopenldap
/description
40 OpenLDAP Software is an open source implementation of the
41 Lightweight Directory Access Protocol
(LDAP
).
42 This package contains the shared LDAP client libraries
, needed by other programs.
45 define Package
/libopenldap
/conffiles
46 /etc
/openldap
/ldap.conf
49 define Package
/openldap-utils
50 $(call Package
/openldap
/Default
)
57 define Package
/openldap-utils
/description
59 OpenLDAP Software is an open source implementation of the
60 Lightweight Directory Access Protocol
(LDAP
).
61 This package contains client programs required to access LDAP servers.
64 TARGET_CFLAGS
+= $(FPIC
)
79 --with-yielding_select
="yes" \
80 --without-cyrus-sasl \
86 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
87 DESTDIR
="$(PKG_INSTALL_DIR)" \
92 define Build
/InstallDev
93 mkdir
-p
$(1)/usr
/include
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/{lber
,ldap
}*.h
$(1)/usr
/include/
95 mkdir
-p
$(1)/usr
/lib
/
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*} $(1)/usr
/lib
/
99 define Package
/libopenldap
/install
100 $(INSTALL_DIR
) $(1)/etc
/openldap
101 $(CP
) $(PKG_INSTALL_DIR
)/etc
/openldap
/ldap.conf
$(1)/etc
/openldap
/
102 $(INSTALL_DIR
) $(1)/usr
/lib
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.so.
* $(1)/usr
/lib
/
104 $(INSTALL_DIR
) $(1)/usr
/share
/openldap
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/openldap
/* $(1)/usr
/share
/openldap
/
108 define Package
/openldap-utils
/install
109 $(INSTALL_DIR
) $(1)/usr
/bin
110 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ldap
* $(1)/usr
/bin
/
113 $(eval
$(call BuildPackage
,libopenldap
))
114 $(eval
$(call BuildPackage
,openldap-utils
))