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