diff options
author | vanilla <vanilla@FreeBSD.org> | 2015-03-10 14:39:34 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2015-03-10 14:39:34 +0800 |
commit | 555ddbaf4363dd787b18304bbaaa23c5e3a9c3c4 (patch) | |
tree | 303fc5f6e9e66374f39d572c474fadabe7060742 /dns | |
parent | e9ce2a8f78148ca239be62baad5834706145de3c (diff) | |
download | freebsd-ports-gnome-555ddbaf4363dd787b18304bbaaa23c5e3a9c3c4.tar.gz freebsd-ports-gnome-555ddbaf4363dd787b18304bbaaa23c5e3a9c3c4.tar.zst freebsd-ports-gnome-555ddbaf4363dd787b18304bbaaa23c5e3a9c3c4.zip |
Add p5-AnyEvent-DNS-EtcHosts 0.0103, anyEvent::DNS::EtcHosts - Use
/etc/hosts before DNS.
PR: 198308
Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr>
Diffstat (limited to 'dns')
-rw-r--r-- | dns/Makefile | 1 | ||||
-rw-r--r-- | dns/p5-AnyEvent-DNS-EtcHosts/Makefile | 20 | ||||
-rw-r--r-- | dns/p5-AnyEvent-DNS-EtcHosts/distinfo | 2 | ||||
-rw-r--r-- | dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr | 15 | ||||
-rw-r--r-- | dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist | 2 |
5 files changed, 40 insertions, 0 deletions
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 <dgeo@centrale-marseille.fr> +# $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 <bsd.port.mk> 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 |