1 |
# $Id: e-smith-ldap.spec,v 1.8 2017/02/23 10:21:52 vip-ire Exp $ |
# $Id: e-smith-ldap.spec,v 1.9 2020/05/03 02:51:32 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 7 |
%define release 8 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
14 |
Patch1: e-smith-ldap-5.6.0.bz9688.skipredirect.patch |
Patch1: e-smith-ldap-5.6.0.bz9688.skipredirect.patch |
15 |
Patch2: e-smith-ldap-5.6.0-strong_encryption.patch |
Patch2: e-smith-ldap-5.6.0-strong_encryption.patch |
16 |
Patch3: e-smith-ldap-5.6.0-bz10936-TLS-and-ciphers.patch |
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 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
33 |
e-smith server and gateway software - LDAP module. |
e-smith server and gateway software - LDAP module. |
34 |
|
|
35 |
%changelog |
%changelog |
36 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-8.sme |
37 |
|
- add -update event [SME: 11140] |
38 |
|
- move ldap to systemd [SME: 11099] |
39 |
|
- move ldap.init to systemd [SME: 11096] |
40 |
|
|
41 |
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-7.sme |
42 |
- New protocol default as TLSv1.2 [SME: 10936] |
- New protocol default as TLSv1.2 [SME: 10936] |
43 |
New property TLSProtocolMin |
New property TLSProtocolMin |
1029 |
%patch1 -p1 |
%patch1 -p1 |
1030 |
%patch2 -p1 |
%patch2 -p1 |
1031 |
%patch3 -p1 |
%patch3 -p1 |
1032 |
|
%patch4 -p1 |
1033 |
|
|
1034 |
|
mkdir -p root/etc/e-smith/templates/etc/openldap/ssl |
1035 |
|
rm -rf root/service root/var/service root/etc/rc.d/init.d/supervise |
1036 |
|
|
1037 |
%build |
%build |
1038 |
perl createlinks |
perl createlinks |
1042 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1043 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
1044 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
1045 |
--file /var/service/ldap/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-certificate 'attr(0554,root,root)' \ |
1046 |
--file /var/service/ldap/log/run 'attr(0750,root,root)' \ |
--file /sbin/e-smith/systemd/ldap-prepare 'attr(0554,root,root)' \ |
1047 |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
--file /var/service/ldap/ldif-fix 'attr(0750,root,root)' \ |
1048 |
--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)' \ |
|
1049 |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
1050 |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
1051 |
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
1058 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
1059 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1060 |
|
|
1061 |
|
%pre |
1062 |
|
if [ $1 -gt 1 ] ; then |
1063 |
|
if [ -e /var/service/ldap/run ] ; then |
1064 |
|
/usr/bin/sv d ldap |
1065 |
|
/usr/bin/sv d ldap/log |
1066 |
|
fi |
1067 |
|
fi |