1 |
# $Id: e-smith-ldap.spec,v 1.25 2016/02/05 15:40:28 stephdl Exp $ |
# $Id: e-smith-ldap.spec,v 1.14 2021/03/22 03:12:12 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - LDAP module |
Summary: e-smith server and gateway - LDAP module |
4 |
%define name e-smith-ldap |
%define name e-smith-ldap |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 5.6.0 |
%define version 5.6.0 |
7 |
%define release 1 |
%define release 11 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
|
Patch0: e-smith-ldap-5.6.0-missing_shebang_ldap_init.patch |
14 |
|
Patch1: e-smith-ldap-5.6.0.bz9688.skipredirect.patch |
15 |
|
Patch2: e-smith-ldap-5.6.0-strong_encryption.patch |
16 |
|
Patch3: e-smith-ldap-5.6.0-bz10936-TLS-and-ciphers.patch |
17 |
|
Patch4: e-smith-ldap-5.6.0-bz11140-bz11099-bz11096-systemd-update.patch |
18 |
|
Patch5: e-smith-ldap-5.6.0-bz11480-timeoutstart.patch |
19 |
|
Patch6: e-smith-ldap-5.6.0-bz11595-ssl-template.patch |
20 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
Requires: e-smith-base |
Requires: e-smith-base |
26 |
Requires: openldap-clients |
Requires: openldap-clients |
27 |
Requires: openldap-servers |
Requires: openldap-servers |
28 |
Requires: perl(Net::LDAP) |
Requires: perl(Net::LDAP) |
29 |
Requires: db4-utils |
Requires: libdb4-utils |
30 |
Requires: e-smith-formmagick >= 1.4.0-9 |
Requires: e-smith-formmagick >= 1.4.0-9 |
31 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
32 |
AutoReqProv: no |
AutoReqProv: no |
35 |
e-smith server and gateway software - LDAP module. |
e-smith server and gateway software - LDAP module. |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
|
* Sun May 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
39 |
|
- use template for ssl pem [SME: 11595] |
40 |
|
|
41 |
|
* Sun Mar 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
42 |
|
- fix ldap failing to start on initial boot [SME: 11480] |
43 |
|
|
44 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
45 |
|
- fix wrong alias to ldap.init [SME: 11301] |
46 |
|
|
47 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-8.sme |
48 |
|
- add -update event [SME: 11140] |
49 |
|
- move ldap to systemd [SME: 11099] |
50 |
|
- move ldap.init to systemd [SME: 11096] |
51 |
|
|
52 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
53 |
|
- New protocol default as TLSv1.2 [SME: 10936] |
54 |
|
New property TLSProtocolMin |
55 |
|
Ciphers are now ordered with stronger first |
56 |
|
|
57 |
|
* Thu Feb 23 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-6.sme |
58 |
|
- Disable SSLv3, but keep the possibility to enable it again [SME: 10108] |
59 |
|
- Better default cipher suite, and honor global suite [SME: 10108] |
60 |
|
|
61 |
|
* Sun Jul 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-5.sme |
62 |
|
- systemd skip redirect [SME: 9688] |
63 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
64 |
|
by assuming the date is correct and changing the weekday. |
65 |
|
Fri Jun 01 2000 --> Fri May 26 2000 or Thu Jun 01 2000 or Fri Jun 02 2000 or .... |
66 |
|
Thu Aug 07 2001 --> Thu Aug 02 2001 or Tue Aug 07 2001 or Thu Aug 09 2001 or .... |
67 |
|
Tue Jun 10 2010 --> Tue Jun 08 2010 or Thu Jun 10 2010 or Tue Jun 15 2010 or .... |
68 |
|
|
69 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
70 |
|
- Add missing shebang in ldap.init script [SME: 9432] |
71 |
|
|
72 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-3.sme |
73 |
|
- Rebuild for [SME: 9393] |
74 |
|
|
75 |
|
* Fri Mar 18 2016 JP Pialasse <tests@pialasse.com> 5.6.0-2.sme |
76 |
|
- fix Requires db4-utils to libdb4-utils [SME: 9319] |
77 |
|
|
78 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.6.0-1.sme |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.6.0-1.sme |
79 |
- Initial release to sme10 |
- Initial release to sme10 |
80 |
|
|
315 |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-24.sme |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-24.sme |
316 |
- Restrict access to the ldif file [SME: 6217] |
- Restrict access to the ldif file [SME: 6217] |
317 |
|
|
318 |
* Tue Jun 10 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-23.sme |
* Thu Jun 10 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-23.sme |
319 |
|
Tue Jun 10 2010 --> Tue Jun 08 2010 or Thu Jun 10 2010 or Tue Jun 15 2010 or .... |
320 |
- Fix ldap-create errors when adding empty groups [SME: 5920] |
- Fix ldap-create errors when adding empty groups [SME: 5920] |
321 |
|
|
322 |
* Mon Jun 7 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-22.sme |
* Mon Jun 7 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-22.sme |
856 |
- [4.3.1-01] |
- [4.3.1-01] |
857 |
- Rolled version number to 4.3.1-01. Includes patches upto 4.3.0-07. |
- Rolled version number to 4.3.1-01. Includes patches upto 4.3.0-07. |
858 |
|
|
859 |
* Thu Aug 07 2001 Charlie Brady <charlieb@e-smith.com> |
* Tue Aug 07 2001 Charlie Brady <charlieb@e-smith.com> |
860 |
- [4.3.0-07] |
- [4.3.0-07] |
861 |
- Break slapd.conf template into fragments, and include in-line |
- Break slapd.conf template into fragments, and include in-line |
862 |
at.conf and co.conf fragements, rather than use include feature. |
at.conf and co.conf fragements, rather than use include feature. |
1030 |
* Mon Jun 12 2000 Charlie Brady <charlieb@e-smith.net> |
* Mon Jun 12 2000 Charlie Brady <charlieb@e-smith.net> |
1031 |
- Use new multi-arg form of backgroundCommand. |
- Use new multi-arg form of backgroundCommand. |
1032 |
|
|
1033 |
* Fri Jun 1 2000 Charlie Brady <charlieb@e-smith.net> |
* Thu Jun 01 2000 Charlie Brady <charlieb@e-smith.net> |
1034 |
|
Fri Jun 01 2000 --> Fri May 26 2000 or Thu Jun 01 2000 or Fri Jun 02 2000 or .... |
1035 |
- First created - broken out of e-smith-base 4.0.11. |
- First created - broken out of e-smith-base 4.0.11. |
1036 |
|
|
1037 |
%prep |
%prep |
1038 |
%setup |
%setup |
1039 |
|
%patch0 -p1 |
1040 |
|
%patch1 -p1 |
1041 |
|
%patch2 -p1 |
1042 |
|
%patch3 -p1 |
1043 |
|
%patch4 -p1 |
1044 |
|
%patch5 -p1 |
1045 |
|
mkdir -p root/etc/openldap/ssl |
1046 |
|
rm -rf root/service root/var/service root/etc/rc.d/init.d/supervise |
1047 |
|
%patch6 -p1 |
1048 |
|
|
1049 |
%build |
%build |
1050 |
perl createlinks |
perl createlinks |
1054 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1055 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
1056 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
1057 |
--file /var/service/ldap/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-certificate 'attr(0554,root,root)' \ |
1058 |
--file /var/service/ldap/log/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-prepare 'attr(0554,root,root)' \ |
1059 |
|
--file /sbin/e-smith/systemd/ldap-finish 'attr(0554,root,root)' \ |
1060 |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
1061 |
--file /var/service/ldap/finish 'attr(0750,root,root)' \ |
--file /var/service/ldap/finish 'attr(0750,root,root)' \ |
|
--file /var/service/ldap/control/1 'attr(0750,root,root)' \ |
|
1062 |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
1063 |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
1064 |
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
1065 |
|
--dir /etc/openldap/ssl 'attr(0750,root,ldap)' \ |
1066 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
1067 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
1068 |
|
|
1072 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
1073 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1074 |
|
|
1075 |
|
%pre |
1076 |
|
if [ $1 -gt 1 ] ; then |
1077 |
|
if [ -e /var/service/ldap/run ] ; then |
1078 |
|
/usr/bin/sv d ldap |
1079 |
|
/usr/bin/sv d ldap/log |
1080 |
|
fi |
1081 |
|
fi |