Adding port www/p5-HTTP-SimpleLinkChecker, Check the HTTP response code

for a link.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-06-19 06:59:11 +00:00
parent 619d2397ad
commit ddd585c900
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165734
5 changed files with 61 additions and 0 deletions

View File

@ -638,6 +638,7 @@
SUBDIR += p5-HTTP-Server-Simple-Mason
SUBDIR += p5-HTTP-Server-Simple-Recorder
SUBDIR += p5-HTTP-Server-Simple-Static
SUBDIR += p5-HTTP-SimpleLinkChecker
SUBDIR += p5-HTTP-WebTest
SUBDIR += p5-HTTPD-Log-Filter
SUBDIR += p5-HTTPD-User-Manage

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: p5-HTTP-SimpleLinkChecker
# Date created: 19 Jun 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= HTTP-SimpleLinkChecker
PORTVERSION= 1.10
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTTP
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= Check the HTTP response code for a link
BUILD_DEPENDS= p5-libwww>0:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3= HTTP::SimpleLinkChecker.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600 # inherited from p5-libwww
IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (HTTP-SimpleLinkChecker-1.10.tar.gz) = f21202e45e6d8faf093b461baff8ea21
SHA256 (HTTP-SimpleLinkChecker-1.10.tar.gz) = 9af8590f88f20ca28b436a9abc433fcf4b154f407244649b09994432c4483e4f
SIZE (HTTP-SimpleLinkChecker-1.10.tar.gz) = 4131

View File

@ -0,0 +1,21 @@
You don't have to know anything about objected-oriented Perl, LWP, or the
HTTP module to be able to check your links. This module is designed for
the casual user. It has one function, check_link, that returns the HTTP
response code that it receives when it tries to fetch the web address
passed to it. The undef value is returned for any non-HTTP failure and the
$HTTP::SimpleLinkChecker::ERROR variable is set.
The HEAD method is tried first, although if anything other than a good
status code (those less than 400) is received, another request is made
with the GET method. Note, however, that even with the best code, no
module can control how servers decide to respond to a check, or control
any of the myriad things that can go wrong with the network between you
and the remote server. Some may filter requests based on origin IP
address, user-agent type, or any other arbitrary factor. Some servers may
not respond correctly at all. Furthermore, some servers might be
temporarily down or overloaded. I recommend that you recheck "broken"
links a couple times over a long period (like a day or two) before you
decide they are really broken.
WWW: http://search.cpan.org/dist/HTTP-SimpleLinkChecker
Author: brian d foy <bdfoy@cpan.org>

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/HTTP/SimpleLinkChecker.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/SimpleLinkChecker/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/SimpleLinkChecker
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP
@dirrmtry %%SITE_PERL%%/HTTP