Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2005 09:16:41 -0200 (BRST)
From:      Antonio Carlos Venancio Junior <antonio@php.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/76749: New port: devel/pear-System_Command PEAR command line execution interface
Message-ID:  <200501271116.j0RBGfPQ049802@digitalsign.com>
Resent-Message-ID: <200501271120.j0RBKMvI052520@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76749
>Category:       ports
>Synopsis:       New port: devel/pear-System_Command PEAR command line execution interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 27 11:20:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Antônio Carlos Venâncio Júnior
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD antonio.cb.sc.gov.br 4.11-STABLE FreeBSD 4.11-STABLE #4: Mon Jan 10 10:53:56 BRST 2005     root@antonio.cb.sc.gov.br:/usr/obj/usr/src/sys/ANTONIO  i386
>Description:
New port: devel/pear-System_Command PEAR command line execution interface

System_Command is a command line execution interface.

Running functions from the command line can be risky if the proper
precautions are not taken to escape the shell arguments and reaping the
exit status properly. This class provides a formal interface to both, so
that you can run a system command as comfortably as you would run a php
function, with full pear error handling as results on failure. It is
important to note that this class, unlike other implementations,
distinguishes between output to stderr and output to stdout. It also
reports the exit status of the command. So in every sense of the word,
it gives php shell capabilities.
>How-To-Repeat:
>Fix:
# 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:
#
#	pear-System_Command
#	pear-System_Command/Makefile
#	pear-System_Command/distinfo
#	pear-System_Command/pkg-descr
#
echo c - pear-System_Command
mkdir -p pear-System_Command > /dev/null 2>&1
echo x - pear-System_Command/Makefile
sed 's/^X//' >pear-System_Command/Makefile << 'END-of-pear-System_Command/Makefile'
X# Ports collection makefile for:  pear-System_Command
X# Date created:			  27 January 2005
X# Whom:				  Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	System_Command
XPORTVERSION=	1.0.1
XCATEGORIES=	devel pear
X
XMAINTAINER=	antonio@php.net
XCOMMENT=	PEAR command line execution interface
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XCATEGORY=	System
XFILES=		Command.php
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
X.include <bsd.port.post.mk>
END-of-pear-System_Command/Makefile
echo x - pear-System_Command/distinfo
sed 's/^X//' >pear-System_Command/distinfo << 'END-of-pear-System_Command/distinfo'
XMD5 (PEAR/System_Command-1.0.1.tgz) = 1cdc6c0797c719cf5c0cc4d21f1be058
XSIZE (PEAR/System_Command-1.0.1.tgz) = 5324
END-of-pear-System_Command/distinfo
echo x - pear-System_Command/pkg-descr
sed 's/^X//' >pear-System_Command/pkg-descr << 'END-of-pear-System_Command/pkg-descr'
XSystem_Command is a command line execution interface.
X
XRunning functions from the command line can be risky if the proper 
Xprecautions are not taken to escape the shell arguments and reaping the 
Xexit status properly. This class provides a formal interface to both, so 
Xthat you can run a system command as comfortably as you would run a php 
Xfunction, with full pear error handling as results on failure. It is 
Ximportant to note that this class, unlike other implementations, 
Xdistinguishes between output to stderr and output to stdout. It also 
Xreports the exit status of the command. So in every sense of the word,
Xit gives php shell capabilities.
X
XWWW: http://pear.php.net/package/System_Command/
END-of-pear-System_Command/pkg-descr
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501271116.j0RBGfPQ049802>