4 Vendor: Fredrik Tolf <fredrik@dolda2000.com>
5 License: LGPL for library, GPL for utilities
6 Group: System Environment/Libraries
7 Summary: ICMP host name utilities
8 Source: %name-%version.tar.gz
9 URL: http://www.dolda2000.com/~fredrik/icmp-dn/
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 Since the Linux kernel does not support the ICMP host name facilities as
14 described in RFC 1788, I wrote a simple implementation in user-space.
15 It comprises three parts:
17 * icmpdnd – The ICMP Domain Name daemon, which listens to ICMP
18 domain name requests and replies to them.
20 * idnlookup – A user utility to query a host for its host name over
21 ICMP. Like ping and all other utilities that use ICMP, it needs to
22 be installed SUID root.
24 * libnss_icmp.so.2 – A glibc NSS module, which uses idnlookup to
25 perform queries for the gethostbyaddr function.
31 CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" \
34 --sysconfdir=%_sysconfdir \
39 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"
41 make DESTDIR=$RPM_BUILD_ROOT install
44 # $1 = 0 is remove; $1 = 1 is update
47 # $1 = 0 is remove; $1 = 1 is update
53 /lib/libnss_icmp.so.2.0.0
55 %config %{_sysconfdir}/nss-icmp.conf
57 %attr(4755,root,root) %{_bindir}/idnlookup
59 %{_sysconfdir}/init.d/icmpdnd
62 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README
65 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"