From 6bdae8ef039e3e23c3befda44fb3b047d8b0543459555c7c669ae6faff75e637 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 22:50:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adns?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + adns-1.3.tar.gz | 3 ++ adns-1.3.tar.gz.sig | Bin 0 -> 152 bytes adns-configure.diff | 129 ++++++++++++++++++++++++++++++++++++++++++++ adns-destdir.diff | 48 +++++++++++++++++ adns.changes | 34 ++++++++++++ adns.spec | 128 +++++++++++++++++++++++++++++++++++++++++++ ready | 0 9 files changed, 366 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 adns-1.3.tar.gz create mode 100644 adns-1.3.tar.gz.sig create mode 100644 adns-configure.diff create mode 100644 adns-destdir.diff create mode 100644 adns.changes create mode 100644 adns.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/adns-1.3.tar.gz b/adns-1.3.tar.gz new file mode 100644 index 0000000..aaebf9b --- /dev/null +++ b/adns-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6e2452ca82481d9da88d7745cdb0ffd6c1e54c906f58f57624ad37d353e0d16 +size 252263 diff --git a/adns-1.3.tar.gz.sig b/adns-1.3.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..7d6ff97103a2bc6c899cb264b615965da5e7a228b40651dc7b0593456f18a83e GIT binary patch literal 152 zcmV;J0B8S+0F?s;07Qk_X2TYax+C?i+W`XAnFIj9dGbZLqx;WkBPi_rtMBT)sDB5X z&yL0bwK}u~o0*Rjtu6F68lrCCs9WoW&IO;$t^k_#yr=A&wRHm zlo3HgH2(&3&g5UL+5B+RcK6?wAanEB(jKQd2x*B7s8-SH4&,,,,,) +-define([DPKG_CACHED_TRY_COMPILE],[ ++AC_DEFUN([DPKG_CACHED_TRY_COMPILE],[ + AC_MSG_CHECKING($1) + AC_CACHE_VAL($2,[ + AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no]) +@@ -65,6 +64,116 @@ + AC_PROG_RANLIB + AC_PROG_INSTALL + ++AH_TOP([ ++/* ++ * This file is ++ * Copyright (C) 1997-2000 Ian Jackson ++ * ++ * It is part of adns, which is ++ * Copyright (C) 1997-2000 Ian Jackson ++ * Copyright (C) 1999-2000 Tony Finch ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2, or (at your option) ++ * any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software Foundation, ++ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ */ ++]) ++ ++AH_TEMPLATE([HAVE_INLINE], ++ [Define if inline functions a la GCC are available.]) ++AH_TEMPLATE([HAVE_GNUC25_ATTRIB], ++ [Define if function attributes a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_CONST], ++ [Define if function attributes a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_NORETURN], ++ [Define if nonreturning functions a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_PRINTFFORMAT], ++ [Define if printf-format argument lists a la GCC are available.]) ++AH_TEMPLATE([HAVEUSE_RPCTYPES_H], ++ [Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there.]) ++ ++AH_BOTTOM([ ++/* Use the definitions: */ ++ ++#ifndef HAVE_INLINE ++#define inline ++#endif ++ ++#ifdef HAVE_POLL ++#include ++#else ++/* kludge it up */ ++struct pollfd { int fd; short events; short revents; }; ++#define POLLIN 1 ++#define POLLPRI 2 ++#define POLLOUT 4 ++#endif ++ ++/* GNU C attributes. */ ++#ifndef FUNCATTR ++#ifdef HAVE_GNUC25_ATTRIB ++#define FUNCATTR(x) __attribute__(x) ++#else ++#define FUNCATTR(x) ++#endif ++#endif ++ ++/* GNU C printf formats, or null. */ ++#ifndef ATTRPRINTF ++#ifdef HAVE_GNUC25_PRINTFFORMAT ++#define ATTRPRINTF(si,tc) format(printf,si,tc) ++#else ++#define ATTRPRINTF(si,tc) ++#endif ++#endif ++#ifndef PRINTFFORMAT ++#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) ++#endif ++ ++/* GNU C nonreturning functions, or null. */ ++#ifndef ATTRNORETURN ++#ifdef HAVE_GNUC25_NORETURN ++#define ATTRNORETURN noreturn ++#else ++#define ATTRNORETURN ++#endif ++#endif ++#ifndef NONRETURNING ++#define NONRETURNING FUNCATTR((ATTRNORETURN)) ++#endif ++ ++/* Combination of both the above. */ ++#ifndef NONRETURNPRINTFFORMAT ++#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) ++#endif ++ ++/* GNU C constant functions, or null. */ ++#ifndef ATTRCONST ++#ifdef HAVE_GNUC25_CONST ++#define ATTRCONST const ++#else ++#define ATTRCONST ++#endif ++#endif ++#ifndef CONSTANT ++#define CONSTANT FUNCATTR((ATTRCONST)) ++#endif ++ ++#ifdef HAVEUSE_RPCTYPES_H ++#include ++#endif ++]) ++ + AC_CHECK_FUNCS(poll) + ADNS_C_GETFUNC(socket,socket) + ADNS_C_GETFUNC(inet_ntoa,nsl) diff --git a/adns-destdir.diff b/adns-destdir.diff new file mode 100644 index 0000000..67c2730 --- /dev/null +++ b/adns-destdir.diff @@ -0,0 +1,48 @@ +--- client/Makefile.in ++++ client/Makefile.in 2006/09/01 12:21:44 +@@ -58,9 +58,9 @@ + all: $(TARGETS) + + install: $(TARG_INSTALL) +- mkdir -p $(bindir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(bindir) + set -xe; for f in $(TARG_INSTALL); \ +- do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done ++ do $(INSTALL_PROGRAM) $$f $(DESTDIR)/$(bindir)/$$f; done + + uninstall: + for f in $(TARGETS); do rm -f $(bindir)/$$f; done +--- dynamic/Makefile.in ++++ dynamic/Makefile.in 2006/09/01 12:23:20 +@@ -30,10 +30,10 @@ + ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS))) + + install: +- mkdir -p $(libdir) +- $(INSTALL_PROGRAM) $(SHLIBFILE) $(libdir)/$(SHLIBFILE) +- ln -sf $(SHLIBFILE) $(libdir)/$(SHLIBSONAME) +- ln -sf $(SHLIBSONAME) $(libdir)/$(SHLIBFORLINK) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir) ++ $(INSTALL_PROGRAM) $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBFILE) ++ ln -sf $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBSONAME) ++ ln -sf $(SHLIBSONAME) $(DESTDIR)/$(libdir)/$(SHLIBFORLINK) + + uninstall: + rm -f $(libdir)/$(SHLIBFILE) $(libdir)/$(SHLIBSONAME) +--- src/Makefile.in ++++ src/Makefile.in 2006/09/01 12:24:48 +@@ -28,10 +28,11 @@ + include adns.make + + install: +- mkdir -p $(libdir) $(includedir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(includedir) + set -xe; for f in $(TARGETS); \ +- do $(INSTALL_DATA) $$f $(libdir)/$$f; done +- $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/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 $(libdir)/$$f; done diff --git a/adns.changes b/adns.changes new file mode 100644 index 0000000..301110b --- /dev/null +++ b/adns.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +Fri Sep 1 15:19:17 CEST 2006 - mt@suse.de + +- updated to adns-1.3, providing new support for SRV RRs + and unknown RRs as well as several portability fixes. +- adopted configure and destdir patches, removed obsolete + codecleanup and missing_symlink patches + +------------------------------------------------------------------- +Thu Apr 27 00:03:42 CEST 2006 - mrueckert@suse.de + +- added adns-missing_symlink.diff: + add missing symlink "libadns.so" so you can dynamically + link against libadns. + +------------------------------------------------------------------- +Wed Jan 25 21:34:07 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 19 14:52:07 CET 2005 - ro@suse.de + +- added libadns.so.1 to filelist + +------------------------------------------------------------------- +Mon Apr 4 18:33:27 CEST 2005 - pth@suse.de + +- Make declarations of adns__parse_domain match. + +------------------------------------------------------------------- +Tue Aug 10 07:47:56 CEST 2004 - lmuelle@suse.de + +- Inital SuSE RPM; [#43590]. diff --git a/adns.spec b/adns.spec new file mode 100644 index 0000000..b52bb37 --- /dev/null +++ b/adns.spec @@ -0,0 +1,128 @@ +# +# spec file for package adns (Version 1.3) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: adns +Version: 1.3 +Release: 1 +License: GPL +Group: Productivity/Networking/DNS/Utilities +URL: http://www.chiark.greenend.org.uk/~ian/adns/ +Autoreqprov: on +Requires: libadns = %{version} +Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities +Source: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.gz +Source1: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.gz.sig +Patch0: adns-destdir.diff +Patch1: adns-configure.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Prefix: /usr + +%description +adns includes a collection of useful DNS resolver utilities. + + + +Authors: +-------- + Ian Jackson + +%package -n libadns +Summary: Advanced DNS resolver client library +Group: System/Libraries +Autoreqprov: on + +%description -n libadns +Libadns is an advanced, easy to use, asynchronous-capable DNS resolver +client library for C (and C++) programs. + + + +Authors: +-------- + Ian Jackson + +%package -n libadns-devel +Summary: Libraries and header files to develop programs with libads support. +Group: Development/Languages/C and C++ +Autoreqprov: on +Requires: libadns = %{version}, glibc-devel + +%description -n libadns-devel +Libadns-devel includes the header file and static library to develop +programs with libads support. + + + +Authors: +-------- + Ian Jackson + +%prep +%setup -q +%patch0 +%patch1 + +%build +%{?suse_update_config:%{suse_update_config -f}} +rm acconfig.h +autoreconf -fi +export CFLAGS="$RPM_OPT_FLAGS -Wall" +%configure +%{__make} all + +%install +[ "%buildroot" != "/" -a -d %buildroot ] && rm -rf %buildroot +mkdir -p \ + %buildroot/%{_bindir} \ + %buildroot/%{_libdir} \ + %buildroot/%{_includedir} +%{__make} DESTDIR=%buildroot install + +%clean +[ "%buildroot" != "/" -a -d %buildroot ] && rm -rf %buildroot + +%files +%defattr(-,root,root) +%{_bindir}/adnshost +%{_bindir}/adnslogres +%{_bindir}/adnsresfilter +%{_bindir}/adnsheloex +%doc changelog COPYING GPL-vs-LGPL INSTALL README* TODO + +%files -n libadns +%defattr(-,root,root) +%{_libdir}/libadns.so.1* + +%files -n libadns-devel +%defattr(-,root,root) +%{_includedir}/adns.h +%{_libdir}/libadns.a +%{_libdir}/libadns.so + +%changelog -n adns +* Fri Sep 01 2006 - mt@suse.de +- updated to adns-1.3, providing new support for SRV RRs + and unknown RRs as well as several portability fixes. +- adopted configure and destdir patches, removed obsolete + codecleanup and missing_symlink patches +* Thu Apr 27 2006 - mrueckert@suse.de +- added adns-missing_symlink.diff: + add missing symlink "libadns.so" so you can dynamically + link against libadns. +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Dec 19 2005 - ro@suse.de +- added libadns.so.1 to filelist +* Mon Apr 04 2005 - pth@suse.de +- Make declarations of adns__parse_domain match. +* Tue Aug 10 2004 - lmuelle@suse.de +- Inital SuSE RPM; [#43590]. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4