debian/0000775000000000000000000000000012270211023007156 5ustar debian/control0000664000000000000000000000231112114416557010576 0ustar Source: udns Priority: optional Section: net Maintainer: Michael Tokarev Uploaders: Thadeu Lima de Souza Cascardo Build-Depends: debhelper (>= 8.1.3~) Standards-Version: 3.9.4 Package: libudns0 Section: libs Multi-Arch: same Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: async-capable DNS stub resolver library libudns0 package provides libudns shared library needed to run programs using it Package: libudns-dev Section: libdevel Architecture: any Depends: libudns0 (= ${binary:Version}), ${misc:Depends} Description: async-capable DNS stub resolver library, development files This package provides development files needed to build programs using udns library Package: udns-utils Section: net Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: rblcheck Description: Several DNS-related utilities built on top of udns library This package includes the following utilities: dnsget - a simple DNS query tool, like `host' or `dig' for usage from a command line, and dnsip, dnsname etc for usage in scripts rblcheck - DNSBL (rbl) checker All the utilities are built using udns library debian/compat0000664000000000000000000000000211677321472010400 0ustar 8 debian/changelog.mjt0000664000000000000000000001114611677317702011651 0ustar udns (0.2-1) unstable; urgency=low * new upstream version (Closes: #493599) * non-native debian package again * revisited all debian stuff: simplified debian/rules a bit, reviewed standards-version and debhelper compat rules, made the library multiarch. -- Michael Tokarev Fri, 30 Dec 2011 15:24:04 +0400 udns (0.0.9) unstable; urgency=low * s/EOVERFLOW/ENFILE, partly to make win32 happy * several win32 fixes * don't use `class' in udns.h, to make C++ happy (thanks Markus Koetter for pointing this out) * fixed CNAME handling in dnsget tool. Another Thank You! goes to Markus Koetter. * NAPTR (RFC3403) support, thanks to Mikael Magnusson for this. * more Win32 fixes from Mikael Magnusson. I have to admit I never tried to compile it on Win32. * added NOTES file * reworked initialisation stuff. Minor API changes -- new dns_reset(), dns_init() now has one more argument, corrections to dns_close(), dns_open(), dns_free(). Cleaned up *_internal() routines. * moved dns_init() routine into separate file. * reworked dn suffix searching. As a result, query only has dnsq_dn[] field -- no header and EDNS0 "suffix", and query packet is now formatted in dns_send() * added inet_XtoX.c - public domain implementations of inet_pton() and inet_ntop(), inet_aton() and inet_ntoa() routines. * added getopt.c - public domain implementation of getopt() routine. * switched to autoconf-style configuration * introduce dns_random16() to generate query IDs (currently based on gettimeofday.tv_usec) * dnsget: fix printing of -t ANY and -c any records, thanks to Jaroslaw Rafa * implement dns_ntop() and dns_pton() as either wrappers or reimplementations (using inet_XtoX.c) of inet_ntop() and inet_pton(). Too much troubles with portability - it was a complete mess, each OS has its own problems with them. And use those routines everywhere. * s/WIN32/WINDOWS/g to allow building on WIN64. Oh well. * try to find query by ID first, don't drop header-only replies early. This is in order to support FORMERR replies from nameservers which don't understand EDNS0. * retry queries w/o EDNS0 if sent with it and if server reported FORMERR or NOTIMPL * fixed debian/copyright and debian/control * rblcheck revamp -- Michael Tokarev Tue, 16 Jan 2007 00:00:28 +0300 udns (0.0.8) unstable; urgency=low * don't compare sockaddr_in's, but individual parts only (on some OSes, there are additional fields in this structure so memcmp() does not quite work) * use dnsc_t instead of unsigned char for DNs everywhere * SRV records (rfc2782) parsing, thanks to Thadeu Lima de Souza Cascardo. * manpage fixes -- Michael Tokarev Mon, 12 Sep 2005 16:06:45 +0400 udns (0.0.7) unstable; urgency=low * added dnsget.1 and rblcheck.1 manpages. * internal: use generic list implementation in udns_resolver.c * don't assume only backward DN pointers in replies, allow forward pointers too. This is quite large change, involves changing parsing API all over the places. * internal: typedef dnsc_t and dnscc_t for [const] unsigned char, to make function prototypes shorter to better fit on a single line. * in parsing routines, verify (assert) that the query type is the one we can handle. * recognize names (and resolve them) as nameservers in dnsget. * when new request is submitted, don't send it immediately, but add it into the head of the active queue with deadline=0. This will allow us to tweak some query settings before it will be processed. Note API change: removed `now' argument from all dns_submit_*() routines. * use single per-context user timer, not per-query. Note API change: different user timer callback * add dnsc_salen field -- length of the socket address used * fix dns_set_opt(DNS_OPT_FLAGS) which didn't work before * allow to set some options for a context wich is open but with no active queries -- Michael Tokarev Thu, 5 May 2005 23:14:29 +0400 udns (0.0.6) unstable; urgency=low * 0.0.6 release. ALOT of changes all over. Keep 'em in CVS logs! -- Michael Tokarev Fri, 8 Apr 2005 19:51:38 +0400 udns (0.0.5) unstable; urgency=low * Initial Release. * Provides 3 packages: libudns0 - shared library libudns-dev - development files and static library udns-utils - dnsget, rblcheck -- Michael Tokarev Thu, 7 Apr 2005 00:05:24 +0400 Local variables: mode: debian-changelog End: debian/changelog0000644000000000000000000000635712270171502011050 0ustar udns (0.4-1) unstable; urgency=low * new upstream release - another bugfix * pass LDFLAGS correctly, finally -- Michael Tokarev Thu, 23 Jan 2014 14:46:41 +0400 udns (0.3-1) unstable; urgency=low * new upstream release (Closes: #709518) Also fixes miscompilation by gcc due to non-strict-aliasing-friendly code. * use binary:Version for libudns-dev dependency, not source:Version. * rework usage of LDFLAGS/CFLAGS (pass LDFLAGS in CFLAGS for now) -- Michael Tokarev Sat, 18 Jan 2014 16:23:30 +0400 udns (0.2-2) unstable; urgency=low * fix debian/rules to refer to timestamps not phony rules, and add build-arch and build-indep targets. * Source-Version => source:Version * bump Standards-Version to 3.9.4 (no changes needed) * enable dpkg-buildflags usage (hardening etc) -- Michael Tokarev Fri, 21 Dec 2012 12:03:26 +0400 udns (0.2-1) unstable; urgency=low * new upstream version (Closes: #493599) * new maintainer, which is, part-time upstream author. Thank you Thadeu Lima for the previous work! * removed debian/README which explained that the software is under development with non-stabilized API * revisited all debian stuff: simplified debian/rules a bit, reviewed standards-version and debhelper compat rules, made the library multiarch. -- Michael Tokarev Wed, 19 Dec 2012 22:43:15 +0400 udns (0.0.9-3) unstable; urgency=low * Rewrite NEWS file using Debian changelog format and use the same date as the last release, when it was written. * Add Homepage control field. * Complies with Debian Policy version 3.8.2 (no changes required). * Rewrite descriptions to inform more and use punctuation, as well as capitalize UDNS name. -- Thadeu Lima de Souza Cascardo Sat, 11 Jul 2009 18:17:24 -0300 udns (0.0.9-2) unstable; urgency=low * debian/rules: links debian/README to debian/package.README.Debian. Closes: #437890 * Do not use DH_COMPAT but debian/compat, changed from 4 to 5, changed Build-Depends too. * Replaced ${Source-Version} with ${binary:Version}. -- Thadeu Lima de Souza Cascardo Wed, 12 Sep 2007 09:39:36 -0300 udns (0.0.9-1) unstable; urgency=low * New upstream release. Closes #408329 * Removes libudns.so in rules clean * Copies zone entries in rblcheck.c. Closes #403349 * Includes README and NEWS related to Debian explaining an ABI breakage * Back in sid. Closes #408820 * Install upstream NOTES and TODO -- Thadeu Lima de Souza Cascardo Thu, 1 Mar 2007 23:00:48 -0300 udns (0.0.8-2) unstable; urgency=low * Applied patch by Mikael Magnusson, to allow udns to be used in C++ programs. Should use dpatch and report upstream. Closes #400476 -- Thadeu Lima de Souza Cascardo Mon, 11 Dec 2006 20:50:35 -0200 udns (0.0.8-1) unstable; urgency=low * Moved upstream debian changelog into upstream changlog. * Changed rules to install doc changelog. * Changed maintainer to me. * Fixed sections for Source and Binary packages in control. * Fixed FSF address in copyright file. -- Thadeu Lima de Souza Cascardo Sat, 2 Sep 2006 22:52:04 -0300 debian/rules0000775000000000000000000000321612270170576010261 0ustar #! /usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) LIBDIR := usr/lib/$(DEB_HOST_MULTIARCH) SOVER = 0 CFLAGS = -Wall -W \ $(shell dpkg-buildflags --get CPPFLAGS) \ $(shell dpkg-buildflags --get CFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) config: config.h config.h: configure Makefile.in dh_testdir CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-ipv6 build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp: config.h dh_testdir $(MAKE) staticlib sharedlib rblcheck_s dnsget_s touch $@ clean: dh_testdir rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build-stamp dh_testdir dh_testroot dh_clean dh_installdirs dh_installdocs -A NEWS # libudns dh_install -plibudns$(SOVER) libudns.so.$(SOVER) $(LIBDIR) # libudns-dev dh_install -plibudns-dev libudns.a $(LIBDIR) ln -s libudns.so.$(SOVER) debian/libudns-dev/$(LIBDIR)/libudns.so dh_install -plibudns-dev udns.h usr/include dh_installman -plibudns-dev udns.3 dh_installdocs -plibudns-dev TODO NOTES dh_installexamples -plibudns-dev ex-rdns.c # udns-utils install -D dnsget_s debian/udns-utils/usr/bin/dnsget install -D rblcheck_s debian/udns-utils/usr/bin/rblcheck dh_installman -pudns-utils dnsget.1 rblcheck.1 binary-indep: binary-arch: build-stamp install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_makeshlibs -V dh_installdeb dh_shlibdeps -L libudns$(SOVER) -l . dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch .PHONY: config build-arch build-indep build clean binary-arch binary-indep binary install debian/source/0000755000000000000000000000000011506150312010460 5ustar debian/source/format0000644000000000000000000000001411506150347011676 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000205711506146647011137 0ustar This is udns, written and maintained by Michael Tokarev The original source can always be found at: http://www.corpit.ru/mjt/udns.html Copyright (C) 2005,2006,2007,2010 Michael Tokarev The udns library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The udns library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Library General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.