1 |
# $Id: e-smith-samba.spec,v 1.13 2020/11/26 00:11:04 jcrisp Exp $ |
# $Id: e-smith-samba.spec,v 1.17 2021/01/03 06:59:48 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 13 |
%define release 17 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
19 |
Patch6: e-smith-samba-2.6.0-bz11093-add-krb5-template.patch |
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 |
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 |
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 |
|
|
25 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
50 |
AutoReqProv: no |
AutoReqProv: no |
51 |
|
|
52 |
%changelog |
%changelog |
53 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
54 |
|
- allow using user-create-profiledir action with temp or package-update events [SME: 11348] |
55 |
|
|
56 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
57 |
|
- fix log noise for smb.service [SME: 11157] |
58 |
|
|
59 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
60 |
|
- add Restart=always [SME: 11118] |
61 |
|
- add Restart=always [SME: 11117] |
62 |
|
|
63 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
64 |
|
- migrate nmbd to systemd [SME: 11118] |
65 |
|
- migrate smbd to systemd [SME: 11117] |
66 |
|
create generik smb.service service |
67 |
|
- create e-smith-samba-update event [SME: 11157] |
68 |
|
|
69 |
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-13.sme |
70 |
- Fix mutex locking [SME: 11199] |
- Fix mutex locking [SME: 11199] |
71 |
|
|
1297 |
%patch6 -p1 |
%patch6 -p1 |
1298 |
%patch7 -p1 |
%patch7 -p1 |
1299 |
%patch8 -p1 |
%patch8 -p1 |
1300 |
|
%patch9 -p1 |
1301 |
|
rm -rf root/service root/var/service root/etc/rc.d |
1302 |
|
%patch10 -p1 |
1303 |
|
|
1304 |
%build |
%build |
1305 |
perl createlinks |
perl createlinks |
1308 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1309 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
1310 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
1311 |
--dir '/var/service/smbd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ |
1312 |
--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)' \ |
|
1313 |
--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)' \ |
|
1314 |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
--dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ |
1315 |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
--file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ |
1316 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
1317 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
1318 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
1319 |
|
|
1320 |
|
%pre |
1321 |
|
if [ $1 -gt 1 ] ; then |
1322 |
|
if [ -e /var/service/smbd/run ] ; then |
1323 |
|
/usr/bin/sv d smbd |
1324 |
|
/usr/bin/sv d smbd/log |
1325 |
|
fi |
1326 |
|
fi |
1327 |
|
if [ $1 -gt 1 ] ; then |
1328 |
|
if [ -e /var/service/nmbd/run ] ; then |
1329 |
|
/usr/bin/sv d nmbd |
1330 |
|
/usr/bin/sv d nmbd/log |
1331 |
|
fi |
1332 |
|
fi |
1333 |
|
|
1334 |
|
|
1335 |
%clean |
%clean |
1336 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1337 |
|
|