From cfea6c4475e2613d3af444c068b11957fee1ef06 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Tue, 10 Mar 2015 06:39:34 +0000 Subject: [PATCH] Add p5-AnyEvent-DNS-EtcHosts 0.0103, anyEvent::DNS::EtcHosts - Use /etc/hosts before DNS. PR: 198308 Submitted by: Geoffroy Desvernay --- dns/Makefile | 1 + dns/p5-AnyEvent-DNS-EtcHosts/Makefile | 20 ++++++++++++++++++++ dns/p5-AnyEvent-DNS-EtcHosts/distinfo | 2 ++ dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr | 15 +++++++++++++++ dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist | 2 ++ 5 files changed, 40 insertions(+) create mode 100644 dns/p5-AnyEvent-DNS-EtcHosts/Makefile create mode 100644 dns/p5-AnyEvent-DNS-EtcHosts/distinfo create mode 100644 dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr create mode 100644 dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist diff --git a/dns/Makefile b/dns/Makefile index 3a1f9c0faeb5..fea050488a37 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -96,6 +96,7 @@ SUBDIR += opendnssec SUBDIR += opendnssec13 SUBDIR += openresolv + SUBDIR += p5-AnyEvent-DNS-EtcHosts SUBDIR += p5-BIND-Conf_Parser SUBDIR += p5-BIND-Config-Parser SUBDIR += p5-DNS-Config diff --git a/dns/p5-AnyEvent-DNS-EtcHosts/Makefile b/dns/p5-AnyEvent-DNS-EtcHosts/Makefile new file mode 100644 index 000000000000..7ccec5c0b565 --- /dev/null +++ b/dns/p5-AnyEvent-DNS-EtcHosts/Makefile @@ -0,0 +1,20 @@ +# Created by: Geoffroy Desvernay +# $FreeBSD$ + +PORTNAME= AnyEvent-DNS-EtcHosts +PORTVERSION= 0.0103 +CATEGORIES= dns perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DEXTER +PKGNAMEPREFIX= p5- + +MAINTAINER= dgeo@centrale-marseille.fr +COMMENT= AnyEvent::DNS::EtcHosts - Use /etc/hosts before DNS + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +USES= perl5 +USE_PERL5= configure + +.include diff --git a/dns/p5-AnyEvent-DNS-EtcHosts/distinfo b/dns/p5-AnyEvent-DNS-EtcHosts/distinfo new file mode 100644 index 000000000000..653318b177da --- /dev/null +++ b/dns/p5-AnyEvent-DNS-EtcHosts/distinfo @@ -0,0 +1,2 @@ +SHA256 (AnyEvent-DNS-EtcHosts-0.0103.tar.gz) = 430a8572d811de03c2733249866cebc2045e9843f1b705ff47bb0c6d1080af5d +SIZE (AnyEvent-DNS-EtcHosts-0.0103.tar.gz) = 21290 diff --git a/dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr b/dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr new file mode 100644 index 000000000000..3e1be5176bf1 --- /dev/null +++ b/dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr @@ -0,0 +1,15 @@ +AnyEvent::DNS::EtcHosts AnyEvent::DNS behavior to use /etc/hosts + +The DNS lookups are emulated. This resolver returns the standard DNS reply based + on /etc/hosts file rather than real DNS. +You can choose different file by changing PERL_ANYEVENT_HOSTS +environment variable. +This module also disables original AnyEvent::Socket's helper function +which reads /etc/hosts file after DNS entry was not found. +It prevents to read this file twice. +The AnyEvent::Socket resolver searches IPv4 and IPv6 addresses separately. +If you don't want to check the addresses in DNS, both IPv4 and IPv6 addresses +should be placed in /etc/hosts or the protocol family should be set explicitly +for resolve_sockaddr function. + +WWW: https://metacpan.org/pod/URL::Encode diff --git a/dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist b/dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist new file mode 100644 index 000000000000..d1bc33fc776e --- /dev/null +++ b/dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist @@ -0,0 +1,2 @@ +%%PERL5_MAN3%%/AnyEvent::DNS::EtcHosts.3.gz +%%SITE_PERL%%/AnyEvent/DNS/EtcHosts.pm