BSD Ports

www/p5-URI-Normalize 0.002 FreeBSD

Normalize URIs according to RFC 3986

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv1, ART10
Categories
www, perl5
Package size
12.2 KiB, 43.7 KiB installed

Description

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

In the other systems

SystemPortVersion
FreeBSDwww/p5-URI-Normalize0.002
DragonFlywww/p5-URI-Normalize0.002
HardenedBSDwww/p5-URI-Normalize0.002
GhostBSDwww/p5-URI-Normalize0.002

Install

Binary package:

pkg install p5-URI-Normalize

From the ports tree:

cd /usr/ports/www/p5-URI-Normalize/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-URI-Normalize>0:www/p5-URI-Normalize

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0020.0020.0020.0020.002
FreeBSD:14:quarterly0.0020.002n/a0.0020.002
FreeBSD:15:latest0.0020.002n/a0.0020.002
FreeBSD:15:quarterly0.0020.002n/an/an/a
FreeBSD:16:latest0.0020.002n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 4

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/URI/Normalize.pm
  • %%PERL5_MAN3%%/URI::Normalize.3.gz
distinfo 1
FileSizeSHA256
URI-Normalize-0.002.tar.gz10825e08b96b53f45bc2e4b1ffb1eddbbf85ae89e6177c7ad79ea112a2b92040b1e83
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.