New port: net/pear-Net_UserAgent_Detect PEAR class that detects web

browser, version and platform

	The Net_UserAgent object does a number of tests on an HTTP
	user agent string. The results of these tests are available
	via methods of the object.

	This module is based upon the JavaScript browser detection
	code available at
	http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
	This module had many influences from the lib/Browser.php
	code in version 1.3 of Horde.

PR:		ports/75815
Submitted by:	Antônio Carlos Venâncio Júnior <antonio@php.net>
This commit is contained in:
Edwin Groothuis 2005-01-09 04:59:35 +00:00
parent fff3444f06
commit cb9b5a9552
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125923
4 changed files with 45 additions and 0 deletions

View file

@ -542,6 +542,7 @@
SUBDIR += pear-Net_Sieve
SUBDIR += pear-Net_Socket
SUBDIR += pear-Net_URL
SUBDIR += pear-Net_UserAgent_Detect
SUBDIR += pear-SOAP
SUBDIR += pebrot
SUBDIR += pecl-yaz

View file

@ -0,0 +1,32 @@
# Ports collection makefile for: pear-Net_UserAgent_Detect
# Date created: 04 January 2005
# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
#
# $FreeBSD$
#
PORTNAME= Net_UserAgent_Detect
PORTVERSION= 2.0.1
CATEGORIES= net pear
MAINTAINER= antonio@php.net
COMMENT= PEAR class that detects web browser, version and platform
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PHP= yes
CATEGORY= Net/UserAgent
FILES= Detect.php
.include <bsd.port.pre.mk>
PHP_VERS= ${PHP_VERSION:S/.//g}
.if defined(PHP_VERS) && ${PHP_VERS} < 410
IGNORE= "You need PHP 4.1.0 or later to install PEAR::Net_UserAgent_Detect"
.endif
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (PEAR/Net_UserAgent_Detect-2.0.1.tgz) = b49c6a19b220d674db4355bdab3498e5
SIZE (PEAR/Net_UserAgent_Detect-2.0.1.tgz) = 8230

View file

@ -0,0 +1,10 @@
The Net_UserAgent object does a number of tests on an HTTP user
agent string. The results of these tests are available via methods of
the object.
This module is based upon the JavaScript browser detection code available
at http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
This module had many influences from the lib/Browser.php code in
version 1.3 of Horde.
WWW: http://pear.php.net/package/Net_UserAgent_Detect/