|
cvsextras |
8ffebcf |
Name: adns
|
|
cvsextras |
8ffebcf |
Version: 1.1
|
|
|
2d26bbd |
Release: 5
|
|
|
2d26bbd |
|
|
cvsextras |
8ffebcf |
Summary: Advanced, easy to use, asynchronous-capable DNS client library
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
Group: System Environment/Libraries
|
|
cvsextras |
8ffebcf |
License: GPL
|
|
cvsextras |
8ffebcf |
URL: http://www.chiark.greenend.org.uk/~ian/adns/
|
|
cvsextras |
8ffebcf |
Source0: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-1.1.tar.gz
|
|
cvsextras |
8ffebcf |
Patch0: %{name}-DESTDIR.patch
|
|
cvsextras |
8ffebcf |
Patch1: %{name}-ac_fix.patch
|
|
cvsextras |
6772456 |
Patch2: adns-1.1-semicolon.patch
|
|
cvsextras |
6772456 |
Patch3: adns-1.1-parsedomain.patch
|
|
cvsextras |
7c0f294 |
BuildRequires: autoconf213 automake15
|
|
|
86bd2d2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
cvsextras |
8ffebcf |
|
|
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 |
%patch0 -p1
|
|
cvsextras |
8ffebcf |
%patch1 -p1
|
|
cvsextras |
6772456 |
%patch2 -p1 -b .semicolon
|
|
cvsextras |
6772456 |
%patch3 -p1 -b .parsedomain
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%build
|
|
cvsextras |
7c0f294 |
#aclocal
|
|
cvsextras |
7c0f294 |
#%{__autoconf}
|
|
cvsextras |
7c0f294 |
aclocal-1.5
|
|
cvsextras |
7c0f294 |
autoconf-2.13
|
|
cvsextras |
8ffebcf |
%configure --enable-dynamic
|
|
cvsextras |
8ffebcf |
make %{?_smp_mflags}
|
|
cvsextras |
8ffebcf |
|
|
cvsextras |
8ffebcf |
%install
|
|
cvsextras |
8ffebcf |
rm -rf $RPM_BUILD_ROOT
|
|
cvsextras |
8ffebcf |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
cvsextras |
8ffebcf |
ln -sf libadns.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libadns.so
|
|
cvsextras |
8ffebcf |
|
|
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 |
%{_libdir}/*.a
|
|
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
|
|
|
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.
|