BSD Ports

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

SystemPortVersion
FreeBSDwww/p5-Parse-HTTP-UserAgent0.43
DragonFlywww/p5-Parse-HTTP-UserAgent0.42
HardenedBSDwww/p5-Parse-HTTP-UserAgent0.43
GhostBSDwww/p5-Parse-HTTP-UserAgent0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.430.430.420.430.43
FreeBSD:14:quarterly0.430.43n/a0.430.43
FreeBSD:15:latest0.430.43n/a0.430.43
FreeBSD:15:quarterly0.430.43n/an/an/a
FreeBSD:16:latest0.430.43n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

Test 2

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
FileSizeSHA256
Parse-HTTP-UserAgent-0.43.tar.gz55466f092dfae99756d3daffd1c8912d6a04cd05e6bb13a4659377c6c46208d7bf184
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.