diff options
author | wiz <wiz@pkgsrc.org> | 2009-08-25 12:18:09 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2009-08-25 12:18:09 +0000 |
commit | 588723e1216abe084aaf5eec4feba0c7c0a9647c (patch) | |
tree | 264e0d1dde5c52c492efc8b05ad7b6447db68169 /net | |
parent | 724818b671f7ccf2805bb7ef0ae116beb7e1e95c (diff) | |
download | pkgsrc-588723e1216abe084aaf5eec4feba0c7c0a9647c.tar.gz |
Initial import of libasyncns-0.7:
libasyncns is a C library for Linux/Unix for executing name service
queries asynchronously. It is an asynchronous wrapper around
getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) from
libc and libresolv.
In contrast to GNU's asynchronous name resolving API getaddrinfo_a(),
libasyncns does not make use of UNIX signals for reporting completion
of name queries. Instead, the API exports a standard UNIX file
descriptor which may be integerated cleanly into custom main loops.
In contrast to asynchronous DNS resolving libraries like libdenise,
skadns, adns, libasyncns is just an asynchronous wrapper around
the libc's synchronous getaddrinfo() API, which has the advantage
of allowing name resolution using techniques like Multicast DNS,
LDAP or NIS using standard libc NSS (Name Service Switch) modules.
libasyncns is compatible with IPv6 if the underlying libc is.
libasyncns is very tiny, consisting of just one header and one
source file. It has no dependencies besides libc.
By default libasyncns spawns a number of worker threads (LWPs) to
process name queries. Alternatively or when POSIX Threads are not
supported, libasyncns can fork() off worker processes instead.
Diffstat (limited to 'net')
-rw-r--r-- | net/libasyncns/DESCR | 23 | ||||
-rw-r--r-- | net/libasyncns/Makefile | 22 | ||||
-rw-r--r-- | net/libasyncns/PLIST | 7 | ||||
-rw-r--r-- | net/libasyncns/distinfo | 5 |
4 files changed, 57 insertions, 0 deletions
diff --git a/net/libasyncns/DESCR b/net/libasyncns/DESCR new file mode 100644 index 00000000000..ee2c38746e7 --- /dev/null +++ b/net/libasyncns/DESCR @@ -0,0 +1,23 @@ +libasyncns is a C library for Linux/Unix for executing name service +queries asynchronously. It is an asynchronous wrapper around +getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) from +libc and libresolv. + +In contrast to GNU's asynchronous name resolving API getaddrinfo_a(), +libasyncns does not make use of UNIX signals for reporting completion +of name queries. Instead, the API exports a standard UNIX file +descriptor which may be integerated cleanly into custom main loops. + +In contrast to asynchronous DNS resolving libraries like libdenise, +skadns, adns, libasyncns is just an asynchronous wrapper around +the libc's synchronous getaddrinfo() API, which has the advantage +of allowing name resolution using techniques like Multicast DNS, +LDAP or NIS using standard libc NSS (Name Service Switch) modules. +libasyncns is compatible with IPv6 if the underlying libc is. + +libasyncns is very tiny, consisting of just one header and one +source file. It has no dependencies besides libc. + +By default libasyncns spawns a number of worker threads (LWPs) to +process name queries. Alternatively or when POSIX Threads are not +supported, libasyncns can fork() off worker processes instead. diff --git a/net/libasyncns/Makefile b/net/libasyncns/Makefile new file mode 100644 index 00000000000..d3244a13608 --- /dev/null +++ b/net/libasyncns/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/08/25 12:18:09 wiz Exp $ +# + +DISTNAME= libasyncns-0.7 +CATEGORIES= net +MASTER_SITES= http://0pointer.de/lennart/projects/libasyncns/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://0pointer.de/lennart/projects/libasyncns/ +COMMENT= C library for executing name service queries asynchronously +LICENSE= gnu-lgpl-v2.1 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +TEST_TARGET= check + +PKGCONFIG_OVERRIDE+= libasyncns.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/net/libasyncns/PLIST b/net/libasyncns/PLIST new file mode 100644 index 00000000000..279f2d3b0ac --- /dev/null +++ b/net/libasyncns/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/08/25 12:18:09 wiz Exp $ +include/asyncns.h +lib/libasyncns.la +lib/pkgconfig/libasyncns.pc +share/doc/libasyncns/README +share/doc/libasyncns/README.html +share/doc/libasyncns/style.css diff --git a/net/libasyncns/distinfo b/net/libasyncns/distinfo new file mode 100644 index 00000000000..0a0639cee7f --- /dev/null +++ b/net/libasyncns/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/08/25 12:18:09 wiz Exp $ + +SHA1 (libasyncns-0.7.tar.gz) = 6b67944c3623e23d08e58a7e6eec8eaf08e5395b +RMD160 (libasyncns-0.7.tar.gz) = caa0cc61bdd1ba6a9294fe4f1043009a0addacee +Size (libasyncns-0.7.tar.gz) = 374866 bytes |