forked from pool/samba
Accepting request 597770 from network:samba:STABLE
OBS-URL: https://build.opensuse.org/request/show/597770 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/samba?expand=0&rev=234
This commit is contained in:
commit
2a37adf6b4
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 11 14:55:09 UTC 2018 - aaptel@suse.com
|
||||||
|
|
||||||
|
- Use new foreground execution flags for systemd samba daemons;
|
||||||
|
(bsc#1088574); (bsc#1071090); (bsc#1065551);
|
||||||
|
+ Add %post scriptlet to clear old sysconfig flags
|
||||||
|
- Update vendor-files to commit 880b3e7.
|
||||||
|
+ Set samba sysconfig template variables to ""
|
||||||
|
+ Add required daemon flags directly to systemd unit
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 26 22:37:15 UTC 2018 - jengelh@inai.de
|
Mon Mar 26 22:37:15 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
30
samba.spec
30
samba.spec
@ -28,20 +28,7 @@
|
|||||||
|
|
||||||
%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d}
|
%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d}
|
||||||
|
|
||||||
%if 0%{?sle_version} >= 150000 && !0%{?is_opensuse}
|
|
||||||
# SLE15 dropped python2 (bsc#1082139)
|
|
||||||
# disabling all python things until full python3 port is done
|
|
||||||
# this removes:
|
|
||||||
# - contents of package samba-python
|
|
||||||
# - contents of package libsamba-policy0
|
|
||||||
# - contents of package libsamba-policy-devel
|
|
||||||
# - file libsamba-python-samba4.so from pkg samba-libs
|
|
||||||
# - file libsamba-net-samba4.so from pkg samba-libs
|
|
||||||
# - bin & manpage of smbtorture from pkg samba-test
|
|
||||||
%define with_python 0
|
|
||||||
%else
|
|
||||||
%define with_python 1
|
%define with_python 1
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?sle_version} >= 150000 && !0%{?is_opensuse}
|
%if 0%{?sle_version} >= 150000 && !0%{?is_opensuse}
|
||||||
# SLE15 dropped perl-Parse-Yapp
|
# SLE15 dropped perl-Parse-Yapp
|
||||||
@ -58,7 +45,7 @@
|
|||||||
%define build_ceph 1
|
%define build_ceph 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define vendor_files_git_vers git.9c6e2d0
|
%define vendor_files_git_vers git.880b3e7
|
||||||
|
|
||||||
%define talloc_version 2.1.10
|
%define talloc_version 2.1.10
|
||||||
%define tevent_version 0.9.34
|
%define tevent_version 0.9.34
|
||||||
@ -67,7 +54,7 @@
|
|||||||
|
|
||||||
%global with_mitkrb5 1
|
%global with_mitkrb5 1
|
||||||
%global with_dc 0
|
%global with_dc 0
|
||||||
%if 0%{?suse_version} > 1320 && 0%{?is_opensuse}
|
%if 0%{?suse_version} > 1320
|
||||||
%ifnarch ppc
|
%ifnarch ppc
|
||||||
%global with_dc 1
|
%global with_dc 1
|
||||||
%endif
|
%endif
|
||||||
@ -1367,6 +1354,19 @@ getent group ntadmin >/dev/null || groupadd -g 71 -o -r ntadmin || :
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
|
|
||||||
|
# bsc#1088574; bsc#1071090; bsc#1065551
|
||||||
|
if [ -f %{_unitdir}/smb.service ] && \
|
||||||
|
grep -qE '^ExecStart=.*smbd.*foreground.*no-process-group' %{_unitdir}/smb.service && \
|
||||||
|
[ -f %{_sysconfdir}/sysconfig/samba ] && \
|
||||||
|
grep -q -- '-D' %{_sysconfdir}/sysconfig/samba
|
||||||
|
then
|
||||||
|
echo using foreground execution for samba systemd units
|
||||||
|
echo overwriting samba sysconfig to remove daemon related flags...
|
||||||
|
sed -i 's/-D *//g' %{_sysconfdir}/sysconfig/samba
|
||||||
|
sed -i 's/-F *//g' %{_sysconfdir}/sysconfig/samba
|
||||||
|
fi
|
||||||
|
|
||||||
%if %{with_dc}
|
%if %{with_dc}
|
||||||
%service_add_post nmb.service smb.service samba-ad-dc.service
|
%service_add_post nmb.service smb.service samba-ad-dc.service
|
||||||
%else
|
%else
|
||||||
|
3
vendor-files-git.880b3e7.tar.bz2
Normal file
3
vendor-files-git.880b3e7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:42c430e99a5f20d230ff088a3a834f11068d234a1e31ed5a5c27ae77caa023f6
|
||||||
|
size 54269
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ec33aa483190ae1494e25b8e1bb867580028166ccdefdabf04dc9b92f463b72e
|
|
||||||
size 54217
|
|
Loading…
Reference in New Issue
Block a user