From 4e4a78db3c90de3e977ba2027fa49d6200f172b0 Mon Sep 17 00:00:00 2001 From: adrianp Date: Thu, 1 Dec 2005 17:27:10 +0000 Subject: [PATCH] c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. The fork was made on ares 1.1.1. --- net/libcares/DESCR | 5 +++++ net/libcares/Makefile | 15 +++++++++++++++ net/libcares/PLIST | 27 +++++++++++++++++++++++++++ net/libcares/buildlink3.mk | 18 ++++++++++++++++++ net/libcares/distinfo | 5 +++++ 5 files changed, 70 insertions(+) create mode 100644 net/libcares/DESCR create mode 100644 net/libcares/Makefile create mode 100644 net/libcares/PLIST create mode 100644 net/libcares/buildlink3.mk create mode 100644 net/libcares/distinfo diff --git a/net/libcares/DESCR b/net/libcares/DESCR new file mode 100644 index 000000000000..cdb7e617ba3d --- /dev/null +++ b/net/libcares/DESCR @@ -0,0 +1,5 @@ +c-ares is a C library that performs DNS requests and name resolves +asynchronously. + +c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. +The fork was made on ares 1.1.1. diff --git a/net/libcares/Makefile b/net/libcares/Makefile new file mode 100644 index 000000000000..602f4994c95d --- /dev/null +++ b/net/libcares/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/12/01 17:27:10 adrianp Exp $ + +DISTNAME= c-ares-1.3.0 +PKGNAME= libcares-1.3.0 +CATEGORIES= net +MASTER_SITES= http://daniel.haxx.se/projects/c-ares/ + +MAINTAINER= adrianp@NetBSD.org +HOMEPAGE= http://daniel.haxx.se/projects/c-ares/ +COMMENT= Asynchronous resolver library + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES + +.include "../../mk/bsd.pkg.mk" diff --git a/net/libcares/PLIST b/net/libcares/PLIST new file mode 100644 index 000000000000..ae6f3b6d2539 --- /dev/null +++ b/net/libcares/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/01 17:27:10 adrianp Exp $ +include/ares.h +include/ares_version.h +lib/libcares.la +man/man3/ares_cancel.3 +man/man3/ares_destroy.3 +man/man3/ares_expand_name.3 +man/man3/ares_expand_string.3 +man/man3/ares_fds.3 +man/man3/ares_free_hostent.3 +man/man3/ares_free_string.3 +man/man3/ares_gethostbyaddr.3 +man/man3/ares_gethostbyname.3 +man/man3/ares_getnameinfo.3 +man/man3/ares_init.3 +man/man3/ares_init_options.3 +man/man3/ares_mkquery.3 +man/man3/ares_parse_a_reply.3 +man/man3/ares_parse_aaaa_reply.3 +man/man3/ares_parse_ptr_reply.3 +man/man3/ares_process.3 +man/man3/ares_query.3 +man/man3/ares_search.3 +man/man3/ares_send.3 +man/man3/ares_strerror.3 +man/man3/ares_timeout.3 +man/man3/ares_version.3 diff --git a/net/libcares/buildlink3.mk b/net/libcares/buildlink3.mk new file mode 100644 index 000000000000..691eaf19d67d --- /dev/null +++ b/net/libcares/buildlink3.mk @@ -0,0 +1,18 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/12/01 17:27:10 adrianp Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBCARES_BUILDLINK3_MK:= ${LIBCARES_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= libcares +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibcares} +BUILDLINK_PACKAGES+= libcares + +.if !empty(LIBCARES_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.libcares+= libcares>=1.3.0 +BUILDLINK_PKGSRCDIR.libcares?= ../../net/libcares +.endif # LIBCARES_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/net/libcares/distinfo b/net/libcares/distinfo new file mode 100644 index 000000000000..bada434a5484 --- /dev/null +++ b/net/libcares/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/12/01 17:27:10 adrianp Exp $ + +SHA1 (c-ares-1.3.0.tar.gz) = 73c2bfa9dc1bde6b364a485c0c05ecf05688debe +RMD160 (c-ares-1.3.0.tar.gz) = f788b06b881ed71366f10761ae673965439ad07a +Size (c-ares-1.3.0.tar.gz) = 355195 bytes