[nss-myhostname] New upstream release

Lennart Poettering lennart at fedoraproject.org
Wed May 11 13:44:13 UTC 2011


commit 21e08cc7884d76dadcb90ace93873b6c06d74be7
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed May 11 15:43:57 2011 +0200

    New upstream release

 .gitignore          |    1 +
 nss-myhostname.spec |   46 ++++++++++++++++++++++++++--------------------
 sources             |    2 +-
 3 files changed, 28 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 19164ec..efe6212 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 nss-myhostname-0.2.tar.gz
+/nss-myhostname-0.3.tar.gz
diff --git a/nss-myhostname.spec b/nss-myhostname.spec
index 4059698..ac0e36e 100644
--- a/nss-myhostname.spec
+++ b/nss-myhostname.spec
@@ -1,27 +1,30 @@
-Summary: glibc plugin for local system host name resolution
-Name: nss-myhostname
-Version: 0.2
-Release: 4%{?dist}
-License: LGPLv2+
-URL: http://0pointer.de/lennart/projects/nss-myhostname/
-Group: System Environment/Libraries
-Source: http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-Requires: /sbin/ldconfig /bin/sh /bin/sed 
+Name:           nss-myhostname
+Summary:        glibc plugin for local system host name resolution
+Version:        0.3
+Release:        1%{?dist}
+License:        LGPLv2+
+URL:            http://0pointer.de/lennart/projects/nss-myhostname/
+Group:          System Environment/Libraries
+Source:         http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:       /sbin/ldconfig
+Requires:       /bin/sh
+Requires:       /bin/sed
 
 %description
 nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
 functionality of the GNU C Library (glibc) providing host name
 resolution for the locally configured system hostname as returned by
-gethostname(2). A lot of software relies on that the local host name
-is resolvable via DNS to an IPv4 or IPv6 address. When using dynamic
-hostnames this is usually achieved by patching /etc/hosts which
-however is suboptimal since it requires a writable /etc file system
-and is fragile because the file might also be edited by the
-administrator. nss-myhostname simply returns the IPv4 address
+gethostname(2). Various software relies on an always resolvable local
+host name. When using dynamic hostnames this is usually achieved by
+patching /etc/hosts at the same time as changing the host name. This
+however is not ideal since it requires a writable /etc file system and
+is fragile because the file might be edited by the administrator at
+the same time. nss-myhostname simply returns all locally configure
+public IP addresses, or -- if none are configured -- the IPv4 address
 127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1
 (which is the local host) for whatever system hostname is configured
-locally. Patching /etc/hostname is thus no longer necessary.
+locally. Patching /etc/hosts is thus no longer necessary.
 
 %prep
 %setup -q
@@ -31,9 +34,9 @@ locally. Patching /etc/hostname is thus no longer necessary.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
-rm -rf $RPM_BUILD_ROOT//usr/share/doc/nss-myhostname
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+rm -rf %{buildroot}/usr/share/doc/nss-myhostname
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -67,6 +70,9 @@ fi
 /%{_lib}/*
 
 %changelog
+* Wed May 11 2011 Lennart Poettering <lpoetter at redhat.com> - 0.3-1
+- New upstream version
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/sources b/sources
index 0ea0bab..2592e2a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-11410773db548fb50c05d996163ec1ae  nss-myhostname-0.2.tar.gz
+d4ab9ac36c053ab8fb836db1cbd4a48f  nss-myhostname-0.3.tar.gz


More information about the scm-commits mailing list