]>
Commit | Line | Data |
---|---|---|
8b63a194 | 1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = openldap | |
28 | PKG_VER = 2.4.21 | |
29 | PKG_REL = 0 | |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = System/Daemons | |
33 | PKG_URL = http://www.openldap.org/ | |
34 | PKG_LICENSE = OpenLDAP | |
35 | PKG_SUMMARY = LDAP support libraries. | |
36 | ||
37 | PKG_BUILD_DEPS+= db cyrus-sasl openssl pth libtool groff | |
38 | PKG_DEPS += | |
39 | ||
40 | define PKG_DESCRIPTION | |
41 | OpenLDAP is an open source suite of LDAP (Lightweight Directory Access \ | |
42 | Protocol) applications and development tools. LDAP is a set of \ | |
43 | protocols for accessing directory services over the Internet, similar \ | |
44 | to the way DNS information is propagated over the Internet. The \ | |
45 | openldap package contains configuration files, libraries, and \ | |
46 | documentation for OpenLDAP. | |
47 | endef | |
48 | ||
49 | PKG_TARBALL = $(THISAPP).tgz | |
50 | ||
51 | PKG_PATCHES += $(THISAPP)-disable_sys_err.patch | |
52 | ############################################################################### | |
53 | # Installation Details | |
54 | ############################################################################### | |
55 | CONFIGURE_OPTIONS += \ | |
56 | --libexecdir=/usr/lib \ | |
57 | --sysconfdir=/etc \ | |
58 | --localstatedir=/var \ | |
59 | --with-threads=posix \ | |
60 | --disable-debug \ | |
61 | --disable-perl \ | |
62 | --enable-dynamic \ | |
63 | --enable-crypt \ | |
64 | --enable-modules \ | |
65 | --enable-rlookups \ | |
66 | --enable-backends=mod \ | |
67 | --enable-overlays=mod \ | |
68 | --enable-sql=no \ | |
69 | --enable-ndb=no \ | |
70 | --disable-static | |
71 | ||
72 | #define STAGE_TEST | |
73 | # cd $(DIR_APP) && make check | |
74 | #endef | |
75 | ||
76 | define STAGE_INSTALL_CMDS | |
77 | mv -v $(BUILDROOT)/usr/lib/slapd /usr/sbin/slapd | |
78 | rm -rvf /var/openldap-data /usr/lib/openldap/*.la | |
79 | ||
80 | for LINK in lber ldap ldap_r; do \ | |
81 | chmod -v 0755 /usr/lib/$$(readlink /usr/lib/lib$${LINK}.so); \ | |
82 | rm -vf /usr/lib/lib$${LINK}.la; \ | |
83 | done | |
84 | ||
85 | # Install configuration | |
86 | $(INSTALL_INITSCRIPT) | |
87 | # $(INSTALL_CONFIG) $(DIR_SOURCE)/$(PKG_NAME)/slapd.conf \ | |
88 | # > /etc/$(PKG_NAME)/slapd.conf | |
89 | ||
90 | -mkdir -pv /var/lib/ldap | |
91 | chmod 700 -Rv /var/lib/ldap | |
92 | endef |