aboutsummaryrefslogtreecommitdiff
path: root/dns/p5-AnyEvent-DNS-EtcHosts
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2015-03-10 06:39:34 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2015-03-10 06:39:34 +0000
commitcfea6c4475e2613d3af444c068b11957fee1ef06 (patch)
tree303fc5f6e9e66374f39d572c474fadabe7060742 /dns/p5-AnyEvent-DNS-EtcHosts
parent1b67c2cdec41653856e0b85e098d9fd4a5240d05 (diff)
downloadports-cfea6c4475e2613d3af444c068b11957fee1ef06.tar.gz
ports-cfea6c4475e2613d3af444c068b11957fee1ef06.zip
Notes
Diffstat (limited to 'dns/p5-AnyEvent-DNS-EtcHosts')
-rw-r--r--dns/p5-AnyEvent-DNS-EtcHosts/Makefile20
-rw-r--r--dns/p5-AnyEvent-DNS-EtcHosts/distinfo2
-rw-r--r--dns/p5-AnyEvent-DNS-EtcHosts/pkg-descr15
-rw-r--r--dns/p5-AnyEvent-DNS-EtcHosts/pkg-plist2
4 files changed, 39 insertions, 0 deletions
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