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
| System | Port | Version |
|---|---|---|
| FreeBSD | www/p5-URI-Normalize | 0.002 |
| DragonFly | www/p5-URI-Normalize | 0.002 |
| HardenedBSD | www/p5-URI-Normalize | 0.002 |
| GhostBSD | www/p5-URI-Normalize | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.002 | 0.002 | 0.002 | 0.002 | 0.002 |
| FreeBSD:14:quarterly | 0.002 | 0.002 | n/a | 0.002 | 0.002 |
| FreeBSD:15:latest | 0.002 | 0.002 | n/a | 0.002 | 0.002 |
| FreeBSD:15:quarterly | 0.002 | 0.002 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.002 | 0.002 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 1
p5-URI>0: net/p5-URI
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
| File | Size | SHA256 |
|---|---|---|
| URI-Normalize-0.002.tar.gz | 10825 | e08b96b53f45bc2e4b1ffb1eddbbf85ae89e6177c7ad79ea112a2b92040b1e83 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.