|
|
a6384ed |
Summary: glibc plugin for .local name resolution
|
|
|
a6384ed |
Name: nss-mdns
|
|
|
a6384ed |
Version: 0.10
|
|
|
31e8c8c |
Release: 12%{?dist}
|
|
|
017e453 |
License: LGPLv2+
|
|
|
a6384ed |
URL: http://0pointer.de/lennart/projects/nss-mdns/
|
|
|
a6384ed |
Group: System Environment/Libraries
|
|
|
a6384ed |
Source: http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-%{version}.tar.gz
|
|
|
9e946e1 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
a6384ed |
Requires: avahi
|
|
|
a6384ed |
|
|
|
a6384ed |
%description
|
|
|
a6384ed |
nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of
|
|
|
a6384ed |
the GNU C Library (glibc) providing host name resolution via Multicast DNS
|
|
|
a6384ed |
(aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing
|
|
|
a6384ed |
name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local.
|
|
|
a6384ed |
|
|
|
a6384ed |
nss-mdns provides client functionality only, which means that you have to
|
|
|
a6384ed |
run a mDNS responder daemon separately from nss-mdns if you want to register
|
|
|
a6384ed |
the local host name via mDNS (e.g. Avahi).
|
|
|
a6384ed |
|
|
|
a6384ed |
%prep
|
|
|
a6384ed |
%setup -q
|
|
|
a6384ed |
|
|
|
a6384ed |
%build
|
|
|
a6384ed |
%configure --libdir=/%{_lib} --enable-avahi=yes --enable-legacy=no
|
|
|
a6384ed |
make %{?_smp_mflags}
|
|
|
a6384ed |
|
|
|
a6384ed |
%install
|
|
|
a6384ed |
rm -rf $RPM_BUILD_ROOT
|
|
|
a6384ed |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
a6384ed |
|
|
|
a6384ed |
%clean
|
|
|
a6384ed |
rm -rf $RPM_BUILD_ROOT
|
|
|
a6384ed |
|
|
|
a6384ed |
%post
|
|
|
a6384ed |
/sbin/ldconfig
|
|
|
a6384ed |
# Perl-fu to add mdns4_minimal to the hosts line of /etc/nsswitch.conf
|
|
|
a6384ed |
if [ -f /etc/nsswitch.conf ] ; then
|
|
|
9e946e1 |
sed -i.bak '
|
|
|
9e946e1 |
/^hosts:/ !b
|
|
|
9e946e1 |
/\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b
|
|
|
9e946e1 |
s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
|
|
|
9e946e1 |
' /etc/nsswitch.conf
|
|
|
a6384ed |
fi
|
|
|
a6384ed |
|
|
|
a6384ed |
%preun
|
|
|
9e946e1 |
# sed-fu to remove mdns4_minimal from the hosts line of /etc/nsswitch.conf
|
|
|
a6384ed |
if [ "$1" -eq 0 -a -f /etc/nsswitch.conf ] ; then
|
|
|
9e946e1 |
sed -i.bak '
|
|
|
9e946e1 |
/^hosts:/ !b
|
|
|
9e946e1 |
s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g
|
|
|
a6384ed |
' /etc/nsswitch.conf
|
|
|
a6384ed |
fi
|
|
|
a6384ed |
|
|
|
a6384ed |
%postun -p /sbin/ldconfig
|
|
|
a6384ed |
|
|
|
a6384ed |
%files
|
|
|
a6384ed |
%defattr(-, root, root)
|
|
|
a6384ed |
%doc README
|
|
|
a6384ed |
/%{_lib}/*
|
|
|
a6384ed |
|
|
|
a6384ed |
%changelog
|
|
|
31e8c8c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-12
|
|
|
31e8c8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
31e8c8c |
|
|
|
2f749d8 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-11
|
|
|
2f749d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2f749d8 |
|
|
|
98bae2d |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-10
|
|
|
98bae2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
98bae2d |
|
|
|
d8cb2d3 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-9
|
|
|
d8cb2d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
d8cb2d3 |
|
|
|
5f28708 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-8
|
|
|
5f28708 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
5f28708 |
|
|
|
f3bd00c |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
|
|
|
f3bd00c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
f3bd00c |
|
|
|
9e946e1 |
* Tue Sep 30 2008 Stepan Kasal <skasal@redhat.com> - 0.10-6
|
|
|
9e946e1 |
- use sed instead of perl in %%post and %%preun (#462996),
|
|
|
9e946e1 |
fixing two bugs in the scriptlets:
|
|
|
9e946e1 |
1) the backup file shall be nsswitch.conf.bak, not nsswitch.confbak
|
|
|
9e946e1 |
2) the first element after host: shall be subject to removal, too
|
|
|
9e946e1 |
- consequently, removed the Requires(..): perl
|
|
|
9e946e1 |
- removed the reqires for things that are granted
|
|
|
9e946e1 |
- a better BuildRoot
|
|
|
9e946e1 |
|
|
|
017e453 |
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.10-5
|
|
|
017e453 |
- fix license tag
|
|
|
017e453 |
|
|
|
221b7a6 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.10-4
|
|
|
221b7a6 |
- Autorebuild for GCC 4.3
|
|
|
221b7a6 |
|
|
|
253fb85 |
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.10-3
|
|
|
253fb85 |
- Rebuild for selinux ppc32 issue.
|
|
|
253fb85 |
|
|
|
a6384ed |
* Fri Jun 22 2007 - Lennart Poettering <lpoetter@redhat.com> - 0.10-2
|
|
|
a6384ed |
- Fix up post/preun/postun dependencies, add "avahi" to the dependencies,
|
|
|
a6384ed |
include dist tag in Release field, use _lib directory instead of literal /lib.
|
|
|
a6384ed |
|
|
|
a6384ed |
* Fri Jun 22 2007 - Lennart Poettering <lpoetter@redhat.com> - 0.10-1
|
|
|
a6384ed |
- Update to 0.10, replace perl script by simpler and more robust versions,
|
|
|
a6384ed |
stolen from the Debian package
|
|
|
a6384ed |
|
|
|
a6384ed |
* Thu Jul 13 2006 - Bastien Nocera <hadess@hadess.net> - 0.8-2
|
|
|
a6384ed |
- Make use of Ezio's perl scripts to enable and disable mdns4 lookups
|
|
|
a6384ed |
automatically, patch from Pancrazio `Ezio' de Mauro <pdemauro@redhat.com>
|
|
|
a6384ed |
|
|
|
a6384ed |
* Tue May 02 2006 - Bastien Nocera <hadess@hadess.net> - 0.8-1
|
|
|
a6384ed |
- Update to 0.8, disable legacy lookups so that all lookups are made through
|
|
|
a6384ed |
the Avahi daemon
|
|
|
a6384ed |
|
|
|
a6384ed |
* Mon Apr 24 2006 - Bastien Nocera <hadess@hadess.net> - 0.7-2
|
|
|
a6384ed |
- Fix building on 64-bit platforms
|
|
|
a6384ed |
|
|
|
a6384ed |
* Tue Dec 13 2005 - Bastien Nocera <hadess@hadess.net> - 0.7-1
|
|
|
a6384ed |
- Update to 0.7, fix some rpmlint errors
|
|
|
a6384ed |
|
|
|
a6384ed |
* Thu Nov 10 2005 - Bastien Nocera <hadess@hadess.net> - 0.6-1
|
|
|
a6384ed |
- Update to 0.6
|
|
|
a6384ed |
|
|
|
a6384ed |
* Tue Dec 07 2004 - Bastien Nocera <hadess@hadess.net> 0.1-1
|
|
|
a6384ed |
- Initial package, automatically adds and remove mdns4 as a hosts service
|
|
|
a6384ed |
|