1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = System/Daemons
33 PKG_URL = http://www.openldap.org/
34 PKG_LICENSE = OpenLDAP
35 PKG_SUMMARY = LDAP support libraries.
37 PKG_BUILD_DEPS+= db4-devel cyrus-sasl-devel groff libtool libtool-devel \
38 openssl-devel pth-devel
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.
49 PKG_TARBALL = $(THISAPP).tgz
51 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
53 CONFIGURE_OPTIONS += \
54 --libexecdir=/usr/lib \
56 --localstatedir=/var \
57 --with-threads=posix \
64 --enable-backends=mod \
65 --enable-overlays=mod \
70 # Doens't seem to work in chroot.
72 # cd $(DIR_APP) && make check
75 define STAGE_INSTALL_CMDS
76 mv -v $(BUILDROOT)/usr/lib/slapd $(BUILDROOT)/usr/sbin/slapd
77 ln -svf slapd $(BUILDROOT)/usr/sbin/slapacl
78 ln -svf slapd $(BUILDROOT)/usr/sbin/slapadd
79 ln -svf slapd $(BUILDROOT)/usr/sbin/slapauth
80 ln -svf slapd $(BUILDROOT)/usr/sbin/slapcat
81 ln -svf slapd $(BUILDROOT)/usr/sbin/slapdn
82 ln -svf slapd $(BUILDROOT)/usr/sbin/slapindex
83 ln -svf slapd $(BUILDROOT)/usr/sbin/slappasswd
84 ln -svf slapd $(BUILDROOT)/usr/sbin/slapschema
85 ln -svf slapd $(BUILDROOT)/usr/sbin/slaptest
87 rm -rvf $(BUILDROOT)/var/openldap-data
89 for LINK in lber ldap ldap_r; do \
90 chmod -v 0755 $(BUILDROOT)/usr/lib/$$(readlink $(BUILDROOT)/usr/lib/lib$${LINK}.so); \
93 # Install configuration
94 -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
95 cp -vf $(DIR_SOURCE)/slapd.conf $(BUILDROOT)/etc/$(PKG_NAME)/slapd.conf
97 -mkdir -pv $(BUILDROOT)/var/lib/ldap
98 chmod 700 -Rv $(BUILDROOT)/var/lib/ldap