From f50d1b53d2f4d182403373c67b03b37767f4d9517ff6eadfccdfa4327ddfd484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 25 Sep 2015 13:42:08 +0000 Subject: [PATCH] Add missing sysconfig file header; (bnc#947361). OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=500 --- patches.tar.bz2 | 4 ++-- samba.changes | 5 +++++ samba.spec | 18 ++++++++++++------ vendor-files.tar.bz2 | 4 ++-- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/patches.tar.bz2 b/patches.tar.bz2 index f3be5a5..d591063 100644 --- a/patches.tar.bz2 +++ b/patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b5b8d6962ed807f9fb932ed70063bcef81bc4edae8f9bddd11e6bdf3f9c4f03e -size 29274 +oid sha256:c72a9314d0ceab45dfac826730e748f724c13a51be4f100a5ed2b2f9539b688e +size 29279 diff --git a/samba.changes b/samba.changes index f3773ad..f3a50cb 100644 --- a/samba.changes +++ b/samba.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 25 11:58:02 UTC 2015 - lmuelle@suse.com + +- Add missing sysconfig file header; (bnc#947361). + ------------------------------------------------------------------- Tue Sep 22 13:13:02 UTC 2015 - lmuelle@suse.com diff --git a/samba.spec b/samba.spec index d740748..f079d53 100644 --- a/samba.spec +++ b/samba.spec @@ -144,7 +144,7 @@ BuildRequires: systemd-devel %else %define build_make_smp_mflags %{?jobs:-j%jobs} %endif -%define SOURCE_TIMESTAMP 3490 +%define SOURCE_TIMESTAMP 3492 %define BRANCH %{version} %global with_mitkrb5 1 %global with_dc 0 @@ -153,7 +153,6 @@ Release: 0 Url: http://www.samba.org/ Provides: samba-gplv3 = %{version} Obsoletes: samba-gplv3 < %{version} -Requires: samba-client >= %{version} %if 0%{?suse_version} > 1030 Recommends: cron Recommends: logrotate @@ -175,6 +174,7 @@ PreReq: grep %if 0%{?suse_version} > 1220 PreReq: %{fillup_prereq} %endif +PreReq: samba-client >= %{version} # Choose some features / extra packages here ############################################ %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120 @@ -420,7 +420,6 @@ Provides: samba-gplv3-winbind = %{version} Obsoletes: samba-gplv3-winbind < %{version} Provides: samba-client:/usr/sbin/winbindd Requires: %{libwbclient_name} = %{version}-%{release} -Requires: samba-client >= %{version} %if 0%{?suse_version} Requires: pam-config %endif @@ -435,6 +434,8 @@ PreReq: %{?insserv_prereq} PreReq: /sbin/ldconfig PreReq: /usr/sbin/groupadd PreReq: coreutils +PreReq: grep +PreReq: samba-client >= %{version} %description winbind This is the winbind-daemon and the wbinfo-tool. @@ -1453,6 +1454,10 @@ getent group ntadmin >/dev/null || groupadd -g 71 -o -r ntadmin || : %if 0%{?suse_version} > 1220 %service_add_post nmb.service smb.service %{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf +grep -m 1 -q "^## Path:" %{_sysconfdir}/sysconfig/samba 2>/dev/null || ( \ + cat %{_var}/adm/fillup-templates/sysconfig.samba-client %{_sysconfdir}/sysconfig/samba 2>/dev/null \ + >%{_var}/adm/fillup-templates/sysconfig.samba-client.merged + mv %{_var}/adm/fillup-templates/sysconfig.samba-client.merged %{_sysconfdir}/sysconfig/samba ) %fillup_only %endif @@ -1524,9 +1529,6 @@ fi if ! test -e %{_bindir}/get_printing_ticket; then ln -fs %{_bindir}/smbspool %{cups_lib_dir}/backend/smb fi -%if 0%{?suse_version} > 1220 -%{fillup_only -ans samba client} -%endif %{?fillup_only:%{fillup_only -nsd dhcp samba-client network}} %postun client @@ -1608,6 +1610,10 @@ fi %if 0%{?suse_version} > 1220 %service_add_post winbind.service %{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf +grep -m 1 -q "^## Path:" %{_sysconfdir}/sysconfig/samba 2>/dev/null || ( \ + cat %{_var}/adm/fillup-templates/sysconfig.samba-client %{_sysconfdir}/sysconfig/samba 2>/dev/null \ + >%{_var}/adm/fillup-templates/sysconfig.samba-client.merged + mv %{_var}/adm/fillup-templates/sysconfig.samba-client.merged %{_sysconfdir}/sysconfig/samba ) %{fillup_only -ans samba winbind} %endif diff --git a/vendor-files.tar.bz2 b/vendor-files.tar.bz2 index 3d91612..75cfa97 100644 --- a/vendor-files.tar.bz2 +++ b/vendor-files.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ce801dae444ddf8c66358801678e1e460465a86836bad03c1e786fe68359e38 -size 52858 +oid sha256:9f660ee6421601bd8dedb081326b5bafae0273ce1ddf1f51ba887a20f5b5bd21 +size 53073