ports/98241: Update Port: devel/p5-Config-Fast 1.05->1.07
Aaron Dalton
aaron at FreeBSD.org
Wed May 31 21:10:22 UTC 2006
>Number: 98241
>Category: ports
>Synopsis: Update Port: devel/p5-Config-Fast 1.05->1.07
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed May 31 21:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Aaron Dalton
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD moondance.itsy-bitsy.net 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
- Update from v1.05 to v1.07
- Expand pkg-descr
revision 1.7
date: 2006/03/06 22:18:41; author: nwiger; state: Exp; lines: +140 -76
- changed defines to MixedCase for DataDumper consistency
- added @Define array that's pre-parsed
- wrapped everything inside an eval'ed package for safety
----------------------------
revision 1.6
date: 2006/02/26 18:52:03; author: nwiger; state: Exp; lines: +47 -15
- fixed internal $Var substitution errors
- Added $ARRAYS setting to parse bourne array[n] syntax
>How-To-Repeat:
>Fix:
--- submission.txt begins here ---
? p5-Config-Fast-1.07.tbz
? submission.txt
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/p5-Config-Fast/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 16 Nov 2005 20:07:58 -0000 1.3
+++ Makefile 31 May 2006 21:02:17 -0000
@@ -6,7 +6,7 @@
#
PORTNAME= Config-Fast
-PORTVERSION= 1.05
+PORTVERSION= 1.07
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Config
@@ -22,7 +22,7 @@
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= needs at least perl 5.6 to build
+IGNORE= needs at least perl 5.6 to run
.endif
.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/devel/p5-Config-Fast/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 16 Nov 2005 19:04:17 -0000 1.2
+++ distinfo 31 May 2006 21:02:17 -0000
@@ -1,3 +1,3 @@
-MD5 (Config-Fast-1.05.tar.gz) = 8fc7c2445a13e45296ee8aea6c940b06
-SHA256 (Config-Fast-1.05.tar.gz) = cb750116bb4bc8fff8ab375ebf1da672e4fd16fd309c02495009b5572fdc61cb
-SIZE (Config-Fast-1.05.tar.gz) = 8292
+MD5 (Config-Fast-1.07.tar.gz) = 7228e3419b50d74b07d3033d9ca6928e
+SHA256 (Config-Fast-1.07.tar.gz) = 7b03043b2a722384af570cea7083f68c437744cea902cfa89ed00b6821cc5d8f
+SIZE (Config-Fast-1.07.tar.gz) = 10020
Index: pkg-descr
===================================================================
RCS file: /home/pcvs/ports/devel/p5-Config-Fast/pkg-descr,v
retrieving revision 1.2
diff -u -r1.2 pkg-descr
--- pkg-descr 21 Sep 2005 19:30:43 -0000 1.2
+++ pkg-descr 31 May 2006 21:02:17 -0000
@@ -1,4 +1,42 @@
-This Config::Fast module. This allow extremely fast configuration files to
-be parsed.
+This module is designed to provide an extremely lightweight way to parse
+moderately complex configuration files. As such, it exports a single
+function - fastconfig() - and does not provide any OO access methods.
+Still, it is fairly full-featured.
+
+Here's how it works:
+
+ %cf = fastconfig($file, $delim);
+
+Basically, the fastconfig() function returns a hash of keys and values
+based on the directives in your configuration file. By default, directives
+and values are separated by whitespace in the config file, but this can be
+easily changed with the delimiter argument (see below).
+
+When the configuration file is read, its modification time is first
+checked and the results cached. On each call to fastconfig(), if the
+config file has been changed, then the file is reread. Otherwise, the
+cached results are returned automatically. This makes this module great
+for mod_perl modules and scripts, one of the primary reasons I wrote it.
+Simply include this at the top of your script or inside of your
+constructor function:
+
+ my %cf = fastconfig('/path/to/config/file.conf');
+
+If the file argument is omitted, then fastconfig() looks for a file named
+$0.conf in the ../etc directory relative to the executable. For example,
+if you ran:
+
+ /usr/local/bin/myapp
+
+Then fastconfig() will automatically look for:
+
+ /usr/local/etc/myapp.conf
+
+This is great if you're really lazy and always in a hurry, like I am.
+
+If this doesn't work for you, simply supply a filename manually. Note that
+filename generation does not work in mod_perl, so you'll need to supply a
+filename manually.
WWW: http://search.cpan.org/dist/Config-Fast/
+Author: Nathan Wiger <nate at wiger.org>
--- submission.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list