]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - nss-myhostname/nss-myhostname.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/ipfire-3.x.git] / nss-myhostname / nss-myhostname.nm
CommitLineData
368c674a 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
368c674a
MT
4###############################################################################
5
802ea3af
MT
6name = nss-myhostname
7version = 0.3
8release = 1
368c674a 9
802ea3af
MT
10groups = System/Libraries
11url = http://0pointer.de/lennart/projects/nss-myhostname/
12license = LGPLv2+
13summary = glibc plugin for local system host name resolution.
368c674a 14
802ea3af 15description
368c674a
MT
16 nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
17 functionality of the GNU C Library (glibc) providing host name
18 resolution for the locally configured system hostname as returned by
19 gethostname(2). Various software relies on an always resolvable local
20 host name. When using dynamic hostnames this is usually achieved by
21 patching /etc/hosts at the same time as changing the host name. This
22 however is not ideal since it requires a writable /etc file system and
23 is fragile because the file might be edited by the administrator at
24 the same time. nss-myhostname simply returns all locally configure
25 public IP addresses, or -- if none are configured -- the IPv4 address
26 127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1
27 (which is the local host) for whatever system hostname is configured
28 locally. Patching /etc/hosts is thus no longer necessary.
802ea3af
MT
29end
30
31source_dl =
368c674a 32
802ea3af
MT
33build
34 configure_options += \
35 --libdir=/lib
368c674a 36
802ea3af
MT
37 install_cmds
38 mkdir -pv %{BUILDROOT}/usr/lib
39 ln -svf ../../lib/libnss_myhostname.so.2 \
40 %{BUILDROOT}/usr/lib/libnss_myhostname.so
368c674a 41
802ea3af
MT
42 rm -rf %{BUILDROOT}/usr/share/doc/nss-myhostname
43 end
44end
368c674a 45
802ea3af
MT
46packages
47 package %{name}
1f9bc2f0
MT
48
49 package %{name}-debuginfo
50 template DEBUGINFO
51 end
802ea3af 52end