--- rpms/e-smith-samba/sme10/e-smith-samba.spec 2020/11/26 00:11:04 1.13 +++ rpms/e-smith-samba/sme10/e-smith-samba.spec 2021/01/02 05:41:40 1.16 @@ -1,10 +1,10 @@ -# $Id: e-smith-samba.spec,v 1.12 2020/11/16 15:44:39 jcrisp Exp $ +# $Id: e-smith-samba.spec,v 1.15 2021/01/02 04:32:48 jpp Exp $ Summary: e-smith specific Samba configuration files and templates %define name e-smith-samba Name: %{name} %define version 2.6.0 -%define release 12 +%define release 15 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -18,6 +18,8 @@ Patch4: e-smith-samba-2.6.0-bz10963-bz10 Patch5: e-smith-samba-2.6.0-bz9060-remove-win98-reg.patch Patch6: e-smith-samba-2.6.0-bz11093-add-krb5-template.patch Patch7: e-smith-samba-2.6.0-bz11198-fix-pid-dir.patch +Patch8: e-smith-samba-2.6.0-bz11199-fix-mutex-locking.patch +Patch9: e-smith-samba-2.6.0-bz11118-bz11117-bz11157-systemd-update.patch Obsoletes: e-smith-netlogon BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot @@ -47,6 +49,19 @@ Requires: /usr/bin/tdbbackup AutoReqProv: no %changelog +* Sat Jan 02 2021 Jean-Philipe Pialasse 2.6.0-15.sme +- add Restart=always [SME: 11118] +- add Restart=always [SME: 11117] + +* Fri Jan 01 2021 Jean-Philipe Pialasse 2.6.0-14.sme +- migrate nmbd to systemd [SME: 11118] +- migrate smbd to systemd [SME: 11117] + create generik smb.service service +- create e-smith-samba-update event [SME: 11157] + +* Wed Dec 16 2020 John Crisp 2.6.0-13.sme +- Fix mutex locking [SME: 11199] + * Thu Nov 26 2020 John Crisp 2.6.0-12.sme - Fix pid directory [SME: 11198] @@ -1274,6 +1289,9 @@ Configuration files and templates for th %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 +%patch9 -p1 +rm -rf root/service root/var/service root/etc/rc.d %build perl createlinks @@ -1282,25 +1300,30 @@ perl createlinks rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist \ - --dir '/var/service/smbd' 'attr(1755,root,root)' \ - --file '/var/service/smbd/down' 'attr(0644,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)' \ + --file '/sbin/e-smith/systemd/nmbd-prepare' 'attr(0554,root,root)' \ + --file '/sbin/e-smith/systemd/smbd-prepare' 'attr(0554,root,root)' \ --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)' \ --dir '/var/log/nmbd' 'attr(2750,smelog,smelog)' \ --file '/sbin/e-smith/samba_check_password' 'attr(0555,root,root)' \ $RPM_BUILD_ROOT \ > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist +%pre +if [ $1 -gt 1 ] ; then + if [ -e /var/service/smbd/run ] ; then + /usr/bin/sv d smbd + /usr/bin/sv d smbd/log + fi +fi +if [ $1 -gt 1 ] ; then + if [ -e /var/service/nmbd/run ] ; then + /usr/bin/sv d nmbd + /usr/bin/sv d nmbd/log + fi +fi + + %clean rm -rf $RPM_BUILD_ROOT