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