source: branches/packages_10.03.1/libs/openldap/Makefile @ 28877

Last change on this file since 28877 was 28877, checked in by nico, 4 years ago

[backfire] packages/openldap: merge r28843

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 4.1 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=openldap
11PKG_VERSION:=2.4.23
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15PKG_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/
19PKG_MD5SUM:=90150b8c0d0192e10b30157e68844ddf
20
21PKG_FIXUP:=libtool
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/openldap/Default
26  TITLE:=LDAP implementation
27  URL:=http://www.openldap.org/
28  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
29endef
30
31define Package/libopenldap
32  $(call Package/openldap/Default)
33  SECTION:=libs
34  CATEGORY:=Libraries
35  DEPENDS:=+libopenssl +libsasl2
36  TITLE+= (libraries)
37endef
38
39define Package/libopenldap/description
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.
43endef
44
45define Package/libopenldap/conffiles
46/etc/openldap/ldap.conf
47endef
48
49define Package/openldap-utils
50  $(call Package/openldap/Default)
51  SECTION:=utils
52  CATEGORY:=Utilities
53  DEPENDS:=+libopenldap
54  TITLE+= (utilities)
55endef
56
57define Package/openldap-utils/description
58        OpenLDAP Software is an open source implementation of the
59        Lightweight Directory Access Protocol (LDAP).   
60        This package contains client programs required to access LDAP servers.
61endef
62
63define Package/openldap-server
64  $(call Package/openldap/Default)
65  SECTION:=net
66  CATEGORY:=Network
67  DEPENDS:=+libopenldap
68  TITLE+= (server)
69endef
70
71define Package/openldap-server/description
72        OpenLDAP Software is an open source implementation of the
73        Lightweight Directory Access Protocol (LDAP).   
74        This package contains server programs required to provide LDAP services.
75endef
76
77define Package/openldap-server/conffiles
78/etc/openldap/slapd.conf
79endef
80
81TARGET_CFLAGS += $(FPIC)
82
83CONFIGURE_ARGS += \
84        --enable-shared \
85        --enable-static \
86        --disable-debug \
87        --enable-dynamic \
88        --enable-syslog \
89        --disable-local \
90        --disable-slurpd \
91        --with-cyrus-sasl \
92        --without-fetch \
93        --with-threads \
94        --with-tls \
95        --with-yielding_select="yes" \
96        --without-cyrus-sasl \
97        --without-threads \
98        --without-tls \
99        --enable-null \
100        --disable-bdb \
101        --disable-hdb \
102        --disable-monitor \
103        --disable-relay
104
105define Build/Compile
106        $(MAKE) -C $(PKG_BUILD_DIR) \
107                DESTDIR="$(PKG_INSTALL_DIR)" \
108                HOSTCC="$(HOSTCC)" \
109                depend all install
110endef
111
112define Build/InstallDev
113        $(INSTALL_DIR) $(1)/usr/include
114        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(1)/usr/include/
115        $(INSTALL_DIR) $(1)/usr/lib/
116        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(1)/usr/lib/
117endef
118
119define Package/libopenldap/install
120        $(INSTALL_DIR) $(1)/etc/openldap
121        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/
122        $(INSTALL_DIR) $(1)/usr/lib
123        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/
124endef
125       
126define Package/openldap-utils/install
127        $(INSTALL_DIR) $(1)/usr/bin
128        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(1)/usr/bin/
129endef
130       
131define Package/openldap-server/install
132        $(INSTALL_DIR) $(1)/etc/init.d
133        $(INSTALL_BIN) ./files/ldap.init $(1)/etc/init.d/ldap
134        $(INSTALL_DIR) $(1)/etc/openldap/ldif
135        $(INSTALL_DIR) $(1)/etc/openldap/schema
136        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/schema/* $(1)/etc/openldap/schema/
137        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/slapd.conf $(1)/etc/openldap/
138        $(INSTALL_DIR) $(1)/usr/sbin
139        # XXX: OpenLDAP installs slapd into libexecdir, not sbindir:
140        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/slapd $(1)/usr/sbin/
141        # XXX: switch default backend to ldif, since bdb is disabled
142        $(SED) 's|^\(database\)\([ \t]\+\)bdb|\1\2ldif|g' \
143            -e 's|^\(index\)|#\1|g' \
144            $(1)/etc/openldap/slapd.conf
145endef
146
147$(eval $(call BuildPackage,libopenldap))
148$(eval $(call BuildPackage,openldap-utils))
149$(eval $(call BuildPackage,openldap-server))
Note: See TracBrowser for help on using the repository browser.