aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2024-02-29 15:44:46 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2024-02-29 15:44:46 +0000
commitf35cf3def761f99e28177f1d239428cc3f6e5b7b (patch)
tree785a5b0ced75f9727a9c260c06c495e3be80fb87
parent76a79ae7bfe837b3e075b565ac91888bc9174352 (diff)
downloadports-f35cf3def761f99e28177f1d239428cc3f6e5b7b.tar.gz
ports-f35cf3def761f99e28177f1d239428cc3f6e5b7b.zip
www/p5-HTTP-Tiny-Paranoid: Add new port
This module is a subclass of HTTP::Tiny that performs exactly one additional function: before connecting, it passes the hostname to Net::DNS::Paranoid. If the hostname is rejected, then the request is aborted before a connect is even attempted. Approved by: hrs (mentor)
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-HTTP-Tiny-Paranoid/Makefile27
-rw-r--r--www/p5-HTTP-Tiny-Paranoid/distinfo3
-rw-r--r--www/p5-HTTP-Tiny-Paranoid/pkg-descr4
4 files changed, 35 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 6c2eb7981c21..fb80cc0f6e75 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -977,6 +977,7 @@
SUBDIR += p5-HTTP-Throwable
SUBDIR += p5-HTTP-Tiny
SUBDIR += p5-HTTP-Tiny-Multipart
+ SUBDIR += p5-HTTP-Tiny-Paranoid
SUBDIR += p5-HTTP-Tiny-SPDY
SUBDIR += p5-HTTP-Tiny-UA
SUBDIR += p5-HTTP-Tiny-UNIX
diff --git a/www/p5-HTTP-Tiny-Paranoid/Makefile b/www/p5-HTTP-Tiny-Paranoid/Makefile
new file mode 100644
index 000000000000..e49ea9fe8a8c
--- /dev/null
+++ b/www/p5-HTTP-Tiny-Paranoid/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= HTTP-Tiny-Paranoid
+PORTVERSION= 0.07
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:ROBN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= nork@FreeBSD.org
+COMMENT= Safer HTTP::Tiny
+WWW= https://metacpan.org/release/HTTP-Tiny-Paranoid
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+RUN_DEPENDS= p5-Class-Method-Modifiers>0:devel/p5-Class-Method-Modifiers \
+ p5-Net-DNS-Paranoid>0:dns/p5-Net-DNS-Paranoid
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+NO_TEST= yes
+
+PLIST_FILES= ${SITE_MAN3_REL}/HTTP::Tiny::Paranoid.3.gz \
+ ${SITE_PERL_REL}/HTTP/Tiny/Paranoid.pm
+
+.include <bsd.port.mk>
diff --git a/www/p5-HTTP-Tiny-Paranoid/distinfo b/www/p5-HTTP-Tiny-Paranoid/distinfo
new file mode 100644
index 000000000000..c9ef69db4e81
--- /dev/null
+++ b/www/p5-HTTP-Tiny-Paranoid/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708665196
+SHA256 (HTTP-Tiny-Paranoid-0.07.tar.gz) = 8b7f9389fb42d77f7b9e0a42f93da413e7b32d183db96bd35b3707840a29b094
+SIZE (HTTP-Tiny-Paranoid-0.07.tar.gz) = 11477
diff --git a/www/p5-HTTP-Tiny-Paranoid/pkg-descr b/www/p5-HTTP-Tiny-Paranoid/pkg-descr
new file mode 100644
index 000000000000..7492913e1e05
--- /dev/null
+++ b/www/p5-HTTP-Tiny-Paranoid/pkg-descr
@@ -0,0 +1,4 @@
+This module is a subclass of HTTP::Tiny that performs exactly one additional
+function: before connecting, it passes the hostname to Net::DNS::Paranoid.
+If the hostname is rejected, then the request is aborted before a connect is
+even attempted.