a19ffda952268541b3db2859edceadbf9489c0f4
[openwrt/svn-archive/archive.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
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24
25 PKG_FIXUP = libtool
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/openldap/Default
30 TITLE:=LDAP implementation
31 URL:=http://www.openldap.org/
32 endef
33
34 define Package/libopenldap
35 $(call Package/openldap/Default)
36 SECTION:=libs
37 CATEGORY:=Libraries
38 DEPENDS:=+libopenssl +libsasl2
39 TITLE+= (libraries)
40 endef
41
42 define Package/libopenldap/description
43 =
44 OpenLDAP Software is an open source implementation of the
45 Lightweight Directory Access Protocol (LDAP).
46 This package contains the shared LDAP client libraries, needed by other programs.
47 endef
48
49 define Package/libopenldap/conffiles
50 /etc/openldap/ldap.conf
51 endef
52
53 define Package/openldap-utils
54 $(call Package/openldap/Default)
55 SECTION:=utils
56 CATEGORY:=Utilities
57 DEPENDS:=+libopenldap
58 TITLE+= (utilities)
59 endef
60
61 define Package/openldap-utils/description
62 =
63 OpenLDAP Software is an open source implementation of the
64 Lightweight Directory Access Protocol (LDAP).
65 This package contains client programs required to access LDAP servers.
66 endef
67
68 CONFIGURE_ARGS += \
69 --enable-shared \
70 --enable-static \
71 --disable-debug \
72 --enable-dynamic \
73 --enable-syslog \
74 --disable-local \
75 --disable-slapd \
76 --disable-slurpd \
77 --with-cyrus-sasl \
78 --without-fetch \
79 --with-threads \
80 --with-tls \
81 --with-yielding_select="yes" \
82 --without-cyrus-sasl \
83 --without-threads \
84 --without-tls
85
86
87 define Build/Compile
88 $(MAKE) -C $(PKG_BUILD_DIR) \
89 DESTDIR="$(PKG_INSTALL_DIR)" \
90 HOSTCC="$(HOSTCC)" \
91 depend all install
92 endef
93
94 define Build/InstallDev
95 mkdir -p $(1)/usr/include
96 $(CP) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(1)/usr/include/
97 mkdir -p $(1)/usr/lib/
98 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(1)/usr/lib/
99 endef
100
101 define Package/libopenldap/install
102 $(INSTALL_DIR) $(1)/etc/openldap
103 $(CP) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/
104 $(INSTALL_DIR) $(1)/usr/lib
105 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/
106 $(INSTALL_DIR) $(1)/usr/share/openldap
107 $(CP) $(PKG_INSTALL_DIR)/usr/share/openldap/* $(1)/usr/share/openldap/
108 endef
109
110 define Package/openldap-utils/install
111 $(INSTALL_DIR) $(1)/usr/bin
112 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(1)/usr/bin/
113 endef
114
115 $(eval $(call BuildPackage,libopenldap))
116 $(eval $(call BuildPackage,openldap-utils))