Date: Fri, 21 Jun 2013 19:00:57 GMT From: Alexandre Biancalana <ale@biancalanas.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/179819: new port: net/p5-Net-Google-SafeBrowsing2 Message-ID: <201306211900.r5LJ0vgP033087@oldred.freebsd.org> Resent-Message-ID: <201306211910.r5LJA05X093985@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179819 >Category: ports >Synopsis: new port: net/p5-Net-Google-SafeBrowsing2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Jun 21 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexandre Biancalana >Release: 9.1 >Organization: >Environment: >Description: >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # net/p5-Net-Google-SafeBrowsing2 # net/p5-Net-Google-SafeBrowsing2/Makefile # net/p5-Net-Google-SafeBrowsing2/distinfo # net/p5-Net-Google-SafeBrowsing2/pkg-descr # net/p5-Net-Google-SafeBrowsing2/pkg-plist # echo c - net/p5-Net-Google-SafeBrowsing2 mkdir -p net/p5-Net-Google-SafeBrowsing2 > /dev/null 2>&1 echo x - net/p5-Net-Google-SafeBrowsing2/Makefile sed 's/^X//' >net/p5-Net-Google-SafeBrowsing2/Makefile << '14dd31aa63fd772801f2136ff89a58cb' X# Created by: Alexandre Biancalana <ale@biancalanas.net> X# $FreeBSD$ X XPORTNAME= Net-Google-SafeBrowsing2 XPORTVERSION= 1.09 XCATEGORIES= net perl5 XMASTER_SITES= CPAN XPKGNAMEPREFIX= p5- X XMAINTAINER= ale@biancalanas.net XCOMMENT= Perl extension for the Google Safe Browsing v2 API X XBUILD_DEPENDS= p5-libwww>=5:${PORTSDIR}/www/p5-libwww \ X p5-URI>=1:${PORTSDIR}/net/p5-URI \ X p5-Digest-SHA>=5:${PORTSDIR}/security/p5-Digest-SHA \ X p5-Net-IPAddress>=1:${PORTSDIR}/net-mgmt/p5-Net-IPAddress \ X p5-Text-Trim>=1:${PORTSDIR}/textproc/p5-Text-Trim \ X p5-MIME-Base64>=3:${PORTSDIR}/converters/p5-MIME-Base64 \ X p5-MIME-Base64-URLSafe>=0.01:${PORTSDIR}/converters/p5-MIME-Base64-URLSafe \ X p5-Digest-HMAC>=1:${PORTSDIR}/security/p5-Digest-HMAC \ X p5-String-HexConvert>=0.01:${PORTSDIR}/textproc/p5-String-HexConvert \ X p5-File-Slurp>9:${PORTSDIR}/devel/p5-File-Slurp X XRUN_DEPENDS:= ${BUILD_DEPENDS} X XOPTIONS_DEFINE= MySQL SQLite Postgres X XMySQL_DESC= uses MySQL as the storage backend XSQLite_DESC= uses SQLite as the storage backend XPostgres_DESC= uses Postgres as the storage backend X XOPTIONS_DEFAULT=SQLite X XPERL_CONFIGURE= yes X XMAN3= Net::Google::SafeBrowsing2::Storage.3 \ X Net::Google::SafeBrowsing2::Lookup.3 \ X Net::Google::SafeBrowsing2::Postgres.3 \ X Net::Google::SafeBrowsing2.3 \ X Net::Google::SafeBrowsing2::DBI.3 \ X Net::Google::SafeBrowsing2::MySQL.3 \ X Net::Google::SafeBrowsing2::Sqlite.3 X X.include <bsd.port.options.mk> X X.if ${PORT_OPTIONS:MSQLite} XBUILD_DEPENDS+= p5-DBD-SQLite>=1:${PORTSDIR}/databases/p5-DBD-SQLite XRUN_DEPENDS+= p5-DBD-SQLite>=1:${PORTSDIR}/databases/p5-DBD-SQLite X.endif X X.if ${PORT_OPTIONS:MMySQL} XBUILD_DEPENDS+= p5-DBD-mysql>=4:${PORTSDIR}/databases/p5-DBD-mysql XRUN_DEPENDS+= p5-DBD-mysql>=4:${PORTSDIR}/databases/p5-DBD-mysql X.endif X X.if ${PORT_OPTIONS:MPostgres} XBUILD_DEPENDS+= p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg XRUN_DEPENDS+= p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg X.endif X Xpost-patch: X @${PERL} -pi -e 's/CPAN/ExtUtils/' ${WRKSRC}/Makefile.PL X X.include <bsd.port.mk> 14dd31aa63fd772801f2136ff89a58cb echo x - net/p5-Net-Google-SafeBrowsing2/distinfo sed 's/^X//' >net/p5-Net-Google-SafeBrowsing2/distinfo << '9d256aecaa03ef53837549d8c3129463' XSHA256 (Net-Google-SafeBrowsing2-1.09.tar.gz) = e9cd9b2c33c7e75054de1b567ad6e43f258f081614740ccec20c45cda9201507 XSIZE (Net-Google-SafeBrowsing2-1.09.tar.gz) = 28308 9d256aecaa03ef53837549d8c3129463 echo x - net/p5-Net-Google-SafeBrowsing2/pkg-descr sed 's/^X//' >net/p5-Net-Google-SafeBrowsing2/pkg-descr << '0c1cd93d53eb26b6a13781607078e267' XNet::Google::SafeBrowsing2 implements the Google Safe Browsing Xv2 API. X XThe library passes most of the unit tests listed in the API Xdocumentation. See the documentation X(http://code.google.com/apis/safebrowsing/developers_guide_v2.html) Xfor more details about the failed tests. X XThe Google Safe Browsing database must be stored and managed locally. XNet::Google::SafeBrowsing2::Sqlite uses Sqlite as the storage back-end, XNet::Google::SafeBrowsing2::MySQL uses MySQL. Other storage mechanisms X(databases, memory, etc.) can be added and used transparently with this module. X XYou may want to look at "Google Safe Browsing v2: Implementation Notes" X(http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf), Xa collection of notes and real-world numbers about the API. This is intended Xfor people who want to learn more about the API, whether as a user or to Xmake their own implementation. X XWWW: http://search.cpan.org/dist/Net-Google-SafeBrowsing2/ 0c1cd93d53eb26b6a13781607078e267 echo x - net/p5-Net-Google-SafeBrowsing2/pkg-plist sed 's/^X//' >net/p5-Net-Google-SafeBrowsing2/pkg-plist << '4087173fe14e470be11c4fb98c2b1388' X%%SITE_PERL%%/Net/Google/SafeBrowsing2.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/Storage.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/Lookup.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/Postgres.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/DBI.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/Sqlite.pm X%%SITE_PERL%%/Net/Google/SafeBrowsing2/MySQL.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google/SafeBrowsing2/.packlist X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google/SafeBrowsing2 X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net X@dirrm %%SITE_PERL%%/Net/Google/SafeBrowsing2 X@dirrmtry %%SITE_PERL%%/Net/Google X@dirrmtry %%SITE_PERL%%/Net 4087173fe14e470be11c4fb98c2b1388 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306211900.r5LJ0vgP033087>