- Spec-cleanify the previous commit.
OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=34
This commit is contained in:
parent
37158b5f9b
commit
96b58768da
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 1 16:56:09 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Spec-cleanify the previous commit.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 1 16:37:41 UTC 2014 - tchvatal@suse.com
|
Mon Dec 1 16:37:41 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
20
netcfg.spec
20
netcfg.spec
@ -44,8 +44,8 @@ Source101: services-compare.sh
|
|||||||
Source102: services-create.pl
|
Source102: services-create.pl
|
||||||
Source103: services_UPDATING
|
Source103: services_UPDATING
|
||||||
Patch0: services-suse.diff
|
Patch0: services-suse.diff
|
||||||
Requires(pre): coreutils
|
Requires(post): coreutils
|
||||||
Requires(post): coreutils
|
Requires(pre): coreutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -78,14 +78,14 @@ ln -s %{_sysconfdir}/hostname %{buildroot}%{_sysconfdir}/HOSTNAME
|
|||||||
# Nothing apart from content of the document is preserved
|
# Nothing apart from content of the document is preserved
|
||||||
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
||||||
if [ "0$1" -ge "2" ]; then
|
if [ "0$1" -ge "2" ]; then
|
||||||
if [ -f /etc/HOSTNAME -a ! -L /etc/HOSTNAME ]; then
|
if [ -f %{_sysconfdir}/HOSTNAME -a ! -L %{_sysconfdir}/HOSTNAME ]; then
|
||||||
cp /etc/HOSTNAME /etc/hostname.rpmsave
|
cp %{_sysconfdir}/HOSTNAME %{_sysconfdir}/hostname.rpmsave
|
||||||
rm /etc/HOSTNAME
|
rm %{_sysconfdir}/HOSTNAME
|
||||||
fi
|
fi
|
||||||
# As some people are really on pills and did the link themselves other
|
# As some people are really on pills and did the link themselves other
|
||||||
# way around ensure the package will install for them.
|
# way around ensure the package will install for them.
|
||||||
if [ -f /etc/hostname -a -f /etc/hostname.rpmsave ]; then
|
if [ -f %{_sysconfdir}/hostname -a -f %{_sysconfdir}/hostname.rpmsave ]; then
|
||||||
rm /etc/hostname
|
rm %{_sysconfdir}/hostname
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@ -98,15 +98,15 @@ if [ -f etc/defaultdomain.rpmnew ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Put backuped HOSTNAME into the current hostname file
|
# Put backuped HOSTNAME into the current hostname file
|
||||||
if [ -f /etc/hostname.rpmsave ]; then
|
if [ -f %{_sysconfdir}/hostname.rpmsave ]; then
|
||||||
mv /etc/hostname.rpmsave /etc/hostname
|
mv %{_sysconfdir}/hostname.rpmsave %{_sysconfdir}/hostname
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname
|
||||||
/etc/HOSTNAME
|
%{_sysconfdir}/HOSTNAME
|
||||||
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases
|
||||||
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/defaultdomain
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/defaultdomain
|
||||||
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ethers
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ethers
|
||||||
|
Loading…
Reference in New Issue
Block a user