commit b3ad5d8ed0a5297a398d19b1773941a5757500a881b2a4ee976f9521ad869bfb Author: Andreas Stieger Date: Wed Jun 10 12:52:50 2015 +0000 Accepting request 311453 from home:gberh hostname/domainname utility from Debian OBS-URL: https://build.opensuse.org/request/show/311453 OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hostname.changes b/hostname.changes new file mode 100644 index 0000000..e5505d0 --- /dev/null +++ b/hostname.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Jun 10 08:39:32 UTC 2015 - gber@opensuse.org + +- initial packaging + diff --git a/hostname.spec b/hostname.spec new file mode 100644 index 0000000..7a5a5b7 --- /dev/null +++ b/hostname.spec @@ -0,0 +1,61 @@ +# +# spec file for package hostname +# +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: hostname +Version: 3.15 +Release: 0 +License: GPL-2.0+ +Summary: Utility to Set/Show the Host Name or Domain Name +Url: https://tracker.debian.org/pkg/hostname +Group: Productivity/Networking/Other +Source: http://http.debian.net/debian/pool/main/h/hostname/%{name}_%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package provides commands which can be used to display the system's DNS +name, and to display or set its hostname or NIS domain name. + +%prep +%setup -q -n %{name} + +%build +make %{?_smp_mflags} + +%install +install -D -p -m 755 hostname %{buildroot}%{_bindir}/hostname +install -d -m 755 %{buildroot}/bin/ +ln -sf %{_bindir}/hostname %{buildroot}/bin/hostname +install -D -p -m 644 hostname.1 %{buildroot}%{_mandir}/man1/hostname.1 +# do not install ypdomainname and nisdomainname which are provided by yp-tools +for prog in dnsdomainname domainname; do + ln -sf %{_bindir}/hostname %{buildroot}/bin/$prog + ln -sf %{_bindir}/hostname %{buildroot}%{_bindir}/$prog + ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1 +done + +%files +%defattr(-,root,root) +%doc COPYRIGHT +/bin/hostname +/bin/domainname +/bin/dnsdomainname +%{_bindir}/hostname +%{_bindir}/domainname +%{_bindir}/dnsdomainname +%{_mandir}/man1/hostname.1* +%{_mandir}/man1/domainname.1* +%{_mandir}/man1/dnsdomainname.1* diff --git a/hostname_3.15.tar.gz b/hostname_3.15.tar.gz new file mode 100644 index 0000000..38c3487 --- /dev/null +++ b/hostname_3.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6d10114ed14306b21745d2cac1b9adf7a2546f16b9fd719bec14bd7cec61d20 +size 13039