nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=openldap
11 PKG_VERSION:=2.2.29
12 PKG_RELEASE:=1
13
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
20
21 PKG_FIXUP = libtool
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/openldap/Default
26 TITLE:=LDAP implementation
27 URL:=http://www.openldap.org/
28 endef
29
30 define Package/libopenldap
31 $(call Package/openldap/Default)
32 SECTION:=libs
33 CATEGORY:=Libraries
34 DEPENDS:=+libopenssl +libsasl2
35 TITLE+= (libraries)
36 endef
37
38 define Package/libopenldap/description
39 =
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.
43 endef
44
45 define Package/libopenldap/conffiles
46 /etc/openldap/ldap.conf
47 endef
48
49 define Package/openldap-utils
50 $(call Package/openldap/Default)
51 SECTION:=utils
52 CATEGORY:=Utilities
53 DEPENDS:=+libopenldap
54 TITLE+= (utilities)
55 endef
56
57 define Package/openldap-utils/description
58 =
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.
62 endef
63
64 TARGET_CFLAGS += $(FPIC)
65
66 CONFIGURE_ARGS += \
67 --enable-shared \
68 --enable-static \
69 --disable-debug \
70 --enable-dynamic \
71 --enable-syslog \
72 --disable-local \
73 --disable-slapd \
74 --disable-slurpd \
75 --with-cyrus-sasl \
76 --without-fetch \
77 --with-threads \
78 --with-tls \
79 --with-yielding_select="yes" \
80 --without-cyrus-sasl \
81 --without-threads \
82 --without-tls
83
84
85 define Build/Compile
86 $(MAKE) -C $(PKG_BUILD_DIR) \
87 DESTDIR="$(PKG_INSTALL_DIR)" \
88 HOSTCC="$(HOSTCC)" \
89 depend all install
90 endef
91
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/
97 endef
98
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/
106 endef
107
108 define Package/openldap-utils/install
109 $(INSTALL_DIR) $(1)/usr/bin
110 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(1)/usr/bin/
111 endef
112
113 $(eval $(call BuildPackage,libopenldap))
114 $(eval $(call BuildPackage,openldap-utils))