diff options
author | adam <adam> | 2011-01-28 08:29:34 +0000 |
---|---|---|
committer | adam <adam> | 2011-01-28 08:29:34 +0000 |
commit | 21f1004476977b6c9ed847b39670e6f4a4c6e831 (patch) | |
tree | 4f0fe8c0f76181ad6ff5e88154ec7da78d5cb9c4 /net/udns | |
parent | bb0ffcda65bf20e6e0116aac280b5c64c933fb7e (diff) | |
download | pkgsrc-21f1004476977b6c9ed847b39670e6f4a4c6e831.tar.gz |
Changes 0.1:
* bugfix: udns_new(old) - when actually cloning another context -
makes the new context referencing memory from old, which leads
to crashes when old is modified later
* use random queue IDs (the 16bit qID) in queries instead of sequentional
ones, based on simple pseudo-random RNG by Bob Jenkins (udns_jran.[ch]).
Some people believe that this improves security (CVE-2008-1447). I'm
still not convinced (see comments in udns_resolver.c), but it isn't
difficult to add after all.
* deprecate dns_random16() function which was declared in udns.h
(not anymore) but never documented. In order to keep ABI compatible
it is still exported.
* library has a way now to set query flags (DNS_SET_DO; DNS_SET_CD).
* dnsget now prints non-printable chars in all strings in DNS RRs using
decimal escape sequences (\%03u) instead of hexadecimal (\%02x) when
before - other DNS software does it like this.
* recognize a few more record types in dnsget, notable some DNSSEC RRs;
add -f option for dnsget to set query flags.
* udns is not a Debian native package anymore (was a wrong idea)
Diffstat (limited to 'net/udns')
-rw-r--r-- | net/udns/Makefile | 7 | ||||
-rw-r--r-- | net/udns/distinfo | 11 | ||||
-rw-r--r-- | net/udns/options.mk | 3 | ||||
-rw-r--r-- | net/udns/patches/patch-aa | 12 | ||||
-rw-r--r-- | net/udns/patches/patch-ab | 15 |
5 files changed, 31 insertions, 17 deletions
diff --git a/net/udns/Makefile b/net/udns/Makefile index b8f4ece263e..d8136d59992 100644 --- a/net/udns/Makefile +++ b/net/udns/Makefile @@ -1,15 +1,14 @@ -# $NetBSD: Makefile,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ +# $NetBSD: Makefile,v 1.2 2011/01/28 08:29:34 adam Exp $ -DISTNAME= udns_0.0.9 -PKGNAME= ${DISTNAME:S/_/-/} +DISTNAME= udns-0.1 CATEGORIES= net MASTER_SITES= http://www.corpit.ru/mjt/udns/ MAINTAINER= eric@cirr.com HOMEPAGE= http://www.corpit.ru/mjt/udns.html COMMENT= Lightweight DNS resolver supporting asynchronous queries - LICENSE= gnu-lgpl-v2.1 + PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} diff --git a/net/udns/distinfo b/net/udns/distinfo index c178e5cfc70..95b20760126 100644 --- a/net/udns/distinfo +++ b/net/udns/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ +$NetBSD: distinfo,v 1.2 2011/01/28 08:29:34 adam Exp $ -SHA1 (udns_0.0.9.tar.gz) = 9792ac12619d23d3086f960561428238c41a25e0 -RMD160 (udns_0.0.9.tar.gz) = c2d79b97cda87614a644da6a1be2d55f354d8a22 -Size (udns_0.0.9.tar.gz) = 84307 bytes -SHA1 (patch-aa) = 0a931b98584a8b1ab83cec093de95f76b2494aa4 +SHA1 (udns-0.1.tar.gz) = e3326684653701f9219cc213bdc3656dff269c80 +RMD160 (udns-0.1.tar.gz) = b0efb3587b419a483c32d66f7f295c05dff3dc47 +Size (udns-0.1.tar.gz) = 87703 bytes +SHA1 (patch-aa) = d0bab8fd8d987198a38c85086a9a7d490f188603 +SHA1 (patch-ab) = 3261f7f420c2baab49830d148c969c7595d31a04 diff --git a/net/udns/options.mk b/net/udns/options.mk index 5a560061409..1baf235d5f8 100644 --- a/net/udns/options.mk +++ b/net/udns/options.mk @@ -1,5 +1,4 @@ -# $NetBSD: options.mk,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ -# +# $NetBSD: options.mk,v 1.2 2011/01/28 08:29:34 adam Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.udns PKG_SUPPORTED_OPTIONS+= inet6 diff --git a/net/udns/patches/patch-aa b/net/udns/patches/patch-aa index 3736485eb8e..6528eea0624 100644 --- a/net/udns/patches/patch-aa +++ b/net/udns/patches/patch-aa @@ -1,18 +1,18 @@ -$NetBSD: patch-aa,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ +$NetBSD: patch-aa,v 1.2 2011/01/28 08:29:34 adam Exp $ -# update to use libtool for portability +Make use of libtool. ---- Makefile.in.orig 2007-01-15 22:19:08.000000000 +0100 +--- Makefile.in.orig 2010-12-27 17:35:02.000000000 +0000 +++ Makefile.in -@@ -34,7 +34,7 @@ DIST = COPYING.LGPL udns.h udns.3 dnsg +@@ -35,7 +35,7 @@ DIST = COPYING.LGPL udns.h udns.3 dnsg OBJS = $(SRCS:.c=.o) $(GEN:.c=.o) LIB = lib$(NAME).a -LIBFL = -L. -l$(NAME) +LIBFL = lib$(NAME).la - SOVER = 0 SOBJS = $(OBJS:.o=.lo) + SOLIB = lib$(NAME)_s.so @@ -63,10 +63,10 @@ all: static static: $(LIB) $(UTILS) staticlib: $(LIB) @@ -28,7 +28,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ shared: $(SOLIBV) $(SOUTILS) sharedlib: $(SOLIBV) @@ -183,14 +183,14 @@ dnsget.o dnsget.lo: dnsget.c config.h ud - rblcheck.o rblcheck.lo: rblcheck.c udns.h getopt.c + rblcheck.o rblcheck.lo: rblcheck.c config.h udns.h getopt.c ex-rdns.o ex-rdns.lo: ex-rdns.c udns.h dnsget: dnsget.o $(LIB) - $(CC) $(CFLAGS) -o $@ dnsget.o $(LIBFL) diff --git a/net/udns/patches/patch-ab b/net/udns/patches/patch-ab new file mode 100644 index 00000000000..2a3d3d374a7 --- /dev/null +++ b/net/udns/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1 2011/01/28 08:29:34 adam Exp $ + +Pass LDFLAGS for compiler test. + +--- configure.lib.orig 2011-01-28 08:24:46.000000000 +0000 ++++ configure.lib +@@ -125,7 +125,7 @@ ac_prog_c_compiler_v() { + echo 'int main(int argc, char **argv) { return 0; }' >conftest.c + + if [ -n "$CC" ]; then +- if ac_run $CC -o conftest conftest.c && ac_run ./conftest; then ++ if ac_run $CC $LDFLAGS -o conftest conftest.c && ac_run ./conftest; then + ac_result "\$CC ($CC)" + else + ac_result no |