automatic version update by autodist [release 4.13.0-1mamba;Wed Sep 30 2020]

This commit is contained in:
Automatic Build System 2024-01-05 17:37:22 +01:00
parent 287939f033
commit 1dfd600ddc

View File

@ -6,7 +6,7 @@
%define smbldap_tools_ver 0.9.2
Name: samba
Version: 4.12.7
Version: 4.13.0
Release: 1mamba
Summary: Samba provides seamless file and print services to SMB/CIFS clients
Group: System/Servers
@ -392,13 +392,13 @@ if [ $1 -ge 1 ]; then
getent group filesharing >/dev/null || \
groupadd filesharing -g %{filesharing_gid}
fi
if [ $1 -gt 1 ]; then
# update
# since samba 3.0.11 smbldap tools have changed,
# and configuration must be fixed accordingly
sed -i "s|\(smbldap[^ ]*\).pl|\1|" /etc/samba/smb.conf
fi
exit 0
#if [ $1 -gt 1 ]; then
## update
# # since samba 3.0.11 smbldap tools have changed,
# # and configuration must be fixed accordingly
# sed -i "s|\(smbldap[^ ]*\).pl|\1|" /etc/samba/smb.conf
#fi
:
%pre server
if [ $1 -ge 1 ]; then
@ -408,7 +408,9 @@ if [ $1 -ge 1 ]; then
useradd guest -c "Samba guest user" -d /dev/null \
-s /bin/false -u %{guest_uid} -g %{guest_gid} > /dev/null
fi
exit 0
%systemd_pre nmb
%systemd_pre smb
:
%post server
%systemd_post nmb
@ -437,23 +439,18 @@ exit 0
%systemd_preun smb
%systemd_preun nmb
#erase
if [ $1 -eq 0 ]; then
if [ -f /etc/openldap/slapd.conf ]; then
sed -i '/include.*samba.schema/d' /etc/openldap/slapd.conf
chgrp ldap /etc/openldap/slapd.conf
service openldap condrestart
fi
systemctl -q stop nmb
systemctl -q stop smb
systemctl -q disable nmb
systemctl -q disable smb
fi
exit 0
#if [ $1 -eq 0 ]; then
# if [ -f /etc/openldap/slapd.conf ]; then
# sed -i '/include.*samba.schema/d' /etc/openldap/slapd.conf
# chgrp ldap /etc/openldap/slapd.conf
# fi
#fi
:
%postun server
%systemd_postun_with_restart nmb
%systemd_postun_with_restart smb
exit 0
:
#%post swat
## new install
@ -479,10 +476,6 @@ exit 0
if [ $1 -ge 1 ]; then
# clean old sysv broken links
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
[ -e %{_initrddir}/winbind ] && {
systemctl -q enable winbind
systemctl -q restart winbind
}
fi
:
@ -495,7 +488,7 @@ auth sufficient pam_winbind.so use_first_pass' %{_sysconfdir}/pam.d/sy
grep "^account.*pam_winbind.so" %{_sysconfdir}/pam.d/system-auth >/dev/null || sed -i -e '/^account.*pam_unix/i\
account sufficient pam_winbind.so' %{_sysconfdir}/pam.d/system-auth
fi
exit 0
:
%preun winbind
%systemd_preun winbind
@ -504,7 +497,11 @@ if [ $1 -eq 0 ]; then
systemctl -q stop winbind
sed -i "/.*pam_winbind.so/d" %{_sysconfdir}/pam.d/system-auth
fi
exit 0
:
%pre -n samba4-server
%systemd_pre samba
:
%post -n samba4-server
/sbin/ldconfig
@ -514,14 +511,15 @@ if [ $1 -ge 1 ]; then
fi
:
%preun -n samba4-server
%systemd_preun_with_restart samba
:
%postun -n samba4-server
/sbin/ldconfig
%systemd_postun samba
:
%preun -n samba4-server
%systemd_preun samba
:
%post -n libsamba -p /sbin/ldconfig
%postun -n libsamba -p /sbin/ldconfig
@ -580,14 +578,16 @@ fi
%dir %{_libdir}/samba/idmap
%{_libdir}/samba/idmap/*.so
%{_libdir}/samba/vfs/*
%dir %{_datadir}/samba
%dir %{_datadir}/samba/admx
%{_datadir}/samba/admx/samba.admx
%dir %{_datadir}/samba/admx/en-US
%{_datadir}/samba/admx/en-US/samba.adml
%dir %{_datadir}/samba/mdssvc
%{_datadir}/samba/mdssvc/elasticsearch_mappings.json
#%dir %{_datadir}/samba/codepages
#%{_datadir}/samba/codepages/*
%dir %{_datadir}/samba/setup
%{_datadir}/samba/setup/*
%{_presetdir}/50-samba.preset
#%dir %{python3_sitearch}/samba
#%{python3_sitearch}/samba/*
%dir %{python3_sitearch}/samba
%{python3_sitearch}/samba/*
%dir /var/log/samba
@ -819,6 +819,9 @@ fi
%{_mandir}/man8/winbindd.*
%changelog
* Wed Sep 30 2020 Automatic Build System <autodist@mambasoft.it> 4.13.0-1mamba
- automatic version update by autodist
* Sat Sep 19 2020 Automatic Build System <autodist@mambasoft.it> 4.12.7-1mamba
- automatic version update by autodist