Remove cifstab file; obsoleted by the more generic cifs credentials feature.
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=109
This commit is contained in:
parent
dd53cb0bb4
commit
c17c87db13
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 19 15:24:31 UTC 2014 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Remove cifstab file; obsoleted by the more generic cifs credentials feature.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 28 11:27:12 UTC 2014 - lmuelle@suse.com
|
Mon Jul 28 11:27:12 UTC 2014 - lmuelle@suse.com
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ Source6: ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-pubkey_
|
|||||||
Source1: cifs.init
|
Source1: cifs.init
|
||||||
Source2: mkinitrd_scripts_boot-cifs.sh
|
Source2: mkinitrd_scripts_boot-cifs.sh
|
||||||
Source3: mkinitrd_scripts_setup-cifs.sh
|
Source3: mkinitrd_scripts_setup-cifs.sh
|
||||||
Source4: cifstab
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
PreReq: insserv %{?fillup_prereq} mkinitrd
|
PreReq: insserv %{?fillup_prereq} mkinitrd
|
||||||
%else
|
%else
|
||||||
@ -149,7 +148,6 @@ mkdir -p \
|
|||||||
${RPM_BUILD_ROOT}/%{_sbindir} \
|
${RPM_BUILD_ROOT}/%{_sbindir} \
|
||||||
${RPM_BUILD_ROOT}/%{_rundir}
|
${RPM_BUILD_ROOT}/%{_rundir}
|
||||||
install -m 0755 -p ${RPM_SOURCE_DIR}/cifs.init ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d/cifs
|
install -m 0755 -p ${RPM_SOURCE_DIR}/cifs.init ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d/cifs
|
||||||
install -m 0600 -p ${RPM_SOURCE_DIR}/cifstab ${RPM_BUILD_ROOT}/%{_sysconfdir}/samba/cifstab
|
|
||||||
ln -s %{_sysconfdir}/init.d/${cifs_init_script} ${RPM_BUILD_ROOT}/%{_sbindir}/rccifs
|
ln -s %{_sysconfdir}/init.d/${cifs_init_script} ${RPM_BUILD_ROOT}/%{_sbindir}/rccifs
|
||||||
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${script} \
|
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${script} \
|
||||||
${RPM_BUILD_ROOT}%{_rundir}/cifs
|
${RPM_BUILD_ROOT}%{_rundir}/cifs
|
||||||
@ -159,26 +157,7 @@ touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${
|
|||||||
%fdupes ${RPM_BUILD_ROOT}
|
%fdupes ${RPM_BUILD_ROOT}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
|
||||||
# non SUSE + post-12.2, update, no cifstab, but smbfstab
|
|
||||||
if [ ! 0%{?suse_version} -lt 1221 -a \
|
|
||||||
${1:-0} -gt 1 -a \
|
|
||||||
! -e /etc/samba/cifstab -a \
|
|
||||||
-f /etc/samba/smbfstab ]; then
|
|
||||||
cp -a /etc/samba/smbfstab /var/adm/backup/etc_samba_smbfstab-move
|
|
||||||
chkconfig -c smbfs && >/var/adm/backup/etc_samba_smbfs-enabled || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ ${1:-0} -gt 1 -a -f /var/adm/backup/etc_samba_smbfstab-move ]; then
|
|
||||||
test -f /etc/samba/cifstab && \
|
|
||||||
mv /etc/samba/cifstab /etc/samba/cifstab.rpmnew
|
|
||||||
mv /var/adm/backup/etc_samba_smbfstab-move /etc/samba/cifstab
|
|
||||||
if [ -f /var/adm/backup/etc_samba_smbfs-enabled ]; then
|
|
||||||
chkconfig -a cifs >/dev/null
|
|
||||||
rm /var/adm/backup/etc_samba_smbfs-enabled
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -222,7 +201,6 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1221
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1221
|
||||||
%attr(0754,root,root) %config %{_sysconfdir}/init.d/cifs
|
%attr(0754,root,root) %config %{_sysconfdir}/init.d/cifs
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/samba/cifstab
|
|
||||||
%{_sbindir}/rccifs
|
%{_sbindir}/rccifs
|
||||||
%dir %{_sysconfdir}/samba
|
%dir %{_sysconfdir}/samba
|
||||||
%ghost %{_rundir}/cifs
|
%ghost %{_rundir}/cifs
|
||||||
|
Loading…
Reference in New Issue
Block a user