pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libdnsres Libdnsres provides a non-blocking thre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b494942ee543
branches:  trunk
changeset: 508457:b494942ee543
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sun Feb 19 17:11:06 2006 +0000

description:
Libdnsres provides a non-blocking thread-safe API for resolving DNS names.
It requires that your main application is built on top of libevent. Libdnsres'
API essentially mirrors the traditional gethostbyname and getaddrinfo
interfaces. All return values have been replaced by callbacks instead.

The code borrows heavily from the BSD resolver library. In fact, it is an
extremely ugly hack to make the BSD resolver library non-blocking and
thread-safe without changing the API too much.

diffstat:

 devel/libdnsres/DESCR            |   8 ++++++++
 devel/libdnsres/Makefile         |  16 ++++++++++++++++
 devel/libdnsres/PLIST            |   4 ++++
 devel/libdnsres/buildlink3.mk    |  18 ++++++++++++++++++
 devel/libdnsres/distinfo         |   6 ++++++
 devel/libdnsres/patches/patch-aa |  13 +++++++++++++
 6 files changed, 65 insertions(+), 0 deletions(-)

diffs (89 lines):

diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/DESCR     Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,8 @@
+Libdnsres provides a non-blocking thread-safe API for resolving DNS names.
+It requires that your main application is built on top of libevent. Libdnsres'
+API essentially mirrors the traditional gethostbyname and getaddrinfo
+interfaces. All return values have been replaced by callbacks instead.
+
+The code borrows heavily from the BSD resolver library. In fact, it is an
+extremely ugly hack to make the BSD resolver library non-blocking and
+thread-safe without changing the API too much.
diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/Makefile  Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+#
+
+DISTNAME=              libdnsres-0.1a
+CATEGORIES=            devel
+MASTER_SITES=          http://www.monkey.org/~provos/
+
+MAINTAINER=            adrianp%NetBSD.org@localhost
+HOMEPAGE=              http://www.monkey.org/~provos/
+COMMENT=               Non-blocking thread-safe API for resolving DNS names
+
+USE_PKGLOCALEDIR=      YES
+USE_LIBTOOL=           YES
+GNU_CONFIGURE=         YES
+
+.include "../../mk/bsd.pkg.mk"
diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/PLIST     Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+include/dnsres.h
+lib/libdnsres.la
+man/man3/dnsres.3
diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/buildlink3.mk     Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+LIBDNSRES_BUILDLINK3_MK:=      ${LIBDNSRES_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    libdnsres
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibdnsres}
+BUILDLINK_PACKAGES+=   libdnsres
+
+.if !empty(LIBDNSRES_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libdnsres+=  libdnsres>=0.1a
+BUILDLINK_PKGSRCDIR.libdnsres?=        ../../devel/libdnsres
+.endif # LIBDNSRES_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/distinfo  Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+
+SHA1 (libdnsres-0.1a.tar.gz) = 570b5d8071dacf16ba7588d6c3fc6f4c3ed55976
+RMD160 (libdnsres-0.1a.tar.gz) = 05a92882d1fc0394792e9f28be4584650b46e323
+Size (libdnsres-0.1a.tar.gz) = 360583 bytes
+SHA1 (patch-aa) = e18e80c307c26e0d7c1626171f7c881092174b29
diff -r 85ab16c87e3b -r b494942ee543 devel/libdnsres/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdnsres/patches/patch-aa  Sun Feb 19 17:11:06 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+
+--- Makefile.in.orig   2005-09-23 17:13:06.000000000 +0100
++++ Makefile.in
+@@ -221,7 +221,7 @@ INCLUDES = -I$(top_srcdir)/compat @EVENT
+ man_MANS = dnsres.3
+ simple_test_SOURCES = test/simple_test.c
+ simple_test_INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/compat @EVENTINC@
+-simple_test_LDADD = -L$(top_buildir) -ldnsres @EVENTLIB@
++simple_test_LDADD = -L. -ldnsres @EVENTLIB@
+ DISTCLEANFILES = *~ test/*~
+ all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive



Home | Main Index | Thread Index | Old Index