1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = http://www.openldap.org/
13 summary = LDAP support libraries.
16 OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
17 Protocol) applications and development tools. LDAP is a set of
18 protocols for accessing directory services over the Internet, similar
19 to the way DNS information is propagated over the Internet. The
20 openldap package contains configuration files, libraries, and
21 documentation for OpenLDAP.
24 source_dl = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
25 sources = %{thisapp}.tgz
38 configure_options += \
39 --libexecdir=%{libdir} \
41 --localstatedir=/var \
42 --with-threads=posix \
48 --enable-backends=mod \
49 --enable-overlays=mod \
55 mv -v %{BUILDROOT}%{libdir}/slapd %{BUILDROOT}/usr/sbin/slapd
56 ln -svf slapd %{BUILDROOT}/usr/sbin/slapacl
57 ln -svf slapd %{BUILDROOT}/usr/sbin/slapadd
58 ln -svf slapd %{BUILDROOT}/usr/sbin/slapauth
59 ln -svf slapd %{BUILDROOT}/usr/sbin/slapcat
60 ln -svf slapd %{BUILDROOT}/usr/sbin/slapdn
61 ln -svf slapd %{BUILDROOT}/usr/sbin/slapindex
62 ln -svf slapd %{BUILDROOT}/usr/sbin/slappasswd
63 ln -svf slapd %{BUILDROOT}/usr/sbin/slapschema
64 ln -svf slapd %{BUILDROOT}/usr/sbin/slaptest
66 rm -rvf %{BUILDROOT}/var/openldap-data
68 for LINK in lber ldap ldap_r; do
69 chmod -v 0755 %{BUILDROOT}%{libdir}/$(readlink %{BUILDROOT}%{libdir}/lib${LINK}.so)
72 # Install configuration
73 mkdir -pv %{BUILDROOT}/etc/%{name}
74 cp -vf %{DIR_SOURCE}/slapd.conf %{BUILDROOT}/etc/%{name}/slapd.conf
76 mkdir -pv %{BUILDROOT}/var/lib/ldap
77 chmod 700 -Rv %{BUILDROOT}/var/lib/ldap
84 systemctl daemon-reload >/dev/null 2>&1 || :
88 systemctl --no-reload disable openldap.service >/dev/null 2>&1 || :
89 systemctl stop openldap.service >/dev/null 2>&1 || :
93 systemctl daemon-reload >/dev/null 2>&1 || :
97 systemctl daemon-reload >/dev/null 2>&1 || :
98 systemctl try-restart openldap.service >/dev/null 2>&1 || :
106 package %{name}-devel
110 package %{name}-debuginfo