4 Url: http://0pointer.de/lennart/projects/nss-mdns/
5 Summary: Host Name Resolution Via Multicast DNS (Zeroconf) for glibc
7 Group: Productivity/Networking/DNS/Utilities
8 Source: %{name}-%{version}.tar.bz2
9 Source1: nss-mdns-config
10 Source2: baselibs.conf
11 Source1001: nss-mdns.manifest
14 nss-mdns is a plug-in for the GNU Name Service Switch (NSS)
15 functionality of the GNU C Library (glibc) providing a hostname
16 resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka
17 Apple Bonjour), and effectively allowing name resolution by common
18 Unix/Linux programs in the ad-hoc mDNS domain .local.
20 nss-mdns provides only client functionality, which means that you have
21 to run a mDNS responder daemon separately from nss-mdns if you want to
22 register the local hostname via mDNS. I recommend Avahi.
24 By default, nss-mdns tries to contact a running avahi-daemon to resolve
25 hostnames and addresses and makes use of its superior record cacheing.
32 %configure --libdir=/%{_lib}
36 install -D -m0755 %{SOURCE1} %{buildroot}%{_sbindir}/nss-mdns-config
40 if [ "$1" -eq 1 ] ; then
41 nss-mdns-config --enable
45 if [ "$1" -eq 0 ] ; then
46 nss-mdns-config --disable
49 %postun -p /sbin/ldconfig
52 %manifest %{name}.manifest
55 %{_sbindir}/nss-mdns-config
56 /%{_lib}/libnss_mdns.so.2
57 /%{_lib}/libnss_mdns_minimal.so.2
58 /%{_lib}/libnss_mdns4.so.2
59 /%{_lib}/libnss_mdns4_minimal.so.2
60 /%{_lib}/libnss_mdns6.so.2
61 /%{_lib}/libnss_mdns6_minimal.so.2