1 |
# $Id: e-smith-ldap.spec,v 1.2 2016/03/17 16:36:57 unnilennium Exp $ |
# $Id: e-smith-ldap.spec,v 1.18 2022/02/19 04:41:21 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 3 |
%define release 15 |
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 |
|
Patch7: e-smith-ldap-5.6.0-bz11598.patch |
21 |
|
Patch8: e-smith-ldap-5.6.0-bz11745-log.patch |
22 |
|
Patch9: e-smith-ldap-5.6.0-bz11753-ldif-fix.patch |
23 |
|
|
24 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
26 |
Requires: e-smith-base |
Requires: e-smith-base |
38 |
e-smith server and gateway software - LDAP module. |
e-smith server and gateway software - LDAP module. |
39 |
|
|
40 |
%changelog |
%changelog |
41 |
|
* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-15.sme |
42 |
|
- add support or rsshusers system group [SME: 11753] |
43 |
|
|
44 |
|
* Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-14.sme |
45 |
|
- redirect syslog for ldapt to /var/log/ldap/ldap.log [SME: 11745] |
46 |
|
|
47 |
|
* Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-13.sme |
48 |
|
- fix ssl-update reload instead of restart ldap [SME: 11598] |
49 |
|
|
50 |
|
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-12.sme |
51 |
|
- fix wrong path for templates.metadata [SME: 11595] |
52 |
|
|
53 |
|
* Sun May 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-11.sme |
54 |
|
- use template for ssl pem [SME: 11595] |
55 |
|
|
56 |
|
* Sun Mar 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.0-10.sme |
57 |
|
- fix ldap failing to start on initial boot [SME: 11480] |
58 |
|
|
59 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-9.sme |
60 |
|
- fix wrong alias to ldap.init [SME: 11301] |
61 |
|
|
62 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-8.sme |
63 |
|
- add -update event [SME: 11140] |
64 |
|
- move ldap to systemd [SME: 11099] |
65 |
|
- move ldap.init to systemd [SME: 11096] |
66 |
|
|
67 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
68 |
|
- New protocol default as TLSv1.2 [SME: 10936] |
69 |
|
New property TLSProtocolMin |
70 |
|
Ciphers are now ordered with stronger first |
71 |
|
|
72 |
|
* Thu Feb 23 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-6.sme |
73 |
|
- Disable SSLv3, but keep the possibility to enable it again [SME: 10108] |
74 |
|
- Better default cipher suite, and honor global suite [SME: 10108] |
75 |
|
|
76 |
|
* Sun Jul 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-5.sme |
77 |
|
- systemd skip redirect [SME: 9688] |
78 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
79 |
|
by assuming the date is correct and changing the weekday. |
80 |
|
Fri Jun 01 2000 --> Fri May 26 2000 or Thu Jun 01 2000 or Fri Jun 02 2000 or .... |
81 |
|
Thu Aug 07 2001 --> Thu Aug 02 2001 or Tue Aug 07 2001 or Thu Aug 09 2001 or .... |
82 |
|
Tue Jun 10 2010 --> Tue Jun 08 2010 or Thu Jun 10 2010 or Tue Jun 15 2010 or .... |
83 |
|
|
84 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme |
85 |
|
- Add missing shebang in ldap.init script [SME: 9432] |
86 |
|
|
87 |
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-3.sme |
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-3.sme |
88 |
- Rebuild for [SME: 9393] |
- Rebuild for [SME: 9393] |
89 |
|
|
330 |
* 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 |
331 |
- Restrict access to the ldif file [SME: 6217] |
- Restrict access to the ldif file [SME: 6217] |
332 |
|
|
333 |
* 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 |
334 |
|
Tue Jun 10 2010 --> Tue Jun 08 2010 or Thu Jun 10 2010 or Tue Jun 15 2010 or .... |
335 |
- Fix ldap-create errors when adding empty groups [SME: 5920] |
- Fix ldap-create errors when adding empty groups [SME: 5920] |
336 |
|
|
337 |
* 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 |
871 |
- [4.3.1-01] |
- [4.3.1-01] |
872 |
- 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. |
873 |
|
|
874 |
* Thu Aug 07 2001 Charlie Brady <charlieb@e-smith.com> |
* Tue Aug 07 2001 Charlie Brady <charlieb@e-smith.com> |
875 |
- [4.3.0-07] |
- [4.3.0-07] |
876 |
- Break slapd.conf template into fragments, and include in-line |
- Break slapd.conf template into fragments, and include in-line |
877 |
at.conf and co.conf fragements, rather than use include feature. |
at.conf and co.conf fragements, rather than use include feature. |
1045 |
* Mon Jun 12 2000 Charlie Brady <charlieb@e-smith.net> |
* Mon Jun 12 2000 Charlie Brady <charlieb@e-smith.net> |
1046 |
- Use new multi-arg form of backgroundCommand. |
- Use new multi-arg form of backgroundCommand. |
1047 |
|
|
1048 |
* Fri Jun 1 2000 Charlie Brady <charlieb@e-smith.net> |
* Thu Jun 01 2000 Charlie Brady <charlieb@e-smith.net> |
1049 |
|
Fri Jun 01 2000 --> Fri May 26 2000 or Thu Jun 01 2000 or Fri Jun 02 2000 or .... |
1050 |
- First created - broken out of e-smith-base 4.0.11. |
- First created - broken out of e-smith-base 4.0.11. |
1051 |
|
|
1052 |
%prep |
%prep |
1053 |
%setup |
%setup |
1054 |
|
%patch0 -p1 |
1055 |
|
%patch1 -p1 |
1056 |
|
%patch2 -p1 |
1057 |
|
%patch3 -p1 |
1058 |
|
%patch4 -p1 |
1059 |
|
%patch5 -p1 |
1060 |
|
mkdir -p root/etc/openldap/ssl |
1061 |
|
rm -rf root/service root/var/service root/etc/rc.d/init.d/supervise |
1062 |
|
%patch6 -p1 |
1063 |
|
%patch7 -p1 |
1064 |
|
%patch8 -p1 |
1065 |
|
%patch9 -p1 |
1066 |
|
|
1067 |
%build |
%build |
1068 |
perl createlinks |
perl createlinks |
1072 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1073 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
1074 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
1075 |
--file /var/service/ldap/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-certificate 'attr(0554,root,root)' \ |
1076 |
--file /var/service/ldap/log/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-prepare 'attr(0554,root,root)' \ |
1077 |
|
--file /sbin/e-smith/systemd/ldap-finish 'attr(0554,root,root)' \ |
1078 |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
1079 |
--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)' \ |
|
1080 |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
1081 |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
1082 |
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
--dir /var/log/ldap 'attr(0750,root,root)' \ |
1083 |
|
--dir /etc/openldap/ssl 'attr(0750,root,ldap)' \ |
1084 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
1085 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
1086 |
|
|
1090 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
1091 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1092 |
|
|
1093 |
|
%pre |
1094 |
|
if [ $1 -gt 1 ] ; then |
1095 |
|
if [ -e /var/service/ldap/run ] ; then |
1096 |
|
/usr/bin/sv d ldap |
1097 |
|
/usr/bin/sv d ldap/log |
1098 |
|
fi |
1099 |
|
fi |