]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/openldap/openldap.nm
avahi: Update to 0.6.30.
[people/ms/ipfire-3.x.git] / pkgs / openldap / openldap.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = openldap
fd3fed98 28PKG_VER = 2.4.25
f0ed5737 29PKG_REL = 2
8b63a194 30
31PKG_MAINTAINER =
bb7d617c 32PKG_GROUPS = System/Daemons
8b63a194 33PKG_URL = http://www.openldap.org/
34PKG_LICENSE = OpenLDAP
35PKG_SUMMARY = LDAP support libraries.
36
4ea11fef 37PKG_BUILD_DEPS+= db4-devel cyrus-sasl-devel groff libtool libtool-devel \
25d74477 38 openssl-devel pth-devel
8b63a194 39
40define 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.
47endef
48
49PKG_TARBALL = $(THISAPP).tgz
50
25d74477
MT
51PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
52
8b63a194 53CONFIGURE_OPTIONS += \
799d65ad
MT
54 --libexecdir=/usr/lib \
55 --sysconfdir=/etc \
56 --localstatedir=/var \
57 --with-threads=posix \
799d65ad
MT
58 --disable-perl \
59 --enable-dynamic \
60 --enable-crypt \
61 --enable-modules \
62 --enable-rlookups \
63 --enable-backends=mod \
64 --enable-overlays=mod \
65 --enable-sql=no \
66 --enable-ndb=no \
67 --disable-static
8b63a194 68
799d65ad 69# Doens't seem to work in chroot.
8b63a194 70#define STAGE_TEST
71# cd $(DIR_APP) && make check
72#endef
73
74define STAGE_INSTALL_CMDS
02b6f3f0 75 mv -v $(BUILDROOT)/usr/lib/slapd $(BUILDROOT)/usr/sbin/slapd
93d20e63
SS
76 ln -svf slapd $(BUILDROOT)/usr/sbin/slapacl
77 ln -svf slapd $(BUILDROOT)/usr/sbin/slapadd
78 ln -svf slapd $(BUILDROOT)/usr/sbin/slapauth
79 ln -svf slapd $(BUILDROOT)/usr/sbin/slapcat
80 ln -svf slapd $(BUILDROOT)/usr/sbin/slapdn
81 ln -svf slapd $(BUILDROOT)/usr/sbin/slapindex
82 ln -svf slapd $(BUILDROOT)/usr/sbin/slappasswd
83 ln -svf slapd $(BUILDROOT)/usr/sbin/slapschema
84 ln -svf slapd $(BUILDROOT)/usr/sbin/slaptest
85
02b6f3f0 86 rm -rvf $(BUILDROOT)/var/openldap-data
8b63a194 87
88 for LINK in lber ldap ldap_r; do \
02b6f3f0 89 chmod -v 0755 $(BUILDROOT)/usr/lib/$$(readlink $(BUILDROOT)/usr/lib/lib$${LINK}.so); \
8b63a194 90 done
91
92 # Install configuration
02b6f3f0
MT
93 -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
94 cp -vf $(DIR_SOURCE)/slapd.conf $(BUILDROOT)/etc/$(PKG_NAME)/slapd.conf
8b63a194 95
02b6f3f0
MT
96 -mkdir -pv $(BUILDROOT)/var/lib/ldap
97 chmod 700 -Rv $(BUILDROOT)/var/lib/ldap
8b63a194 98endef