From nobody Mon Apr 25 13:17:11 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 43BAC1A95DCF; Mon, 25 Apr 2022 13:17:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kn5CD1NMNz4lts; Mon, 25 Apr 2022 13:17:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650892632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hsHZvnYV8xUppIkcUJMuq3vh4fIDXOY9IJb8IR1T8Iw=; b=N+egwjqicO2C42GyqZiNxjM5567Q69F0yx29YnTDuMsJwuWQqJfl+ng3Y3jPD5eJ0Bm9sw C52LVUShN6wWSEpXghIs1WvYySqjksFLXG9tWL0PUhkSSrBpMdDWjfQXGpQP5h8u7OVsZX kwQdQEdvpION4KVn8A9VlxzLw1amRCeH3s69XD4r3bV+p3Hq9Vr5PBo6hv4hgtU6XHpvOP dIpHSjZU+LuzsM73R78fnspAZghwTzrvsLb/v+senTZVTi7Vt2rqDarkOcbNw4Wn4+2x5a hdHCVFvtH0NSBvXEbO+CUhxCcnG2MbtEd1wTfy5vzOuOznjvTJJ/YMZickqzsw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0B42B1B17B; Mon, 25 Apr 2022 13:17:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23PDHB44037955; Mon, 25 Apr 2022 13:17:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23PDHBbC037954; Mon, 25 Apr 2022 13:17:11 GMT (envelope-from git) Date: Mon, 25 Apr 2022 13:17:11 GMT Message-Id: <202204251317.23PDHBbC037954@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: 6a7814d13943 - main - www/p5-URI-Normalize: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6a7814d1394361b14c5fb6f1dc8e0d3ae02dd003 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650892632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hsHZvnYV8xUppIkcUJMuq3vh4fIDXOY9IJb8IR1T8Iw=; b=kqa5q8d58Fewa4pDg86/2zdR9PjVlVVhTk3JbOPzFYHIx7qsYsl1MBiF8tYSZNomI7tDTs iy61B6aqVvMFqAD/gF2OauBRJMo8Mpl01LiPHw+Q9ZsVbZoqi2es/v4e9CecWMIpcuHuY6 evoMnzpn0dbEenkhyioVrz1v5as3GX/YFALcdYMlFRcjkPANjjHANycmEgN3r62ZYLLjPQ pYgAqJWXmYkzJsSwKj9srIrXuM3rAdHs5+STsrTPjCsvixmKxFL+FqF7lgDQD+WeKDvFWo 1hEZQ3i93A489/OeEeHyImso3QO6HAZFnR/QK9RRG1QgI85/sLM2GJArP75Tzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650892632; a=rsa-sha256; cv=none; b=Ua3YxDlAFLvM4UGRVO+au3/Q/HJ5X+4JvJ4j9NvWSrd/hkdg0c6gyiIifohYsoYBDVRVwb BO6Ewa50YKqCekYnvGwjyGjcXQg8iPCnCC/FdqdZoVyr7ki1u/Maoj+A2efRHtoDxFOlwb EhSgTLeGlTHQh3psSEKCDWJerEv59C2IjfHG6YOtHi9N6muQ/q49V6xNseJaJrcF138LXQ +NcarJS+mmO6dWqzBJG2pZVWKh4PnO80U7GzZ/0VRZ/2iHUjYIiHr34WkRXVOYTwe+Q7A6 7JKaMF7QHvs9jjjAWx19+rmJ5LIaMeIPTWYtnkKq45puiR7toyXwSL2C2OVlfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=6a7814d1394361b14c5fb6f1dc8e0d3ae02dd003 commit 6a7814d1394361b14c5fb6f1dc8e0d3ae02dd003 Author: Dan Langille AuthorDate: 2022-04-25 13:14:20 +0000 Commit: Dan Langille CommitDate: 2022-04-25 13:17:03 +0000 www/p5-URI-Normalize: Add new port ::Normalize normalizes URIs according to RFC 3986. This has a number of useful applications in allowing URIs to be compared with fewer false negatives. For example, all of the following URIs will normalize to the same value: HTTPS://www.example.com:443/../test/../foo/index.html https://WWW.EXAMPLE.COM/./foo/index.html https://www.example.com/%66%6f%6f/index.html https://www.example.com/foo/index.html That is, they will all be normalized into the last value. Example: use URI; use URI::Normalize qw( normalize_uri remove_dot_segments ); my $uri = URI->new('HTTPS://www.Example.com:443/../test/../foo/index.html'); say normalize_uri($uri); #> https://www.example.com/foo/index.html say remove_dot_segments($uri); #> HTTPS://www.Example.com:443/foo/index.html WWW: https://metacpan.org/pod/URI::Normalize --- www/Makefile | 1 + www/p5-URI-Normalize/Makefile | 21 +++++++++++++++++++++ www/p5-URI-Normalize/distinfo | 3 +++ www/p5-URI-Normalize/pkg-descr | 23 +++++++++++++++++++++++ www/p5-URI-Normalize/pkg-plist | 2 ++ 5 files changed, 50 insertions(+) diff --git a/www/Makefile b/www/Makefile index 572ef34a7fc3..ad35bf9c9c13 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1193,6 +1193,7 @@ SUBDIR += p5-URI-Escape-JavaScript SUBDIR += p5-URI-Escape-XS SUBDIR += p5-URI-Fetch + SUBDIR += p5-URI-Normalize SUBDIR += p5-URI-ParseSearchString SUBDIR += p5-URI-Sequin SUBDIR += p5-URI-Title diff --git a/www/p5-URI-Normalize/Makefile b/www/p5-URI-Normalize/Makefile new file mode 100644 index 000000000000..d153569e0eba --- /dev/null +++ b/www/p5-URI-Normalize/Makefile @@ -0,0 +1,21 @@ +PORTNAME= URI-Normalize +PORTVERSION= 0.002 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Normalize URIs according to RFC 3986 + +LICENSE= GPLv1 ART10 +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= p5-URI>0:net/p5-URI + +USES= perl5 + +NO_ARCH= yes +USE_PERL5= configure + +.include diff --git a/www/p5-URI-Normalize/distinfo b/www/p5-URI-Normalize/distinfo new file mode 100644 index 000000000000..0b2646d2e496 --- /dev/null +++ b/www/p5-URI-Normalize/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650631625 +SHA256 (URI-Normalize-0.002.tar.gz) = e08b96b53f45bc2e4b1ffb1eddbbf85ae89e6177c7ad79ea112a2b92040b1e83 +SIZE (URI-Normalize-0.002.tar.gz) = 10825 diff --git a/www/p5-URI-Normalize/pkg-descr b/www/p5-URI-Normalize/pkg-descr new file mode 100644 index 000000000000..fb3526db427b --- /dev/null +++ b/www/p5-URI-Normalize/pkg-descr @@ -0,0 +1,23 @@ +URI::Normalize normalizes URIs according to RFC 3986. + +This has a number of useful applications in allowing URIs to be compared with +fewer false negatives. For example, all of the following URIs will normalize to +the same value: + +HTTPS://www.example.com:443/../test/../foo/index.html +https://WWW.EXAMPLE.COM/./foo/index.html +https://www.example.com/%66%6f%6f/index.html +https://www.example.com/foo/index.html + +That is, they will all be normalized into the last value. + +Example: + +use URI; +use URI::Normalize qw( normalize_uri remove_dot_segments ); +my $uri = URI->new('HTTPS://www.Example.com:443/../test/../foo/index.html'); + +say normalize_uri($uri); #> https://www.example.com/foo/index.html +say remove_dot_segments($uri); #> HTTPS://www.Example.com:443/foo/index.html + +WWW: https://metacpan.org/pod/URI::Normalize diff --git a/www/p5-URI-Normalize/pkg-plist b/www/p5-URI-Normalize/pkg-plist new file mode 100644 index 000000000000..fd7122b33775 --- /dev/null +++ b/www/p5-URI-Normalize/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/URI/Normalize.pm +%%PERL5_MAN3%%/URI::Normalize.3.gz