]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/openldap/openldap.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / openldap / openldap.nm
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 = 1
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+= db4-devel cyrus-sasl-devel groff libtool libtool-devel \
38 openssl-devel pth-devel
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_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
52
53 CONFIGURE_OPTIONS += \
54 --libexecdir=/usr/lib \
55 --sysconfdir=/etc \
56 --localstatedir=/var \
57 --with-threads=posix \
58 --disable-debug \
59 --disable-perl \
60 --enable-dynamic \
61 --enable-crypt \
62 --enable-modules \
63 --enable-rlookups \
64 --enable-backends=mod \
65 --enable-overlays=mod \
66 --enable-sql=no \
67 --enable-ndb=no \
68 --disable-static
69
70 # Doens't seem to work in chroot.
71 #define STAGE_TEST
72 # cd $(DIR_APP) && make check
73 #endef
74
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
86
87 rm -rvf $(BUILDROOT)/var/openldap-data
88
89 for LINK in lber ldap ldap_r; do \
90 chmod -v 0755 $(BUILDROOT)/usr/lib/$$(readlink $(BUILDROOT)/usr/lib/lib$${LINK}.so); \
91 done
92
93 # Install configuration
94 -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
95 cp -vf $(DIR_SOURCE)/slapd.conf $(BUILDROOT)/etc/$(PKG_NAME)/slapd.conf
96
97 -mkdir -pv $(BUILDROOT)/var/lib/ldap
98 chmod 700 -Rv $(BUILDROOT)/var/lib/ldap
99 endef