1 |
# $Id: e-smith-samba.spec,v 1.10 2020/06/24 03:45:25 jpp Exp $ |
# $Id: e-smith-samba.spec,v 1.22 2021/04/17 02:00:19 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 10 |
%define release 22 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
16 |
Patch3: e-smith-samba-2.6.0.bz10169.outlook2016domainmember.patch |
Patch3: e-smith-samba-2.6.0.bz10169.outlook2016domainmember.patch |
17 |
Patch4: e-smith-samba-2.6.0-bz10963-bz10576-minprot-SMB2.patch |
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 |
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 |
|
|
27 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
52 |
AutoReqProv: no |
AutoReqProv: no |
53 |
|
|
54 |
%changelog |
%changelog |
55 |
|
* Mon Apr 19 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-22.sme |
56 |
|
- netlogon.bat +x [SME: 11566] |
57 |
|
|
58 |
|
* Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-21.sme |
59 |
|
- add possibility to reenable allow execute always on ibays homes or everywhere [SME: 11555] |
60 |
|
|
61 |
|
* Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-20.sme |
62 |
|
- fix double entries for min protocol [SME: 11558] |
63 |
|
|
64 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
65 |
|
- clean rsyslog syntax for smbd and nmbd [SME: 11422] |
66 |
|
|
67 |
|
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
68 |
|
- fix noise in message log from nmbd and smbd redirected to dedicated logs [SME: 11349] |
69 |
|
|
70 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
71 |
|
- allow using user-create-profiledir action with temp or package-update events [SME: 11348] |
72 |
|
|
73 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
74 |
|
- fix log noise for smb.service [SME: 11157] |
75 |
|
|
76 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
77 |
|
- add Restart=always [SME: 11118] |
78 |
|
- add Restart=always [SME: 11117] |
79 |
|
|
80 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
81 |
|
- migrate nmbd to systemd [SME: 11118] |
82 |
|
- migrate smbd to systemd [SME: 11117] |
83 |
|
create generik smb.service service |
84 |
|
- create e-smith-samba-update event [SME: 11157] |
85 |
|
|
86 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
87 |
|
- Fix mutex locking [SME: 11199] |
88 |
|
|
89 |
|
* Thu Nov 26 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-12.sme |
90 |
|
- Fix pid directory [SME: 11198] |
91 |
|
|
92 |
|
* Mon Nov 16 2020 John Crisp <jcrisp@safeansoundit.co.uk> 2.6.0-11.sme |
93 |
|
- Add /etc/krb5.conf as template using templates from smeserver-samba |
94 |
|
- [SME: 11093] |
95 |
|
|
96 |
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
97 |
- remove win98pwdcache.reg from server-resources [SME: 9060] |
- remove win98pwdcache.reg from server-resources [SME: 9060] |
98 |
|
|
1311 |
%patch3 -p1 |
%patch3 -p1 |
1312 |
%patch4 -p1 |
%patch4 -p1 |
1313 |
%patch5 -p1 |
%patch5 -p1 |
1314 |
|
%patch6 -p1 |
1315 |
|
%patch7 -p1 |
1316 |
|
%patch8 -p1 |
1317 |
|
%patch9 -p1 |
1318 |
|
rm -rf root/service root/var/service root/etc/rc.d |
1319 |
|
%patch10 -p1 |
1320 |
|
%patch11 -p1 |
1321 |
|
%patch12 -p1 |
1322 |
|
|
1323 |
%build |
%build |
1324 |
perl createlinks |
perl createlinks |
1327 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1328 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1329 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
1330 |
--dir '/var/service/smbd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ |
1331 |
--file '/var/service/smbd/down' 'attr(0644,root,root)' \ |
--file '/sbin/e-smith/systemd/smbd-prepare' 'attr(0554,root,root)' \ |
1332 |
--file '/var/service/smbd/run' 'attr(0755,root,root)' \ |
--file '/home/e-smith/files/samba/netlogon/netlogon.bat' 'attr(0755,admin,admin)' \ |
|
--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)' \ |
|
1333 |
--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)' \ |
|
1334 |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
1335 |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
1336 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
1337 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
1338 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
1339 |
|
|
1340 |
|
%pre |
1341 |
|
if [ $1 -gt 1 ] ; then |
1342 |
|
if [ -e /var/service/smbd/run ] ; then |
1343 |
|
/usr/bin/sv d smbd |
1344 |
|
/usr/bin/sv d smbd/log |
1345 |
|
fi |
1346 |
|
fi |
1347 |
|
if [ $1 -gt 1 ] ; then |
1348 |
|
if [ -e /var/service/nmbd/run ] ; then |
1349 |
|
/usr/bin/sv d nmbd |
1350 |
|
/usr/bin/sv d nmbd/log |
1351 |
|
fi |
1352 |
|
fi |
1353 |
|
|
1354 |
|
|
1355 |
%clean |
%clean |
1356 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1357 |
|
|