This commit is contained in:
commit
6bdae8ef03
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
adns-1.3.tar.gz
Normal file
3
adns-1.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c6e2452ca82481d9da88d7745cdb0ffd6c1e54c906f58f57624ad37d353e0d16
|
||||
size 252263
|
BIN
adns-1.3.tar.gz.sig
Normal file
BIN
adns-1.3.tar.gz.sig
Normal file
Binary file not shown.
129
adns-configure.diff
Normal file
129
adns-configure.diff
Normal file
@ -0,0 +1,129 @@
|
||||
--- configure.in
|
||||
+++ configure.in 2006/09/01 12:30:00
|
||||
@@ -23,8 +23,7 @@
|
||||
AC_INIT(src/adns.h)
|
||||
AC_CONFIG_HEADER(src/config.h)
|
||||
|
||||
-dnl DPKG_CACHED_TRY_COMPILE(<description>,<cachevar>,<include>,<program>,<ifyes>,<ifno>)
|
||||
-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 <ian@davenant.greenend.org.uk>
|
||||
+ *
|
||||
+ * It is part of adns, which is
|
||||
+ * Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
|
||||
+ * Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
|
||||
+ *
|
||||
+ * 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 <sys/poll.h>
|
||||
+#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 <rpc/types.h>
|
||||
+#endif
|
||||
+])
|
||||
+
|
||||
AC_CHECK_FUNCS(poll)
|
||||
ADNS_C_GETFUNC(socket,socket)
|
||||
ADNS_C_GETFUNC(inet_ntoa,nsl)
|
48
adns-destdir.diff
Normal file
48
adns-destdir.diff
Normal file
@ -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
|
34
adns.changes
Normal file
34
adns.changes
Normal file
@ -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].
|
128
adns.spec
Normal file
128
adns.spec
Normal file
@ -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 <adns-maint at chiark dot greenend dot org dot uk>
|
||||
|
||||
%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 <adns-maint at chiark dot greenend dot org dot uk>
|
||||
|
||||
%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 <adns-maint at chiark dot greenend dot org dot uk>
|
||||
|
||||
%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].
|
Loading…
Reference in New Issue
Block a user