1 |
# $Id: e-smith-samba.spec,v 1.5 2016/07/22 10:14:18 unnilennium Exp $ |
# $Id: e-smith-samba.spec,v 1.14 2020/12/16 12:35:56 jcrisp Exp $ |
2 |
|
|
3 |
Summary: e-smith specific Samba configuration files and templates |
Summary: e-smith specific Samba configuration files and templates |
4 |
%define name e-smith-samba |
%define name e-smith-samba |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 6 |
%define release 14 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch0: e-smith-samba-2.6.0-displayCharset.patch |
Patch0: e-smith-samba-2.6.0-displayCharset.patch |
14 |
Patch1: e-smith-samba-2.6.0.bz9398.DeprecatedRsyslogSyntaxSamba.patch |
Patch1: e-smith-samba-2.6.0.bz9398.DeprecatedRsyslogSyntaxSamba.patch |
15 |
Patch2: e-smith-samba-2.6.0-bz9688.skipredirect.patch |
Patch2: e-smith-samba-2.6.0-bz9688.skipredirect.patch |
16 |
Patch3: e-smith-samba-2.6.0.bz9038.W10_registry.patch |
Patch3: e-smith-samba-2.6.0.bz10169.outlook2016domainmember.patch |
17 |
|
Patch4: e-smith-samba-2.6.0-bz10963-bz10576-minprot-SMB2.patch |
18 |
|
Patch5: e-smith-samba-2.6.0-bz9060-remove-win98-reg.patch |
19 |
|
Patch6: e-smith-samba-2.6.0-bz11093-add-krb5-template.patch |
20 |
|
Patch7: e-smith-samba-2.6.0-bz11198-fix-pid-dir.patch |
21 |
|
Patch8: e-smith-samba-2.6.0-bz11199-fix-mutex-locking.patch |
22 |
|
Patch9: e-smith-samba-2.6.0-bz11118-bz11117-bz11157-systemd-update.patch |
23 |
|
|
24 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
49 |
AutoReqProv: no |
AutoReqProv: no |
50 |
|
|
51 |
%changelog |
%changelog |
52 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
53 |
|
- migrate nmbd to systemd [SME: 11118] |
54 |
|
- migrate smbd to systemd [SME: 11117] |
55 |
|
create generik smb.service service |
56 |
|
- create e-smith-samba-update event [SME: 11157] |
57 |
|
|
58 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
59 |
|
- Fix mutex locking [SME: 11199] |
60 |
|
|
61 |
|
* Thu Nov 26 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-12.sme |
62 |
|
- Fix pid directory [SME: 11198] |
63 |
|
|
64 |
|
* Mon Nov 16 2020 John Crisp <jcrisp@safeansoundit.co.uk> 2.6.0-11.sme |
65 |
|
- Add /etc/krb5.conf as template using templates from smeserver-samba |
66 |
|
- [SME: 11093] |
67 |
|
|
68 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
69 |
|
- remove win98pwdcache.reg from server-resources [SME: 9060] |
70 |
|
|
71 |
|
* Tue Jun 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
72 |
|
- set min server and client protocol SMB2 [SME: 10576] |
73 |
|
add check so max always greater than min |
74 |
|
- add port 445 if min server protocol is SMB2 or SMB3 [SME: 10963] |
75 |
|
|
76 |
|
* Fri Feb 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
77 |
|
- fix typo in /server-resources/regedit/win10samba.reg [SME: 10515] |
78 |
|
|
79 |
* Fri Mar 24 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
* Fri Mar 24 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
80 |
- fix outlook error code 0x8004011c [SME: 10169] |
- fix outlook error code 0x8004011c [SME: 10169] |
81 |
- when setting up and email account on a win10 computer joined to a domain (with roaming profiles) |
- when setting up and email account on a win10 computer joined to a domain (with roaming profiles) |
1281 |
%patch1 -p1 |
%patch1 -p1 |
1282 |
%patch2 -p1 |
%patch2 -p1 |
1283 |
%patch3 -p1 |
%patch3 -p1 |
1284 |
|
%patch4 -p1 |
1285 |
|
%patch5 -p1 |
1286 |
|
%patch6 -p1 |
1287 |
|
%patch7 -p1 |
1288 |
|
%patch8 -p1 |
1289 |
|
%patch9 -p1 |
1290 |
|
rm -rf root/service root/var/service root/etc/rc.d |
1291 |
|
|
1292 |
%build |
%build |
1293 |
perl createlinks |
perl createlinks |
1296 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1297 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1298 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
1299 |
--dir '/var/service/smbd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ |
1300 |
--file '/var/service/smbd/down' 'attr(0644,root,root)' \ |
--file '/sbin/e-smith/systemd/smbd-prepare' 'attr(0554,root,root)' \ |
|
--file '/var/service/smbd/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/smbd/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/service/smbd/log' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/smbd/log/run' 'attr(0755,root,root)' \ |
|
1301 |
--dir '/var/log/smbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/smbd' 'attr(2750,smelog,smelog)' \ |
|
--dir '/var/service/nmbd' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/nmbd/down' 'attr(0644,root,root)' \ |
|
|
--file '/var/service/nmbd/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/nmbd/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/service/nmbd/log' 'attr(1755,root,root)' \ |
|
|
--file '/var/service/nmbd/log/run' 'attr(0755,root,root)' \ |
|
1302 |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
1303 |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
1304 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
1305 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
1306 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
1307 |
|
|
1308 |
|
%pre |
1309 |
|
if [ $1 -gt 1 ] ; then |
1310 |
|
if [ -e /var/service/smbd/run ] ; then |
1311 |
|
/usr/bin/sv d smbd |
1312 |
|
/usr/bin/sv d smbd/log |
1313 |
|
fi |
1314 |
|
fi |
1315 |
|
if [ $1 -gt 1 ] ; then |
1316 |
|
if [ -e /var/service/nmbd/run ] ; then |
1317 |
|
/usr/bin/sv d nmbd |
1318 |
|
/usr/bin/sv d nmbd/log |
1319 |
|
fi |
1320 |
|
fi |
1321 |
|
|
1322 |
|
|
1323 |
%clean |
%clean |
1324 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1325 |
|
|