|
cvsextras |
8ffebcf |
Name: adns
|
|
Adam Tkac |
9220706 |
Version: 1.4
|
|
Adam Tkac |
9ceee53 |
Release: 9%{?dist}
|
|
|
2d26bbd |
|
|
cvsextras |
8ffebcf |
Summary: Advanced, easy to use, asynchronous-capable DNS client library
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
Group: System Environment/Libraries
|
|
|
9d033bd |
License: GPL+
|
|
cvsextras |
8ffebcf |
URL: http://www.chiark.greenend.org.uk/~ian/adns/
|
|
Adam Tkac |
9ceee53 |
Source0: http://www.chiark.greenend.org.uk/~ian/adns/ftp/%{name}-%{version}.tar.gz
|
|
Adam Tkac |
35ee93b |
BuildRequires: autoconf
|
|
|
86bd2d2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
cvsextras |
8ffebcf |
|
|
Adam Tkac |
6bb7cef |
Patch0: adns14-rh514838.patch
|
|
Adam Tkac |
6bb7cef |
|
|
cvsextras |
8ffebcf |
%description
|
|
cvsextras |
8ffebcf |
adns is a resolver library for C (and C++) programs. In contrast with
|
|
cvsextras |
8ffebcf |
the existing interfaces, gethostbyname et al and libresolv, it has the
|
|
cvsextras |
8ffebcf |
following features:
|
|
cvsextras |
8ffebcf |
- It is reasonably easy to use for simple programs which just want to
|
|
cvsextras |
8ffebcf |
translate names to addresses, look up MX records, etc.
|
|
cvsextras |
8ffebcf |
- It can be used in an asynchronous, non-blocking, manner. Many
|
|
cvsextras |
8ffebcf |
queries can be handled simultaneously.
|
|
cvsextras |
8ffebcf |
- Responses are decoded automatically into a natural representation
|
|
cvsextras |
8ffebcf |
for a C program - there is no need to deal with DNS packet formats.
|
|
cvsextras |
8ffebcf |
- Sanity checking (eg, name syntax checking, reverse/forward
|
|
cvsextras |
8ffebcf |
correspondence, CNAME pointing to CNAME) is performed automatically.
|
|
cvsextras |
8ffebcf |
- Time-to-live, CNAME and other similar information is returned in an
|
|
cvsextras |
8ffebcf |
easy-to-use form, without getting in the way.
|
|
cvsextras |
8ffebcf |
- There is no global state in the library; resolver state is an opaque
|
|
cvsextras |
8ffebcf |
data structure which the client creates explicitly. A program can have
|
|
cvsextras |
8ffebcf |
several instances of the resolver.
|
|
cvsextras |
8ffebcf |
- Errors are reported to the application in a way that distinguishes
|
|
cvsextras |
8ffebcf |
the various causes of failure properly.
|
|
cvsextras |
8ffebcf |
- Understands conventional resolv.conf, but this can overridden by
|
|
cvsextras |
8ffebcf |
environment variables.
|
|
cvsextras |
8ffebcf |
- Flexibility. For example, the application can tell adns to: ignore
|
|
cvsextras |
8ffebcf |
environment variables (for setuid programs), disable sanity checks eg
|
|
cvsextras |
8ffebcf |
to return arbitrary data, override or ignore resolv.conf in favour of
|
|
cvsextras |
8ffebcf |
supplied configuration, etc.
|
|
cvsextras |
8ffebcf |
- Believed to be correct ! For example, will correctly back off to TCP
|
|
cvsextras |
8ffebcf |
in case of long replies or queries, or to other nameservers if several
|
|
cvsextras |
8ffebcf |
are available. It has sensible handling of bad responses etc.
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%package devel
|
|
cvsextras |
8ffebcf |
Summary: Asynchronous-capable DNS client library - development files
|
|
cvsextras |
8ffebcf |
Group: Development/Libraries
|
|
|
86bd2d2 |
Requires: %{name} = %{version}
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%description devel
|
|
cvsextras |
8ffebcf |
Asynchronous-capable DNS client library - development files.
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%package progs
|
|
cvsextras |
8ffebcf |
Summary: Asynchronous-capable DNS client library - utility programs
|
|
cvsextras |
8ffebcf |
Group: Applications/System
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%description progs
|
|
cvsextras |
8ffebcf |
DNS utility programs: adns also comes with a number of utility
|
|
cvsextras |
8ffebcf |
programs for use from the command line and in scripts:
|
|
cvsextras |
8ffebcf |
- adnslogres is a much faster version of Apache's logresolv program,
|
|
cvsextras |
8ffebcf |
- adnsresfilter is a filter which copies its input to its output,
|
|
cvsextras |
8ffebcf |
replacing IP addresses by the corresponding names, without unduly
|
|
cvsextras |
8ffebcf |
delaying the output. For example, you can usefully pipe the output of
|
|
cvsextras |
8ffebcf |
netstat -n, tcpdump -ln, and the like, into it.
|
|
cvsextras |
8ffebcf |
- adnshost is a general-purpose DNS lookup utility which can be used
|
|
cvsextras |
8ffebcf |
easily in from the command line and from shell scripts to do simple
|
|
cvsextras |
8ffebcf |
lookups. In a more advanced mode it can be used as a general-purpose
|
|
cvsextras |
8ffebcf |
DNS helper program for scripting languages which can invoke and
|
|
cvsextras |
8ffebcf |
communicate with subprocesses.
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%prep
|
|
cvsextras |
8ffebcf |
%setup -q
|
|
cvsextras |
8ffebcf |
|
|
Adam Tkac |
6bb7cef |
%patch0 -p1 -b .rh514838
|
|
Adam Tkac |
6bb7cef |
|
|
cvsextras |
8ffebcf |
%build
|
|
|
167c8a9 |
%ifarch sparcv9 sparc64 s390 s390x
|
|
|
167c8a9 |
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC"
|
|
|
167c8a9 |
%else
|
|
Adam Tkac |
35ee93b |
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fpic"
|
|
|
167c8a9 |
%endif
|
|
Adam Tkac |
35ee93b |
autoreconf -fiv
|
|
cvsextras |
8ffebcf |
%configure --enable-dynamic
|
|
cvsextras |
8ffebcf |
make %{?_smp_mflags}
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%install
|
|
cvsextras |
8ffebcf |
rm -rf $RPM_BUILD_ROOT
|
|
Adam Tkac |
35ee93b |
make \
|
|
Adam Tkac |
35ee93b |
prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
Adam Tkac |
35ee93b |
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
|
Adam Tkac |
35ee93b |
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
|
Adam Tkac |
35ee93b |
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
|
Adam Tkac |
35ee93b |
install
|
|
cvsextras |
8ffebcf |
|
|
Adam Tkac |
c2fedc9 |
rm -f $RPM_BUILD_ROOT%{_libdir}/libadns.a
|
|
Adam Tkac |
c2fedc9 |
|
|
cvsextras |
8ffebcf |
%clean
|
|
cvsextras |
8ffebcf |
rm -fr $RPM_BUILD_ROOT
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%post -p /sbin/ldconfig
|
|
cvsextras |
8ffebcf |
%postun -p /sbin/ldconfig
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%files
|
|
cvsextras |
8ffebcf |
%defattr(644,root,root,755)
|
|
cvsextras |
8ffebcf |
%doc README TODO changelog
|
|
cvsextras |
8ffebcf |
%attr(755,root,root) %{_libdir}/lib*.so.*
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%files devel
|
|
cvsextras |
8ffebcf |
%defattr(644,root,root,755)
|
|
cvsextras |
8ffebcf |
%{_includedir}/*
|
|
cvsextras |
8ffebcf |
%{_libdir}/lib*.so
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%files progs
|
|
cvsextras |
8ffebcf |
%defattr(644,root,root,755)
|
|
cvsextras |
8ffebcf |
%attr(755,root,root) %{_bindir}/*
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%changelog
|
|
Adam Tkac |
9ceee53 |
* Fri Jun 04 2010 Adam Tkac <atkac redhat com> 1.4-9
|
|
Adam Tkac |
9ceee53 |
- update source URL
|
|
Adam Tkac |
9ceee53 |
|
|
Adam Tkac |
675a785 |
* Thu Aug 06 2009 Adam Tkac <atkac redhat com> 1.4-8
|
|
Adam Tkac |
675a785 |
- rebuild
|
|
Adam Tkac |
675a785 |
|
|
Adam Tkac |
6bb7cef |
* Thu Aug 06 2009 Adam Tkac <atkac redhat com> 1.4-7
|
|
Adam Tkac |
675a785 |
- don't crash in adns_strerror if parameter is unknown error code (#514838)
|
|
Adam Tkac |
6bb7cef |
|
|
|
15ace2c |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
|
|
|
15ace2c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
15ace2c |
|
|
|
986eb41 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
|
|
|
986eb41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
986eb41 |
|
|
|
167c8a9 |
* Thu May 29 2008 Dennis Gilmore <dennis@ausil.us> - 1.4-4
|
|
|
167c8a9 |
- some arches need -fPIC
|
|
|
167c8a9 |
|
|
|
eff213c |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4-3
|
|
|
eff213c |
- Autorebuild for GCC 4.3
|
|
|
eff213c |
|
|
Adam Tkac |
c2fedc9 |
* Wed Dec 19 2007 Adam Tkac <atkac redhat com> 1.4-2
|
|
Adam Tkac |
c2fedc9 |
- don't ship static libadns.a
|
|
Adam Tkac |
c2fedc9 |
|
|
Adam Tkac |
9220706 |
* Wed Dec 19 2007 Adam Tkac <atkac redhat com> 1.4-1
|
|
Adam Tkac |
9220706 |
- updated to 1.4
|
|
Adam Tkac |
9220706 |
- CVS cleanup
|
|
Adam Tkac |
35ee93b |
- use autoreconf
|
|
Adam Tkac |
35ee93b |
- build with -fpic instead -fPIC
|
|
Adam Tkac |
9220706 |
|
|
|
9d033bd |
* Fri Aug 31 2007 Radek Vokál <rvokal@redhat.com> 1.2-6
|
|
|
9d033bd |
- rebuilt
|
|
|
9d033bd |
|
|
|
ee052a1 |
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.2-5
|
|
|
ee052a1 |
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
ee052a1 |
|
|
|
6dbbc5d |
* Tue Sep 26 2006 Radek Vokal <rvokal@redhat.com> 1.2-4
|
|
|
6dbbc5d |
- rebuilt
|
|
|
6dbbc5d |
|
|
Mihai Ibanescu |
dc95b2c |
* Mon May 15 2006 Mihai Ibanescu <misa[AT]redhat.com> 1.2-3
|
|
Mihai Ibanescu |
dc95b2c |
- Rebuilt in the devel branch
|
|
Mihai Ibanescu |
dc95b2c |
|
|
Mihai Ibanescu |
088b9b4 |
* Tue May 9 2006 Mihai Ibanescu <misa[AT]redhat.com> 1.2-2
|
|
Mihai Ibanescu |
088b9b4 |
- Dropped the DESTDIR patch since it was not accepted upstream.
|
|
Mihai Ibanescu |
088b9b4 |
- Added -fPIC in the compiled flags, otherwise we won't be able to link
|
|
Mihai Ibanescu |
088b9b4 |
against this library.
|
|
Mihai Ibanescu |
088b9b4 |
|
|
Mihai Ibanescu |
088b9b4 |
* Mon May 8 2006 Mihai Ibanescu <misa[AT]redhat.com> 1.2-1
|
|
Mihai Ibanescu |
088b9b4 |
- Updated to 1.2, some of the patches were already upstream
|
|
Mihai Ibanescu |
088b9b4 |
- Removed dependency on autoconf/automake since it builds just fine without
|
|
Mihai Ibanescu |
088b9b4 |
that
|
|
Mihai Ibanescu |
088b9b4 |
|
|
|
2d26bbd |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
2d26bbd |
- rebuilt
|
|
|
2d26bbd |
|
|
cvsextras |
6772456 |
* Tue Jul 13 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 0:1.1-0.fdr.4
|
|
cvsextras |
6772456 |
- Add patch2 to make adns recognize ';' in /etc/resolv.conf
|
|
cvsextras |
6772456 |
(#1626, Noa Resare).
|
|
cvsextras |
6772456 |
- Add patch3 to fix bug and fix build on PPC (#1812, Colin Charles).
|
|
cvsextras |
6772456 |
|
|
cvsextras |
7c0f294 |
* Fri Apr 16 2004 Michel Salim <salimma[AT]users.sf.net> 1.1-0.fdr.3
|
|
cvsextras |
7c0f294 |
- Builds using automake 1.5, autoconf 2.13; latest automake/autoconf combination fails on FC2
|
|
cvsextras |
7c0f294 |
|
|
cvsextras |
8ffebcf |
* Fri Dec 05 2003 Michel Salim <salimma[AT]users.sourceforge.net> 1.1-0.fdr.2
|
|
cvsextras |
8ffebcf |
- adns-devel: Added epoch to Requires
|
|
cvsextras |
8ffebcf |
- adns-progs: Removed superfluous dependency on adns
|
|
cvsextras |
8ffebcf |
- adns-progs: Changed group to Applications/System
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
* Mon Oct 27 2003 Michel Salim <salimma[AT]users.sourceforge.net> 1.1-0.fdr.1
|
|
cvsextras |
8ffebcf |
- Updated to 1.1.
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
* Sat Jun 07 2003 Michel Salim <salimma[AT]users.sourceforge.net> 1.0-4
|
|
cvsextras |
8ffebcf |
- Based on PLD spec.
|