Bug 179819 - new port: net/p5-Net-Google-SafeBrowsing2
Summary: new port: net/p5-Net-Google-SafeBrowsing2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Felippe de Meirelles Motta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 20:10 UTC by Alexandre Biancalana
Modified: 2013-06-24 19:40 UTC (History)
0 users

See Also:


Attachments
file.shar (5.09 KB, text/plain)
2013-06-21 20:10 UTC, Alexandre Biancalana
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Biancalana 2013-06-21 20:10:00 UTC

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-21 20:10:13 UTC
Class Changed
From-To: update->change-request

Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-21 20:10:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

perl@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 3 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-06-21 20:16:57 UTC
Responsible Changed
From-To: perl->lippe

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-24 19:36:33 UTC
Author: lippe
Date: Mon Jun 24 18:36:18 2013
New Revision: 321702
URL: http://svnweb.freebsd.org/changeset/ports/321702

Log:
  Net::Google::SafeBrowsing2 implements the Google Safe Browsing
  v2 API.
  
  The library passes most of the unit tests listed in the API
  documentation. See the documentation
  (http://code.google.com/apis/safebrowsing/developers_guide_v2.html)
  for more details about the failed tests.
  
  The Google Safe Browsing database must be stored and managed locally.
  Net::Google::SafeBrowsing2::Sqlite uses Sqlite as the storage back-end,
  Net::Google::SafeBrowsing2::MySQL uses MySQL. Other storage mechanisms
  (databases, memory, etc.) can be added and used transparently with this module.
  
  You may want to look at "Google Safe Browsing v2: Implementation Notes"
  (http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf),
  a collection of notes and real-world numbers about the API. This is intended
  for people who want to learn more about the API, whether as a user or to
  make their own implementation.
  
  WWW: http://search.cpan.org/dist/Net-Google-SafeBrowsing2/
  
  PR:		ports/179819
  Submitted by:	Alexandre Biancalana <ale@biancalanas.net>

Added:
  head/net/p5-Net-Google-SafeBrowsing2/
  head/net/p5-Net-Google-SafeBrowsing2/Makefile   (contents, props changed)
  head/net/p5-Net-Google-SafeBrowsing2/distinfo   (contents, props changed)
  head/net/p5-Net-Google-SafeBrowsing2/pkg-descr   (contents, props changed)
  head/net/p5-Net-Google-SafeBrowsing2/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Jun 24 18:35:04 2013	(r321701)
+++ head/net/Makefile	Mon Jun 24 18:36:18 2013	(r321702)
@@ -596,6 +596,7 @@
     SUBDIR += p5-Net-Google-Calendar
     SUBDIR += p5-Net-Google-Code
     SUBDIR += p5-Net-Google-DataAPI
+    SUBDIR += p5-Net-Google-SafeBrowsing2
     SUBDIR += p5-Net-Google-Spreadsheets
     SUBDIR += p5-Net-Growl
     SUBDIR += p5-Net-GrowlClient

Added: head/net/p5-Net-Google-SafeBrowsing2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/p5-Net-Google-SafeBrowsing2/Makefile	Mon Jun 24 18:36:18 2013	(r321702)
@@ -0,0 +1,64 @@
+# Created by: Alexandre Biancalana <ale@biancalanas.net>
+# $FreeBSD$
+
+PORTNAME=	Net-Google-SafeBrowsing2
+PORTVERSION=	1.09
+CATEGORIES=	net perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	ale@biancalanas.net
+COMMENT=	Perl extension for the Google Safe Browsing v2 API
+
+BUILD_DEPENDS=	p5-libwww>=5:${PORTSDIR}/www/p5-libwww \
+		p5-URI>=1:${PORTSDIR}/net/p5-URI \
+		p5-Digest-SHA>=5:${PORTSDIR}/security/p5-Digest-SHA \
+		p5-Net-IPAddress>=1:${PORTSDIR}/net-mgmt/p5-Net-IPAddress \
+		p5-Text-Trim>=1:${PORTSDIR}/textproc/p5-Text-Trim \
+		p5-MIME-Base64>=3:${PORTSDIR}/converters/p5-MIME-Base64 \
+		p5-MIME-Base64-URLSafe>=0.01:${PORTSDIR}/converters/p5-MIME-Base64-URLSafe \
+		p5-Digest-HMAC>=1:${PORTSDIR}/security/p5-Digest-HMAC \
+		p5-String-HexConvert>=0.01:${PORTSDIR}/textproc/p5-String-HexConvert \
+		p5-File-Slurp>9:${PORTSDIR}/devel/p5-File-Slurp
+
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+OPTIONS_DEFINE=	MySQL SQLite Postgres
+
+MySQL_DESC=	uses MySQL as the storage backend
+SQLite_DESC=	uses SQLite as the storage backend
+Postgres_DESC=	uses Postgres as the storage backend
+
+OPTIONS_DEFAULT=SQLite
+
+PERL_CONFIGURE=	yes
+
+MAN3=	Net::Google::SafeBrowsing2::Storage.3 \
+	Net::Google::SafeBrowsing2::Lookup.3 \
+	Net::Google::SafeBrowsing2::Postgres.3 \
+	Net::Google::SafeBrowsing2.3 \
+	Net::Google::SafeBrowsing2::DBI.3 \
+	Net::Google::SafeBrowsing2::MySQL.3 \
+	Net::Google::SafeBrowsing2::Sqlite.3
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSQLite}
+BUILD_DEPENDS+=	p5-DBD-SQLite>=1:${PORTSDIR}/databases/p5-DBD-SQLite
+RUN_DEPENDS+=	p5-DBD-SQLite>=1:${PORTSDIR}/databases/p5-DBD-SQLite
+.endif
+
+.if ${PORT_OPTIONS:MMySQL}
+BUILD_DEPENDS+=	p5-DBD-mysql>=4:${PORTSDIR}/databases/p5-DBD-mysql
+RUN_DEPENDS+=	p5-DBD-mysql>=4:${PORTSDIR}/databases/p5-DBD-mysql
+.endif
+
+.if ${PORT_OPTIONS:MPostgres}
+BUILD_DEPENDS+=	p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg
+RUN_DEPENDS+=	p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg
+.endif
+
+post-patch:
+	@${PERL} -pi -e 's/CPAN/ExtUtils/' ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.mk>

Added: head/net/p5-Net-Google-SafeBrowsing2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/p5-Net-Google-SafeBrowsing2/distinfo	Mon Jun 24 18:36:18 2013	(r321702)
@@ -0,0 +1,2 @@
+SHA256 (Net-Google-SafeBrowsing2-1.09.tar.gz) = e9cd9b2c33c7e75054de1b567ad6e43f258f081614740ccec20c45cda9201507
+SIZE (Net-Google-SafeBrowsing2-1.09.tar.gz) = 28308

Added: head/net/p5-Net-Google-SafeBrowsing2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/p5-Net-Google-SafeBrowsing2/pkg-descr	Mon Jun 24 18:36:18 2013	(r321702)
@@ -0,0 +1,20 @@
+Net::Google::SafeBrowsing2 implements the Google Safe Browsing
+v2 API.
+
+The library passes most of the unit tests listed in the API
+documentation. See the documentation
+(http://code.google.com/apis/safebrowsing/developers_guide_v2.html)
+for more details about the failed tests.
+
+The Google Safe Browsing database must be stored and managed locally.
+Net::Google::SafeBrowsing2::Sqlite uses Sqlite as the storage back-end,
+Net::Google::SafeBrowsing2::MySQL uses MySQL. Other storage mechanisms
+(databases, memory, etc.) can be added and used transparently with this module.
+
+You may want to look at "Google Safe Browsing v2: Implementation Notes"
+(http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf),
+a collection of notes and real-world numbers about the API. This is intended
+for people who want to learn more about the API, whether as a user or to
+make their own implementation.
+
+WWW: http://search.cpan.org/dist/Net-Google-SafeBrowsing2/

Added: head/net/p5-Net-Google-SafeBrowsing2/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/p5-Net-Google-SafeBrowsing2/pkg-plist	Mon Jun 24 18:36:18 2013	(r321702)
@@ -0,0 +1,14 @@
+%%SITE_PERL%%/Net/Google/SafeBrowsing2.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/Storage.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/Lookup.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/Postgres.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/DBI.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/Sqlite.pm
+%%SITE_PERL%%/Net/Google/SafeBrowsing2/MySQL.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google/SafeBrowsing2/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google/SafeBrowsing2
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Google
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
+@dirrm %%SITE_PERL%%/Net/Google/SafeBrowsing2
+@dirrmtry %%SITE_PERL%%/Net/Google
+@dirrmtry %%SITE_PERL%%/Net
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-06-24 19:39:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!