Accepting request 382476 from home:kukuk:deprecate

- Add ypdomainname and nisdomainname, too. Were removed from yp-tools.

OBS-URL: https://build.opensuse.org/request/show/382476
OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=6
This commit is contained in:
Marcus Meissner 2016-04-04 11:47:46 +00:00 committed by Git OBS Bridge
parent a936895ad7
commit 7783e7b191
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 31 14:25:58 CEST 2016 - kukuk@suse.de
- Add ypdomainname and nisdomainname, too. Were removed from yp-tools.
-------------------------------------------------------------------
Tue Sep 8 12:32:33 UTC 2015 - nemysis@openSUSE.org

View File

@ -1,7 +1,7 @@
#
# spec file for package hostname
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -43,8 +43,7 @@ install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -d -m 755 %{buildroot}/bin/
ln -sf %{_bindir}/%{name} %{buildroot}/bin/%{name}
install -D -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
# do not install ypdomainname and nisdomainname which are provided by yp-tools
for prog in dnsdomainname domainname; do
for prog in dnsdomainname domainname ypdomainname nisdomainname; do
ln -sf %{_bindir}/%{name} %{buildroot}/bin/$prog
ln -sf %{_bindir}/%{name} %{buildroot}%{_bindir}/$prog
ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1
@ -56,11 +55,17 @@ done
/bin/%{name}
/bin/domainname
/bin/dnsdomainname
/bin/nisdomainname
/bin/ypdomainname
%{_bindir}/%{name}
%{_bindir}/domainname
%{_bindir}/dnsdomainname
%{_bindir}/nisdomainname
%{_bindir}/ypdomainname
%{_mandir}/man1/%{name}.1%{ext_man}
%{_mandir}/man1/domainname.1%{ext_man}
%{_mandir}/man1/dnsdomainname.1%{ext_man}
%{_mandir}/man1/nisdomainname.1%{ext_man}
%{_mandir}/man1/ypdomainname.1%{ext_man}
%changelog