www/p5-Parse-HTTP-UserAgent 0.43 FreeBSD
Parser for the User Agent string
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- www, perl5
- Package size
- 33.1 KiB, 100.6 KiB installed
Description
Parse::HTTP::UserAgent implements a rules-based parser and tries to identify MSIE, FireFox, Opera, Safari & Chrome first. It then tries to identify Mozilla, Netscape, Robots and the rest will be tried with a generic parser. There is also a structure dumper, useful for debugging.
User agent strings are a complete mess since there is no standard format for them. They can be in various formats and can include more or less information depending on the vendor's (or the user's) choice. Also, it is not dependable since it is some arbitrary identification string. Any user agent can fake another. So, why deal with such a useless mess? You may want to see the choice of your visitors and can get some reliable data (even if some are fake) and generate some nice charts out of them or just want to send an HttpOnly cookie if the user agent seems to support it (and send a normal one if this is not the case). However, browser sniffing for client-side coding is considered a bad habit.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | www/p5-Parse-HTTP-UserAgent | 0.43 |
| DragonFly | www/p5-Parse-HTTP-UserAgent | 0.42 |
| HardenedBSD | www/p5-Parse-HTTP-UserAgent | 0.43 |
| GhostBSD | www/p5-Parse-HTTP-UserAgent | 0.43 |
Install
Binary package:
pkg install p5-Parse-HTTP-UserAgent
From the ports tree:
cd /usr/ports/www/p5-Parse-HTTP-UserAgent/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Parse-HTTP-UserAgent>0:www/p5-Parse-HTTP-UserAgent
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.43 | 0.43 | 0.42 | 0.43 | 0.43 |
| FreeBSD:14:quarterly | 0.43 | 0.43 | n/a | 0.43 | 0.43 |
| FreeBSD:15:latest | 0.43 | 0.43 | n/a | 0.43 | 0.43 |
| FreeBSD:15:quarterly | 0.43 | 0.43 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.43 | 0.43 | 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.
Build 3
p5-JSON>=0: converters/p5-JSONp5-XML-Simple>=0: textproc/p5-XML-Simplep5-YAML>=0: textproc/p5-YAML
Runtime 3
p5-JSON>=0: converters/p5-JSONp5-XML-Simple>=0: textproc/p5-XML-Simplep5-YAML>=0: textproc/p5-YAML
Test 2
p5-Test-Pod>=0: devel/p5-Test-Podp5-Test-Pod-Coverage>=0: devel/p5-Test-Pod-Coverage
The full lists below include those, and their dependencies in turn.
Build dependencies 10
Run dependencies 10
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 12
- %%SITE_PERL%%/Parse/HTTP/UserAgent.pm
- %%SITE_PERL%%/Parse/HTTP/UserAgent/Base/Accessors.pm
- %%SITE_PERL%%/Parse/HTTP/UserAgent/Base/Dumper.pm
- %%SITE_PERL%%/Parse/HTTP/UserAgent/Base/IS.pm
- %%SITE_PERL%%/Parse/HTTP/UserAgent/Base/Parsers.pm
- %%SITE_PERL%%/Parse/HTTP/UserAgent/Constants.pm
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent.3.gz
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent::Base::Accessors.3.gz
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent::Base::Dumper.3.gz
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent::Base::IS.3.gz
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent::Base::Parsers.3.gz
- %%PERL5_MAN3%%/Parse::HTTP::UserAgent::Constants.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Parse-HTTP-UserAgent-0.43.tar.gz | 55466 | f092dfae99756d3daffd1c8912d6a04cd05e6bb13a4659377c6c46208d7bf184 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.