- Add krb5rcache directory to the winbind package; (bnc#870607).

- Cleanup and consolidate the sysconfig and systemd service files.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=396
This commit is contained in:
Lars Müller 2014-04-01 16:31:01 +00:00 committed by Git OBS Bridge
parent a9de609af9
commit 48cbe4ed6f
4 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebd63d3e39f8d47ec9924b51b6a37de6d7b76f155969ea7ef497a5351a3ae6ac
size 190179
oid sha256:2687700075a2549d9a4215d339ca2df74317cd9fe42243ba20435ddf334fa26f
size 191895

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 1 15:20:21 UTC 2014 - lmuelle@suse.com
- Add krb5rcache directory to the winbind package; (bnc#870607).
- Cleanup and consolidate the sysconfig and systemd service files.
-------------------------------------------------------------------
Fri Mar 28 11:45:03 UTC 2014 - ddiss@suse.com

View File

@ -144,7 +144,7 @@ BuildRequires: systemd
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 3213
%define SOURCE_TIMESTAMP 3216
%define BRANCH %{version}
%global with_mitkrb5 1
%global with_dc 0
@ -1282,6 +1282,7 @@ install -d -m 0755 -p \
%{buildroot}/%{LOGDIR} \
%{buildroot}/%{PIDDIR} \
%{buildroot}/%{_var}/adm/fillup-templates \
%{buildroot}/%{_var}/cache/krb5rcache \
%{buildroot}/%{_var}/run \
%{buildroot}/%{DOCDIR} \
%{buildroot}/%{DOCBOOKDIR} \
@ -1356,24 +1357,10 @@ startScripts="smb nmb winbind"
%endif
%if 0%{?suse_version} > 1220
for srv_name in nmb smb winbind; do
sed -e "s@PIDFile=/run/${srv_name}d.pid@PIDFile=/run/samba/${srv_name}d.pid@g" \
-e 's@Type=forking@Type=forking\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' \
../packaging/systemd/${srv_name}.service \
>%{buildroot}/%{_unitdir}/${srv_name}.service
echo -en "## Type: string
## Default: \"-D\"
## ServiceRestart:·${srv_name}
${srv_name^^}DOPTIONS=\"-D\"\n" >>SUSE.sysconfig.${srv_name}
install -m 0644 -p systemd/${srv_name}.service %{buildroot}/%{_unitdir}
ln -s ../../%{_sbindir}/service %{buildroot}/%{_sbindir}/rc${srv_name}
done
sed -i -e "s@EnvironmentFile=-/etc/sysconfig/samba@EnvironmentFile=-/etc/sysconfig/samba\nExecStartPre=/usr/share/samba/update-apparmor-samba-profile@g" \
%{buildroot}/%{_unitdir}/smb.service
head -n 2 ../packaging/systemd/samba.sysconfig > \
%{buildroot}%_var/adm/fillup-templates/sysconfig.samba
cat SUSE.sysconfig.{nmb,smb} >>\
%{buildroot}%_var/adm/fillup-templates/sysconfig.samba
cp -a SUSE.sysconfig.winbind \
%{buildroot}%_var/adm/fillup-templates/sysconfig.samba-winbind
install -m 0644 systemd/sysconfig.* %{buildroot}%_var/adm/fillup-templates
install -d -m 0755 %{buildroot}%{_prefix}/lib/tmpfiles.d
install -m 0644 -p ../packaging/systemd/samba.conf.tmp %{buildroot}%{_prefix}/lib/tmpfiles.d/samba.conf
%else
@ -1595,6 +1582,9 @@ if [ ${1:-0} -gt 1 -a -f /var/adm/backup/etc_samba_smbfstab-move ]; then
fi
fi
%endif
%if 0%{?suse_version} > 1220
%{fillup_only -ans samba client}
%endif
if ! test -e %{_bindir}/get_printing_ticket; then
ln -fs %{_bindir}/smbspool %{cups_lib_dir}/backend/smb
fi
@ -1971,6 +1961,9 @@ fi
%dir %{LOCKDIR}
%attr(0750,root,root) %dir %{LOGDIR}
%ghost %dir %{PIDDIR}
%if 0%{?suse_version} > 1220
%{_var}/adm/fillup-templates/sysconfig.samba-client
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1020
%files core-devel
@ -2198,6 +2191,7 @@ fi
%attr(0750,root,winbind) %dir %{LOCKDIR}/winbindd_privileged
%if 0%{?suse_version} > 1220
%{_var}/adm/fillup-templates/sysconfig.samba-winbind
%attr(0770,root,root) %{_var}/cache/krb5rcache
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1001 || 0%{?suse_version} > 1110

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2335b2c8d99e62bc5c42684d5e233802ca77d48d0cc468cb10bc0a20fec0412c
size 53913
oid sha256:690ad43f7d7b30684016b518763ccde84cb669a6e6d8d7bfc1382f7679d72d0e
size 54731