New port: PEAR Config package provides methods for configuration manipulation

The Config package provides methods for configuration manipulation.

	* Creates configurations from scratch
	* Parses and outputs different formats (XML, PHP, INI, Apache...).
	* Edits existing configurations
	* Converts configurations to other formats
	* Allows manipulation of sections, comments, directives...
	* Parses configurations into a tree structure

PR:		ports/56362
Submitted by:	Alex Miller <asm@asm.kiev.ua>
This commit is contained in:
Edwin Groothuis 2003-09-08 00:34:19 +00:00
parent 4c28ca343d
commit 0c7e49b585
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88710
5 changed files with 70 additions and 0 deletions

View file

@ -793,6 +793,7 @@
SUBDIR += pcre++
SUBDIR += pcsc-lite
SUBDIR += pear
SUBDIR += pear-Config
SUBDIR += pear-Console_Getopt
SUBDIR += pear-Console_Table
SUBDIR += pear-Date

View file

@ -0,0 +1,42 @@
# Ports collection makefile for: pear-Config
# Date created: 02 September 2003
# Whom: Alex Miller (<asm@asm.kiev.ua>)
#
# $FreeBSD$
#
PORTNAME= Config
PORTVERSION= 1.8
CATEGORIES= devel www
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR Config package provides methods for configuration manipulation
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS} \
${PEARDIR}/XML/Parser.php:${PORTSDIR}/devel/pear-XML_Parser \
${PEARDIR}/XML/Util.php:${PORTSDIR}/devel/pear-XML_Util
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
MANIFEST= Apache.php IniCommented.php PHPArray.php GenericConf.php IniFile.php XML.php
do-install:
@${CP} -p ${WRKSRC}/Config.php ${PEARDIR}
@${MKDIR} ${PEARDIR}/Config/Container
@${CP} -p ${WRKSRC}/Config/Container.php ${PEARDIR}/Config
.for FILE in ${MANIFEST}
@${CP} -p ${WRKSRC}/Config/Container/${FILE} ${PEARDIR}/Config/Container
.endfor
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Config.php
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Config
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/Apache.php ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/IniCommented.php ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/IniFromScratch.php ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1 @@
MD5 (PEAR/Config-1.8.tgz) = 00d5d56c5a2faaa967d285649395e5ee

View file

@ -0,0 +1,10 @@
The Config package provides methods for configuration manipulation.
* Creates configurations from scratch
* Parses and outputs different formats (XML, PHP, INI, Apache...).
* Edits existing configurations
* Converts configurations to other formats
* Allows manipulation of sections, comments, directives...
* Parses configurations into a tree structure
WWW: http://pear.php.net/package-info.php?package=Config

View file

@ -0,0 +1,16 @@
%%PEARDIR%%/Config.php
%%PEARDIR%%/Config/Container.php
%%PEARDIR%%/Config/Container/Apache.php
%%PEARDIR%%/Config/Container/GenericConf.php
%%PEARDIR%%/Config/Container/IniCommented.php
%%PEARDIR%%/Config/Container/IniFile.php
%%PEARDIR%%/Config/Container/PHPArray.php
%%PEARDIR%%/Config/Container/XML.php
%%PKGREGDIR%%/package.xml
%%PORTDOCS%%%%PEARDIR%%/docs/Config/Apache.php
%%PORTDOCS%%%%PEARDIR%%/docs/Config/IniCommented.php
%%PORTDOCS%%%%PEARDIR%%/docs/Config/IniFromScratch.php
@dirrm %%PEARDIR%%/Config/Container
@dirrm %%PEARDIR%%/Config
@dirrm %%PKGREGDIR%%
%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/Config