From 8ffebcf7f875f06b057bdcc3138f9662df30ec65 Mon Sep 17 00:00:00 2001 From: cvsextras Date: Mon, 8 Nov 2004 04:00:46 +0000 Subject: [PATCH] auto-import changelog data from adns-1.1-0.fdr.2.rh90.src.rpm Fri Dec 05 2003 Michel Salim 1.1-0.fdr.2 - adns-devel: Added epoch to Requires - adns-progs: Removed superfluous dependency on adns - adns-progs: Changed group to Applications/System Mon Oct 27 2003 Michel Salim 1.1-0.fdr.1 - Updated to 1.1. Sat Jun 07 2003 Michel Salim 1.0-4 - Based on PLD spec. --- .cvsignore | 1 + adns-DESTDIR.patch | 88 +++++++++++++++++++++++++++++++++ adns-ac_fix.patch | 11 +++++ adns.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 220 insertions(+) create mode 100644 adns-DESTDIR.patch create mode 100644 adns-ac_fix.patch create mode 100644 adns.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8e65392 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +adns-1.1.tar.gz diff --git a/adns-DESTDIR.patch b/adns-DESTDIR.patch new file mode 100644 index 0000000..3750a49 --- /dev/null +++ b/adns-DESTDIR.patch @@ -0,0 +1,88 @@ +diff -Nru adns-1.0/Makefile.in adns-1.0.new/Makefile.in +--- adns-1.0/Makefile.in Sun Sep 17 16:10:57 2000 ++++ adns-1.0.new/Makefile.in Mon Nov 19 02:34:14 2001 +@@ -38,7 +38,7 @@ + SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress + + all install uninstall clean distclean mostlyclean maintainer-clean distprep: +- set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done ++ set -e; for d in $(SUBDIRS); do $(MAKE) DESTDIR=$(DESTDIR) -C $$d $@; done + $(MAKE) $@-here + + all-here install-here uninstall-here distprep-here: README +diff -Nru adns-1.0/client/Makefile.in adns-1.0.new/client/Makefile.in +--- adns-1.0/client/Makefile.in Sun Sep 17 02:43:10 2000 ++++ adns-1.0.new/client/Makefile.in Mon Nov 19 02:36:50 2001 +@@ -59,11 +59,12 @@ + all: $(TARGETS) + + install: $(TARG_INSTALL) ++ $(INSTALL) -d $(DESTDIR)$(bindir) + set -xe; for f in $(TARG_INSTALL); \ +- do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done ++ do $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f; done + + uninstall: +- for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done ++ for f in $(TARGETS); do rm -f $(DESTDIR)$(bindir)/$$f; done + + adnshost: $(ADH_OBJS) $(DYNAMIC_DEP) + $(CC) $(LDFLAGS) $(ADH_OBJS) $(DYNAMIC_LINK) -o $@ $(LDLIBS) +diff -Nru adns-1.0/settings.make.in adns-1.0.new/settings.make.in +--- adns-1.0/settings.make.in Sun Sep 17 03:01:11 2000 ++++ adns-1.0.new/settings.make.in Mon Nov 19 02:36:25 2001 +@@ -47,10 +47,10 @@ + MKSHLIB_3= @MKSHLIB_3@ + + prefix= @prefix@ +-exec_prefix= @exec_prefix@ +-bin_dir= $(exec_prefix)/bin +-lib_dir= $(exec_prefix)/lib +-include_dir= $(prefix)/include ++execprefix= @execprefix@ ++bindir= @bindir@ ++libdir= @libdir@ ++includedir= @includedir@ + + AC_INSTALL= @INSTALL@ + ifeq ($(AC_INSTALL),./install-sh -c) +diff -Nru adns-1.0/src/Makefile.in adns-1.0.new/src/Makefile.in +--- adns-1.0/src/Makefile.in Sun Sep 17 02:24:24 2000 ++++ adns-1.0.new/src/Makefile.in Mon Nov 19 02:35:18 2001 +@@ -29,13 +29,14 @@ + include adns.make + + install: ++ $(INSTALL) -d $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) + set -xe; for f in $(TARGETS); \ +- do $(INSTALL_DATA) $$f $(lib_dir)/$$f; done +- $(INSTALL_DATA) $(srcdir)/../src/adns.h $(include_dir)/adns.h ++ do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/$$f; done ++ $(INSTALL_DATA) $(srcdir)/../src/adns.h $(DESTDIR)$(includedir)/adns.h + + uninstall: +- for f in $(TARGETS); do rm -f $(lib_dir)/$$f; done +- rm -f $(include_dir)/adns.h ++ for f in $(TARGETS); do rm -f $(DESTDIR)$(libdir)/$$f; done ++ rm -f $(DESTDIR)$(includedir)/adns.h + + ALLOBJS= $(LIBOBJS) + +--- adns-1.0/dynamic/Makefile.in~ Mon Nov 19 03:01:54 2001 ++++ adns-1.0/dynamic/Makefile.in Mon Nov 19 03:01:54 2001 +@@ -31,11 +31,12 @@ + ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS))) + + install: +- $(INSTALL_PROGRAM) $(SHLIBFILE) $(lib_dir)/$(SHLIBFILE) +- ln -sf $(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME) ++ $(INSTALL) -d $(DESTDIR)$(libdir) ++ $(INSTALL_PROGRAM) $(SHLIBFILE) $(DESTDIR)$(libdir)/$(SHLIBFILE) ++ ln -sf $(SHLIBFILE) $(DESTDIR)$(libdir)/$(SHLIBSONAME) + + uninstall: +- rm -f $(lib_dir)/$(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME) ++ rm -f $(DESTDIR)$(libdir)/$(SHLIBFILE) $(DESTDIR)$(libdir)/$(SHLIBSONAME) + + $(SHLIBFORLINK): + ln -s $(SHLIBSONAME) $(SHLIBFORLINK) diff --git a/adns-ac_fix.patch b/adns-ac_fix.patch new file mode 100644 index 0000000..4565ef0 --- /dev/null +++ b/adns-ac_fix.patch @@ -0,0 +1,11 @@ +--- adns-1.0/configure.in~ Mon Nov 19 02:41:12 2001 ++++ adns-1.0/configure.in Mon Nov 19 02:41:12 2001 +@@ -25,7 +25,7 @@ + AC_CONFIG_HEADER(src/config.h) + + dnl DPKG_CACHED_TRY_COMPILE(,,,,,) +-define(DPKG_CACHED_TRY_COMPILE,[ ++define([DPKG_CACHED_TRY_COMPILE],[ + AC_MSG_CHECKING($1) + AC_CACHE_VAL($2,[ + AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no]) diff --git a/adns.spec b/adns.spec new file mode 100644 index 0000000..01b1bf6 --- /dev/null +++ b/adns.spec @@ -0,0 +1,119 @@ +Name: adns +Version: 1.1 +Release: 0.fdr.2.rh90 +Epoch: 0 +Summary: Advanced, easy to use, asynchronous-capable DNS client library + +Group: System Environment/Libraries +License: GPL +URL: http://www.chiark.greenend.org.uk/~ian/adns/ +Source0: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-1.1.tar.gz +Patch0: %{name}-DESTDIR.patch +Patch1: %{name}-ac_fix.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +adns is a resolver library for C (and C++) programs. In contrast with +the existing interfaces, gethostbyname et al and libresolv, it has the +following features: + - It is reasonably easy to use for simple programs which just want to + translate names to addresses, look up MX records, etc. + - It can be used in an asynchronous, non-blocking, manner. Many + queries can be handled simultaneously. + - Responses are decoded automatically into a natural representation + for a C program - there is no need to deal with DNS packet formats. + - Sanity checking (eg, name syntax checking, reverse/forward + correspondence, CNAME pointing to CNAME) is performed automatically. + - Time-to-live, CNAME and other similar information is returned in an + easy-to-use form, without getting in the way. + - There is no global state in the library; resolver state is an opaque + data structure which the client creates explicitly. A program can have + several instances of the resolver. + - Errors are reported to the application in a way that distinguishes + the various causes of failure properly. + - Understands conventional resolv.conf, but this can overridden by + environment variables. + - Flexibility. For example, the application can tell adns to: ignore + environment variables (for setuid programs), disable sanity checks eg + to return arbitrary data, override or ignore resolv.conf in favour of + supplied configuration, etc. + - Believed to be correct ! For example, will correctly back off to TCP + in case of long replies or queries, or to other nameservers if several + are available. It has sensible handling of bad responses etc. + +%package devel +Summary: Asynchronous-capable DNS client library - development files +Group: Development/Libraries +Requires: %{name} = %{epoch}:%{version} + +%description devel +Asynchronous-capable DNS client library - development files. + +%package progs +Summary: Asynchronous-capable DNS client library - utility programs +Group: Applications/System + +%description progs +DNS utility programs: adns also comes with a number of utility +programs for use from the command line and in scripts: + - adnslogres is a much faster version of Apache's logresolv program, + - adnsresfilter is a filter which copies its input to its output, + replacing IP addresses by the corresponding names, without unduly + delaying the output. For example, you can usefully pipe the output of + netstat -n, tcpdump -ln, and the like, into it. + - adnshost is a general-purpose DNS lookup utility which can be used + easily in from the command line and from shell scripts to do simple + lookups. In a more advanced mode it can be used as a general-purpose + DNS helper program for scripting languages which can invoke and + communicate with subprocesses. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +aclocal +%{__autoconf} +%configure --enable-dynamic +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +ln -sf libadns.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libadns.so + +%clean +rm -fr $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README TODO changelog +%attr(755,root,root) %{_libdir}/lib*.so.* + +%files devel +%defattr(644,root,root,755) +%{_includedir}/* +%{_libdir}/lib*.so +%{_libdir}/*.a + +%files progs +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/* + +%changelog +* Fri Dec 05 2003 Michel Salim 1.1-0.fdr.2 +- adns-devel: Added epoch to Requires +- adns-progs: Removed superfluous dependency on adns +- adns-progs: Changed group to Applications/System + +* Mon Oct 27 2003 Michel Salim 1.1-0.fdr.1 +- Updated to 1.1. + +* Sat Jun 07 2003 Michel Salim 1.0-4 +- Based on PLD spec. diff --git a/sources b/sources index e69de29..37235ef 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +891956e305acf5fc83b099333bf3ffd9 adns-1.1.tar.gz