From 7783e7b1919b295627d5ea4a2d075760673e40acb7452ea59aa78f9a862e154e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 4 Apr 2016 11:47:46 +0000 Subject: [PATCH] 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 --- hostname.changes | 5 +++++ hostname.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hostname.changes b/hostname.changes index 2c71b9d..24079dc 100644 --- a/hostname.changes +++ b/hostname.changes @@ -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 diff --git a/hostname.spec b/hostname.spec index 187ff1a..e12bd3e 100644 --- a/hostname.spec +++ b/hostname.spec @@ -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