1 |
# $Id: e-smith-samba.spec,v 1.24 2015/11/30 19:20:37 stephdl Exp $ |
# $Id: e-smith-samba.spec,v 1.19 2021/02/22 04:52:16 jpp 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 1 |
%define release 19 |
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-samba-2.6.0-displayCharset.patch |
14 |
|
Patch1: e-smith-samba-2.6.0.bz9398.DeprecatedRsyslogSyntaxSamba.patch |
15 |
|
Patch2: e-smith-samba-2.6.0-bz9688.skipredirect.patch |
16 |
|
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 |
|
Patch10: e-smith-samba-2.6.0-bz11348-user-create-profiledir.patch |
24 |
|
Patch11: e-smith-samba-2.6.0-bz11349-logging.patch |
25 |
|
|
26 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
51 |
AutoReqProv: no |
AutoReqProv: no |
52 |
|
|
53 |
%changelog |
%changelog |
54 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
55 |
|
- clean rsyslog syntax for smbd and nmbd [SME: 11422] |
56 |
|
|
57 |
|
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
58 |
|
- fix noise in message log from nmbd and smbd redirected to dedicated logs [SME: 11349] |
59 |
|
|
60 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
61 |
|
- allow using user-create-profiledir action with temp or package-update events [SME: 11348] |
62 |
|
|
63 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
64 |
|
- fix log noise for smb.service [SME: 11157] |
65 |
|
|
66 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
67 |
|
- add Restart=always [SME: 11118] |
68 |
|
- add Restart=always [SME: 11117] |
69 |
|
|
70 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
71 |
|
- migrate nmbd to systemd [SME: 11118] |
72 |
|
- migrate smbd to systemd [SME: 11117] |
73 |
|
create generik smb.service service |
74 |
|
- create e-smith-samba-update event [SME: 11157] |
75 |
|
|
76 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
77 |
|
- Fix mutex locking [SME: 11199] |
78 |
|
|
79 |
|
* Thu Nov 26 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-12.sme |
80 |
|
- Fix pid directory [SME: 11198] |
81 |
|
|
82 |
|
* Mon Nov 16 2020 John Crisp <jcrisp@safeansoundit.co.uk> 2.6.0-11.sme |
83 |
|
- Add /etc/krb5.conf as template using templates from smeserver-samba |
84 |
|
- [SME: 11093] |
85 |
|
|
86 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
87 |
|
- remove win98pwdcache.reg from server-resources [SME: 9060] |
88 |
|
|
89 |
|
* Tue Jun 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
90 |
|
- set min server and client protocol SMB2 [SME: 10576] |
91 |
|
add check so max always greater than min |
92 |
|
- add port 445 if min server protocol is SMB2 or SMB3 [SME: 10963] |
93 |
|
|
94 |
|
* Fri Feb 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
95 |
|
- fix typo in /server-resources/regedit/win10samba.reg [SME: 10515] |
96 |
|
|
97 |
|
* Fri Mar 24 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
98 |
|
- fix outlook error code 0x8004011c [SME: 10169] |
99 |
|
- when setting up and email account on a win10 computer joined to a domain (with roaming profiles) |
100 |
|
|
101 |
|
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
102 |
|
- add systemd skip redirect [SME: 9688] |
103 |
|
|
104 |
|
* Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-4.sme |
105 |
|
- Fix deprecated syntax '~' in rsyslog [SME: 9398] |
106 |
|
- added e-smith-samba-2.6.0.bz9398.DeprecatedRsyslogSyntaxSamba.patch |
107 |
|
|
108 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-3.sme |
109 |
|
- Rebuild for [SME: 9393] |
110 |
|
|
111 |
|
* Tue Apr 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
112 |
|
- dropped display charset option [SME: 9440] |
113 |
|
|
114 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
115 |
- Initial release to sme10 |
- Initial release to sme10 |
116 |
|
|
1295 |
|
|
1296 |
%prep |
%prep |
1297 |
%setup |
%setup |
1298 |
|
%patch0 -p1 |
1299 |
|
%patch1 -p1 |
1300 |
|
%patch2 -p1 |
1301 |
|
%patch3 -p1 |
1302 |
|
%patch4 -p1 |
1303 |
|
%patch5 -p1 |
1304 |
|
%patch6 -p1 |
1305 |
|
%patch7 -p1 |
1306 |
|
%patch8 -p1 |
1307 |
|
%patch9 -p1 |
1308 |
|
rm -rf root/service root/var/service root/etc/rc.d |
1309 |
|
%patch10 -p1 |
1310 |
|
%patch11 -p1 |
1311 |
|
|
1312 |
%build |
%build |
1313 |
perl createlinks |
perl createlinks |
1316 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1317 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1318 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
1319 |
--dir '/var/service/smbd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ |
1320 |
--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)' \ |
|
1321 |
--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)' \ |
|
1322 |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
1323 |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
1324 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
1325 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
1326 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
1327 |
|
|
1328 |
|
%pre |
1329 |
|
if [ $1 -gt 1 ] ; then |
1330 |
|
if [ -e /var/service/smbd/run ] ; then |
1331 |
|
/usr/bin/sv d smbd |
1332 |
|
/usr/bin/sv d smbd/log |
1333 |
|
fi |
1334 |
|
fi |
1335 |
|
if [ $1 -gt 1 ] ; then |
1336 |
|
if [ -e /var/service/nmbd/run ] ; then |
1337 |
|
/usr/bin/sv d nmbd |
1338 |
|
/usr/bin/sv d nmbd/log |
1339 |
|
fi |
1340 |
|
fi |
1341 |
|
|
1342 |
|
|
1343 |
%clean |
%clean |
1344 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1345 |
|
|