ports/119886: [NEW PORT] www/famp: Metaport of FreeBSD, Apache2, MySQL5, PHP5
Gea-Suan Lin
gslin at ccca.nctu.edu.tw
Tue Jan 22 08:20:09 UTC 2008
>Number: 119886
>Category: ports
>Synopsis: [NEW PORT] www/famp: Metaport of FreeBSD, Apache2, MySQL5, PHP5
>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: Tue Jan 22 08:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gea-Suan Lin
>Release: FreeBSD 6.3-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD ccreader.NCTU.edu.tw 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #3: Tue Jan 15 11:22:08 CST 2008
>Description:
Metaport for installing Apache2, MySQL5, PHP5 and FastCGI wrapper in
FreeBSD environment.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- famp-1.0.shar begins here ---
# 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:
#
# famp
# famp/pkg-descr
# famp/Makefile
# famp/files
# famp/files/php
# famp/files/fastcgi.conf
# famp/pkg-plist
#
echo c - famp
mkdir -p famp > /dev/null 2>&1
echo x - famp/pkg-descr
sed 's/^X//' >famp/pkg-descr << 'END-of-famp/pkg-descr'
XMetaport for installing Apache2, MySQL5, PHP5 and FastCGI wrapper in
XFreeBSD environment.
END-of-famp/pkg-descr
echo x - famp/Makefile
sed 's/^X//' >famp/Makefile << 'END-of-famp/Makefile'
X# New ports collection makefile for: famp
X# Date created: 2008-01-22
X# Whom: Gea-Suan Lin <gslin at gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= famp
XPORTVERSION= 1.0
XCATEGORIES= www
XMASTER_SITES= # none
XDISTFILES= # none
X
XMAINTAINER= gslin at gslin.org
XCOMMENT= Metaport of FreeBSD, Apache2, MySQL5, PHP5
X
XNO_BUILD= yes
XUSE_APACHE= 20+
XUSE_PHP= mysql mysqli
X
X.include <bsd.port.pre.mk>
X
XPLIST_SUB+= APACHEETCDIR="${APACHEETCDIR}"
XRUN_DEPENDS+= libexec/apache${APACHE_VERSION}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi \
X php5-extensions>0:${PORTSDIR}/lang/php5-extensions
X
Xdo-install:
X ${MKDIR} ${PREFIX}/www/fcgi-bin ${PREFIX}/${APACHEETCDIR}/Includes
X ${INSTALL_SCRIPT} ${FILESDIR}/php ${PREFIX}/www/fcgi-bin
X ${INSTALL_DATA} ${FILESDIR}/fastcgi.conf ${PREFIX}/${APACHEETCDIR}/Includes
X
X.include <bsd.port.post.mk>
END-of-famp/Makefile
echo c - famp/files
mkdir -p famp/files > /dev/null 2>&1
echo x - famp/files/php
sed 's/^X//' >famp/files/php << 'END-of-famp/files/php'
X#!/bin/sh
Xexport PHPRC="/usr/local/etc"
Xexport PHP_FCGI_CHILDREN=10
Xexec /usr/local/bin/php-cgi
END-of-famp/files/php
echo x - famp/files/fastcgi.conf
sed 's/^X//' >famp/files/fastcgi.conf << 'END-of-famp/files/fastcgi.conf'
X<Ifmodule fastcgi_module>
X ScriptAlias /fcgi-bin/ "/usr/local/www/fcgi-bin/"
X <Directory /usr/local/www/fcgi-bin/>
X SetHandler fastcgi-script
X </Directory>
X AddHandler php-fastcgi .php
X Action php-fastcgi /fcgi-bin/php
X</Ifmodule>
END-of-famp/files/fastcgi.conf
echo x - famp/pkg-plist
sed 's/^X//' >famp/pkg-plist << 'END-of-famp/pkg-plist'
X at comment $FreeBSD$
X%%APACHEETCDIR%%/Includes/fastcgi.conf
Xwww/fcgi-bin/php
X at dirrmtry www/fcgi-bin
END-of-famp/pkg-plist
exit
--- famp-1.0.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list