From owner-svn-ports-all@FreeBSD.ORG Tue Mar 11 18:01:08 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DDFB55E4; Tue, 11 Mar 2014 18:01:07 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BE3A4762; Tue, 11 Mar 2014 18:01:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2BI17Co009909; Tue, 11 Mar 2014 18:01:07 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2BI16P3009903; Tue, 11 Mar 2014 18:01:06 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201403111801.s2BI16P3009903@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Tue, 11 Mar 2014 18:01:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347898 - in head/databases: . p5-DBIx-Admin-DSNManager X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 18:01:08 -0000 Author: sunpoet Date: Tue Mar 11 18:01:06 2014 New Revision: 347898 URL: http://svnweb.freebsd.org/changeset/ports/347898 QAT: https://qat.redports.org/buildarchive/r347898/ Log: - Add p5-DBIx-Admin-DSNManager 2.01 DBIx::Admin::DSNManager manages a file of DSNs, for both testing and production. The INI-style format was selected, rather than, say, using an SQLite database, so that casual users could edit the file without needing to know SQL and without having to install the command line program sqlite3. Each DSN is normally for something requiring manual preparation, such as creating the database named in the DSN. In the case of SQLite, etc, where manual intervention is not required, you can still put the DSN in dsn.ini. One major use of this module is to avoid environment variable overload, since it is common to test Perl modules by setting the env vars $DBI_DSN, $DBI_USER and $DBI_PASS. But then the problem becomes: What do you do when you want to run tests against a set of databases servers? Some modules define sets of env vars, one set per database server, with awkward and hard-to-guess names. This is messy and obscure. DBIx::Admin::DSNManager is a solution to this problem. WWW: http://search.cpan.org/dist/DBIx-Admin-DSNManager/ Added: head/databases/p5-DBIx-Admin-DSNManager/ head/databases/p5-DBIx-Admin-DSNManager/Makefile (contents, props changed) head/databases/p5-DBIx-Admin-DSNManager/distinfo (contents, props changed) head/databases/p5-DBIx-Admin-DSNManager/pkg-descr (contents, props changed) head/databases/p5-DBIx-Admin-DSNManager/pkg-plist (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Tue Mar 11 17:58:47 2014 (r347897) +++ head/databases/Makefile Tue Mar 11 18:01:06 2014 (r347898) @@ -336,6 +336,7 @@ SUBDIR += p5-DBIWrapper SUBDIR += p5-DBIx-Abstract SUBDIR += p5-DBIx-Admin-CreateTable + SUBDIR += p5-DBIx-Admin-DSNManager SUBDIR += p5-DBIx-AnyDBD SUBDIR += p5-DBIx-Browse SUBDIR += p5-DBIx-Class Added: head/databases/p5-DBIx-Admin-DSNManager/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/p5-DBIx-Admin-DSNManager/Makefile Tue Mar 11 18:01:06 2014 (r347898) @@ -0,0 +1,27 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= DBIx-Admin-DSNManager +PORTVERSION= 2.01 +CATEGORIES= databases perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- +EXTRACT_SUFX= .tgz + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Manage a file of DSNs, for both testing and production + +LICENSE= ART20 + +BUILD_DEPENDS= p5-Config-Tiny>=2.12:${PORTSDIR}/devel/p5-Config-Tiny \ + p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \ + p5-File-Slurp>=9999.13:${PORTSDIR}/devel/p5-File-Slurp \ + p5-Moo>=1.004002:${PORTSDIR}/devel/p5-Moo +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-Version>=1.002.003:${PORTSDIR}/devel/p5-Test-Version \ + p5-Try-Tiny>=0.06:${PORTSDIR}/lang/p5-Try-Tiny + +USE_PERL5= configure +USES= perl5 + +.include Added: head/databases/p5-DBIx-Admin-DSNManager/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/p5-DBIx-Admin-DSNManager/distinfo Tue Mar 11 18:01:06 2014 (r347898) @@ -0,0 +1,2 @@ +SHA256 (DBIx-Admin-DSNManager-2.01.tgz) = e8c8a99ab82e6decbfec3523771f4a16de1005146f19164c47294e1f5d3aac6a +SIZE (DBIx-Admin-DSNManager-2.01.tgz) = 10761 Added: head/databases/p5-DBIx-Admin-DSNManager/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/p5-DBIx-Admin-DSNManager/pkg-descr Tue Mar 11 18:01:06 2014 (r347898) @@ -0,0 +1,24 @@ +DBIx::Admin::DSNManager manages a file of DSNs, for both testing and production. + +The INI-style format was selected, rather than, say, using an SQLite database, +so that casual users could edit the file without needing to know SQL and without +having to install the command line program sqlite3. + +Each DSN is normally for something requiring manual preparation, such as +creating the database named in the DSN. + +In the case of SQLite, etc, where manual intervention is not required, you can +still put the DSN in dsn.ini. + +One major use of this module is to avoid environment variable overload, since it +is common to test Perl modules by setting the env vars $DBI_DSN, $DBI_USER and +$DBI_PASS. + +But then the problem becomes: What do you do when you want to run tests against +a set of databases servers? Some modules define sets of env vars, one set per +database server, with awkward and hard-to-guess names. This is messy and +obscure. + +DBIx::Admin::DSNManager is a solution to this problem. + +WWW: http://search.cpan.org/dist/DBIx-Admin-DSNManager/ Added: head/databases/p5-DBIx-Admin-DSNManager/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/p5-DBIx-Admin-DSNManager/pkg-plist Tue Mar 11 18:01:06 2014 (r347898) @@ -0,0 +1,8 @@ +%%SITE_PERL%%/DBIx/Admin/DSNManager.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Admin/DSNManager/.packlist +%%PERL5_MAN3%%/DBIx::Admin::DSNManager.3.gz +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Admin/DSNManager +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Admin +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx +@dirrmtry %%SITE_PERL%%/DBIx/Admin +@dirrmtry %%SITE_PERL%%/DBIx