DESCRIPTION:= is obselete
[packages.git] / libs / openldap / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=openldap
12 PKG_VERSION:=2.2.29
13 PKG_RELEASE:=1
14
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
21 PKG_CAT:=zcat
22
23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
24 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/openldap/Default
29   TITLE:=LDAP implementation
30   URL:=http://www.openldap.org/
31 endef
32
33 define Package/libopenldap
34   $(call Package/openldap/Default)
35   SECTION:=libs
36   CATEGORY:=Libraries
37   DEPENDS:=+libopenssl +libsasl2
38   TITLE+= (libraries)
39 endef
40
41 define Package/libopenldap/description
42 =
43         OpenLDAP Software is an open source implementation of the 
44         Lightweight Directory Access Protocol (LDAP).   
45         This package contains the shared LDAP client libraries, needed by other programs.
46 endef
47
48 define Package/libopenldap/conffiles
49 /etc/openldap/ldap.conf
50 endef
51
52 define Package/openldap-utils
53   $(call Package/openldap/Default)
54   SECTION:=utils
55   CATEGORY:=Utilities
56   DEPENDS:=+libopenldap
57   TITLE+= (utilities)
58 endef
59
60 define Package/openldap-utils/description
61 =
62         OpenLDAP Software is an open source implementation of the 
63         Lightweight Directory Access Protocol (LDAP).   
64         This package contains client programs required to access LDAP servers.
65 endef
66
67 CONFIGURE_ARGS += \
68         --enable-shared \
69         --enable-static \
70         --disable-debug \
71         --enable-dynamic \
72         --enable-syslog \
73         --disable-local \
74         --disable-slapd \
75         --disable-slurpd \
76         --with-cyrus-sasl \
77         --without-fetch \
78         --with-threads \
79         --with-tls \
80         --with-yielding_select="yes" \
81         --without-cyrus-sasl \
82         --without-threads \
83         --without-tls 
84
85
86 define Build/Compile
87         $(MAKE) -C $(PKG_BUILD_DIR) \
88                 DESTDIR="$(PKG_INSTALL_DIR)" \
89                 HOSTCC="$(HOSTCC)" \
90                 depend all install
91 endef
92
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/
98 endef
99         
100 define Build/UninstallDev
101         rm -rf  $(STAGING_DIR)/usr/include/{lber,ldap}*.h \
102                 $(STAGING_DIR)/usr/lib/lib{lber,ldap}*.{a,so*}
103 endef
104
105 define Package/libopenldap/install
106         $(INSTALL_DIR) $(1)/etc/openldap
107         $(CP) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/
108         $(INSTALL_DIR) $(1)/usr/lib
109         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/
110         $(INSTALL_DIR) $(1)/usr/share/openldap
111         $(CP) $(PKG_INSTALL_DIR)/usr/share/openldap/* $(1)/usr/share/openldap/
112 endef
113         
114 define Package/openldap-utils/install
115         $(INSTALL_DIR) $(1)/usr/bin
116         $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(1)/usr/bin/
117 endef
118
119 $(eval $(call BuildPackage,libopenldap))
120 $(eval $(call BuildPackage,openldap-utils))