1 |
# $Id: e-smith-samba.spec,v 1.4 2016/07/14 21:39:06 stephdl Exp $ |
# $Id: e-smith-samba.spec,v 1.29 2022/11/29 21:28:31 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 5 |
%define release 28 |
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.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 |
|
Patch12: e-smith-samba-2.6.0-bz11555.patch |
26 |
|
Patch13: e-smith-samba-2.6.0.bz11725.create_v6_profile_dir.patch |
27 |
|
Patch14: e-smith-samba-2.6.0.bz11725.delete_v6_profile_dir.patch |
28 |
|
Patch15: e-smith-samba-2.6.0.bz11725.fix_typo_v6_profile_dir.patch |
29 |
|
Patch16: e-smith-samba-2.6.0-bz12231-account-reuse.patch |
30 |
|
Patch17: e-smith-samba-2.6.0-bz12462.patch |
31 |
|
|
32 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
33 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
34 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
57 |
AutoReqProv: no |
AutoReqProv: no |
58 |
|
|
59 |
%changelog |
%changelog |
60 |
|
* Sat Apr 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.0-28.sme |
61 |
|
- fix regex for SID [SME: 12462] |
62 |
|
|
63 |
|
* Tue Nov 29 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-27.sme |
64 |
|
- Fix fail to join the domain [SME: 12231] |
65 |
|
patch from bunkobugsy ; Fix from Nico Tiana |
66 |
|
|
67 |
|
* Wed Nov 03 2021 Terry Fage <terry@fage.id.au> 2.6.0-26.sme |
68 |
|
- samba fix typo in delete v6 profile dir win10 [SME: 11725] |
69 |
|
|
70 |
|
* Tue Nov 02 2021 Terry Fage <terry@fage.id.au> 2.6.0-25.sme |
71 |
|
- samba delete v6 profile dir win10 [SME: 11725] |
72 |
|
|
73 |
|
* Mon Nov 01 2021 Terry Fage <terry@fage.id.au> 2.6.0-24.sme |
74 |
|
- samba create v6 profile dir win10 [SME: 11725] |
75 |
|
|
76 |
|
* Mon Apr 19 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-23.sme |
77 |
|
- netlogon.bat +x [SME: 11566] |
78 |
|
|
79 |
|
* Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-21.sme |
80 |
|
- add possibility to reenable allow execute always on ibays homes or everywhere [SME: 11555] |
81 |
|
|
82 |
|
* Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-20.sme |
83 |
|
- fix double entries for min protocol [SME: 11558] |
84 |
|
|
85 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
86 |
|
- clean rsyslog syntax for smbd and nmbd [SME: 11422] |
87 |
|
|
88 |
|
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
89 |
|
- fix noise in message log from nmbd and smbd redirected to dedicated logs [SME: 11349] |
90 |
|
|
91 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
92 |
|
- allow using user-create-profiledir action with temp or package-update events [SME: 11348] |
93 |
|
|
94 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
95 |
|
- fix log noise for smb.service [SME: 11157] |
96 |
|
|
97 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
98 |
|
- add Restart=always [SME: 11118] |
99 |
|
- add Restart=always [SME: 11117] |
100 |
|
|
101 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
102 |
|
- migrate nmbd to systemd [SME: 11118] |
103 |
|
- migrate smbd to systemd [SME: 11117] |
104 |
|
create generik smb.service service |
105 |
|
- create e-smith-samba-update event [SME: 11157] |
106 |
|
|
107 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
108 |
|
- Fix mutex locking [SME: 11199] |
109 |
|
|
110 |
|
* Thu Nov 26 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-12.sme |
111 |
|
- Fix pid directory [SME: 11198] |
112 |
|
|
113 |
|
* Mon Nov 16 2020 John Crisp <jcrisp@safeansoundit.co.uk> 2.6.0-11.sme |
114 |
|
- Add /etc/krb5.conf as template using templates from smeserver-samba |
115 |
|
- [SME: 11093] |
116 |
|
|
117 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
118 |
|
- remove win98pwdcache.reg from server-resources [SME: 9060] |
119 |
|
|
120 |
|
* Tue Jun 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
121 |
|
- set min server and client protocol SMB2 [SME: 10576] |
122 |
|
add check so max always greater than min |
123 |
|
- add port 445 if min server protocol is SMB2 or SMB3 [SME: 10963] |
124 |
|
|
125 |
|
* Fri Feb 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
126 |
|
- fix typo in /server-resources/regedit/win10samba.reg [SME: 10515] |
127 |
|
|
128 |
|
* Fri Mar 24 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
129 |
|
- fix outlook error code 0x8004011c [SME: 10169] |
130 |
|
- when setting up and email account on a win10 computer joined to a domain (with roaming profiles) |
131 |
|
|
132 |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
133 |
- add systemd skip redirect [SME: 9688] |
- add systemd skip redirect [SME: 9688] |
134 |
|
|
309 |
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-19.sme |
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-19.sme |
310 |
- Add slapd support [SME: 6228] |
- Add slapd support [SME: 6228] |
311 |
|
|
312 |
* Wed Jul 08 2010 Shad L. Lords <slords@mail.com> 2.2.0-18.sme |
* Thu Jul 08 2010 Shad L. Lords <slords@mail.com> 2.2.0-18.sme |
313 |
- Remove require strong key part of regedit file [SME: 6119] |
- Remove require strong key part of regedit file [SME: 6119] |
314 |
|
|
315 |
* Wed Jun 23 2010 Shad L. Lords <slords@mail.com> 2.2.0-17.sme |
* Wed Jun 23 2010 Shad L. Lords <slords@mail.com> 2.2.0-17.sme |
410 |
* Wed Oct 10 2007 Charlie Brady <charlie_brady@mitel.com> 1.14.0-31 |
* Wed Oct 10 2007 Charlie Brady <charlie_brady@mitel.com> 1.14.0-31 |
411 |
- Delete printer tdb file on printer delete. [SME: 3336] |
- Delete printer tdb file on printer delete. [SME: 3336] |
412 |
|
|
413 |
* Thu Jun 2 2007 Shad L. Lords <slords@mail.com> 1.14.0-30 |
* Sat Jun 2 2007 Shad L. Lords <slords@mail.com> 1.14.0-30 |
414 |
- revert last change. Breaks sme8 and is caught by pass check lib. |
- revert last change. Breaks sme8 and is caught by pass check lib. |
415 |
|
|
416 |
* Sat Jun 2 2007 Shad L. Lords <slords@mail.com> 1.14.0-29 |
* Sat Jun 2 2007 Shad L. Lords <slords@mail.com> 1.14.0-29 |
1329 |
%patch0 -p1 |
%patch0 -p1 |
1330 |
%patch1 -p1 |
%patch1 -p1 |
1331 |
%patch2 -p1 |
%patch2 -p1 |
1332 |
|
%patch3 -p1 |
1333 |
|
%patch4 -p1 |
1334 |
|
%patch5 -p1 |
1335 |
|
%patch6 -p1 |
1336 |
|
%patch7 -p1 |
1337 |
|
%patch8 -p1 |
1338 |
|
%patch9 -p1 |
1339 |
|
rm -rf root/service root/var/service root/etc/rc.d |
1340 |
|
%patch10 -p1 |
1341 |
|
%patch11 -p1 |
1342 |
|
%patch12 -p1 |
1343 |
|
%patch13 -p1 |
1344 |
|
%patch14 -p1 |
1345 |
|
%patch15 -p1 |
1346 |
|
%patch16 -p1 |
1347 |
|
%patch17 -p1 |
1348 |
|
|
1349 |
%build |
%build |
1350 |
perl createlinks |
perl createlinks |
1353 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1354 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1355 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
1356 |
--dir '/var/service/smbd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ |
1357 |
--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)' \ |
|
1358 |
--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)' \ |
|
1359 |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
1360 |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
1361 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
1362 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
1363 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
1364 |
|
|
1365 |
|
%pre |
1366 |
|
if [ $1 -gt 1 ] ; then |
1367 |
|
if [ -e /var/service/smbd/run ] ; then |
1368 |
|
/usr/bin/sv d smbd |
1369 |
|
/usr/bin/sv d smbd/log |
1370 |
|
fi |
1371 |
|
fi |
1372 |
|
if [ $1 -gt 1 ] ; then |
1373 |
|
if [ -e /var/service/nmbd/run ] ; then |
1374 |
|
/usr/bin/sv d nmbd |
1375 |
|
/usr/bin/sv d nmbd/log |
1376 |
|
fi |
1377 |
|
fi |
1378 |
|
|
1379 |
|
|
1380 |
%clean |
%clean |
1381 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1382 |
|
|