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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
16 PKG_SOURCE_URL
:=ftp
://ftp.openldap.org
/pub
/OpenLDAP
/openldap-release
/ \
17 ftp
://sunsite.cnlab-switch.ch
/mirror
/OpenLDAP
/openldap-release
/ \
18 ftp
://ftp.nl.uu.net
/pub
/unix
/db
/openldap
/openldap-release
/ \
19 ftp
://ftp.plig.org
/pub
/OpenLDAP
/openldap-release
/
20 PKG_MD5SUM
:=6c4c72a1336aa45b463e738034c078d6
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/openldap
/Default
27 TITLE
:=LDAP implementation
28 URL
:=http
://www.openldap.org
/
31 define Package
/libopenldap
32 $(call Package
/openldap
/Default
)
35 DEPENDS
:=+libopenssl
+libsasl2
39 define Package
/libopenldap
/description
41 OpenLDAP Software is an open source implementation of the
42 Lightweight Directory Access Protocol
(LDAP
).
43 This package contains the shared LDAP client libraries
, needed by other programs.
46 define Package
/libopenldap
/conffiles
47 /etc
/openldap
/ldap.conf
50 define Package
/openldap-utils
51 $(call Package
/openldap
/Default
)
58 define Package
/openldap-utils
/description
60 OpenLDAP Software is an open source implementation of the
61 Lightweight Directory Access Protocol
(LDAP
).
62 This package contains client programs required to access LDAP servers.
65 TARGET_CFLAGS
+= $(FPIC
)
80 --with-yielding_select
="yes" \
81 --without-cyrus-sasl \
87 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
88 DESTDIR
="$(PKG_INSTALL_DIR)" \
93 define Build
/InstallDev
94 mkdir
-p
$(1)/usr
/include
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/{lber
,ldap
}*.h
$(1)/usr
/include/
96 mkdir
-p
$(1)/usr
/lib
/
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*} $(1)/usr
/lib
/
100 define Package
/libopenldap
/install
101 $(INSTALL_DIR
) $(1)/etc
/openldap
102 $(CP
) $(PKG_INSTALL_DIR
)/etc
/openldap
/ldap.conf
$(1)/etc
/openldap
/
103 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.so.
* $(1)/usr
/lib
/
105 $(INSTALL_DIR
) $(1)/usr
/share
/openldap
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/openldap
/* $(1)/usr
/share
/openldap
/
109 define Package
/openldap-utils
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ldap
* $(1)/usr
/bin
/
114 $(eval
$(call BuildPackage
,libopenldap
))
115 $(eval
$(call BuildPackage
,openldap-utils
))