]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - openldap/openldap.nm
openldap: Update to 2.4.32.
[people/ms/ipfire-3.x.git] / openldap / openldap.nm
CommitLineData
8b63a194 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
8b63a194 4###############################################################################
5
802ea3af 6name = openldap
b0a34906 7version = 2.4.32
48e44b02 8release = 1
8b63a194 9
802ea3af
MT
10groups = System/Daemons
11url = http://www.openldap.org/
12license = OpenLDAP
13summary = LDAP support libraries.
8b63a194 14
802ea3af
MT
15description
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
8b63a194 21 documentation for OpenLDAP.
802ea3af 22end
8b63a194 23
641c402a 24source_dl = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
802ea3af 25sources = %{thisapp}.tgz
8b63a194 26
802ea3af
MT
27build
28 requires
29 db4-devel
30 cyrus-sasl-devel
31 groff
32 libtool
33 libtool-devel
34 openssl-devel
35 pth-devel
36 end
25d74477 37
802ea3af 38 configure_options += \
c8784213 39 --libexecdir=%{libdir} \
802ea3af
MT
40 --sysconfdir=/etc \
41 --localstatedir=/var \
42 --with-threads=posix \
43 --disable-perl \
44 --enable-dynamic \
45 --enable-crypt \
46 --enable-modules \
47 --enable-rlookups \
48 --enable-backends=mod \
49 --enable-overlays=mod \
50 --enable-sql=no \
51 --enable-ndb=no \
52 --disable-static
8b63a194 53
802ea3af 54 install_cmds
c8784213 55 mv -v %{BUILDROOT}%{libdir}/slapd %{BUILDROOT}/usr/sbin/slapd
802ea3af
MT
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
65
66 rm -rvf %{BUILDROOT}/var/openldap-data
67
68 for LINK in lber ldap ldap_r; do
c8784213 69 chmod -v 0755 %{BUILDROOT}%{libdir}/$(readlink %{BUILDROOT}%{libdir}/lib${LINK}.so)
802ea3af
MT
70 done
71
72 # Install configuration
73 mkdir -pv %{BUILDROOT}/etc/%{name}
74 cp -vf %{DIR_SOURCE}/slapd.conf %{BUILDROOT}/etc/%{name}/slapd.conf
93d20e63 75
802ea3af
MT
76 mkdir -pv %{BUILDROOT}/var/lib/ldap
77 chmod 700 -Rv %{BUILDROOT}/var/lib/ldap
78 end
79end
8b63a194 80
802ea3af
MT
81packages
82 package %{name}
b0a34906
SS
83 script postin
84 systemctl daemon-reload >/dev/null 2>&1 || :
85 end
86
87 script preun
88 systemctl --no-reload disable openldap.service >/dev/null 2>&1 || :
89 systemctl stop openldap.service >/dev/null 2>&1 || :
90 end
91
92 script postun
93 systemctl daemon-reload >/dev/null 2>&1 || :
94 end
95
96 script postup
97 systemctl daemon-reload >/dev/null 2>&1 || :
98 systemctl try-restart openldap.service >/dev/null 2>&1 || :
99 end
100 end
8b63a194 101
802ea3af
MT
102 package %{name}-libs
103 template LIBS
104 end
8b63a194 105
802ea3af
MT
106 package %{name}-devel
107 template DEVEL
108 end
1f9bc2f0
MT
109
110 package %{name}-debuginfo
111 template DEBUGINFO
112 end
802ea3af 113end