ports/145371: Update to fusionpbx

Eric F Crist ecrist at secure-computing.net
Sun Apr 4 02:30:08 UTC 2010


>Number:         145371
>Category:       ports
>Synopsis:       Update to fusionpbx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 04 02:30:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Eric F Crist
>Release:        FreeBSD 8.0-RELEASE amd64
>Organization:
Secure Computing Networks
FusionPBX
>Environment:
System: FreeBSD cartman.secure-computing.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	Update to fusionpbx port.
>How-To-Repeat:
>Fix:

--- fusionpbx.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:
#
#	fusionpbx
#	fusionpbx/files
#	fusionpbx/files/pkg-message.in
#	fusionpbx/distinfo
#	fusionpbx/pkg-descr
#	fusionpbx/Makefile
#
echo c - fusionpbx
mkdir -p fusionpbx > /dev/null 2>&1
echo c - fusionpbx/files
mkdir -p fusionpbx/files > /dev/null 2>&1
echo x - fusionpbx/files/pkg-message.in
sed 's/^X//' >fusionpbx/files/pkg-message.in << 'fd1f0e329bc066bc03bd85ebebe23612'
X
X	*************************************************
X	*	Attention Freebsd FusionPBX Users 	*
X	*						*
X	*	Please do the fallowing after install	*
X	*************************************************
X
X        ALL USERS:
X	----------
X	If you use any other databes then the default sqlite3
X	do the following for PostgreSQL and MySQL.
X
X 	Setup PostgreSQL:
X	-----------------
X	add postgresql_enable="YES" to /etc/rc.conf
X        initdb -D /usr/local/pgsql/data
X        postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
X        su pgsql
X	type: createuser -s -e FusionPBX
X        psql -d FusionPBX -U FusionPBX
X        alter user FusionPBX with password 'pbx2010';
X        exit back to root
X        cd /usr/local/etc/rc.d
X	./postgresql restart
X	cd /usr/local/www/fusionpbx/includes/install/sql
X	su pgsql
X	psql -f pgsql.sql FusionPBX
X	exit
X
X	Setup MySQL:
X	------------
X	cd /usr/ports/database/mysql54-server
X	make install && make clean
X
X	LIGHTTPD USERS:
X	---------------
X	add lighttpd_enable="YES" to /etc/rc.conf
X
X	APACHE22:
X	---------
X	apache22_enable="YES" to /etc/rc.donf
X
X	FusionPBX Apache config file add in 
X
X	/usr/local/etc/apache22/Includes/fusionpbx.conf
X
X	# This line is unnecessary in many cases
X	Alias /fusionpbx/ "/usr/local/www/fusionpbx/"
X
X	<Directory "/usr/local/www/fusionpbx/">
X	    Options All
X	    AllowOverride All
X	    Order allow,deny
X	    Allow from all
X	</Directory>
X
X	add php to apache 
X
X        /usr/local/etc/apache22/Includes/php-inc.conf
X
X	DirectoryIndex index.php
X	AddType application/x-httpd-php .php
X	AddType application/x-httpd-php-source .phps
X
X	Last thing:
X	-----------
X	edit /etc/group and add :www to the freeswitch group and save
X
X	------------
X	Now Reboot.
X	------------
X
X	After wich point your browser to the following
X
X	URL: http://ip.of.you.machine/fusionpbx/ 
X
X	and follow the installer instructions.	
fd1f0e329bc066bc03bd85ebebe23612
echo x - fusionpbx/distinfo
sed 's/^X//' >fusionpbx/distinfo << '318d58b2d5061eaf4a0e6ed54202fd37'
XMD5 (fusionpbx-1.0.tar.gz) = 91b18f6d26b68f1297cba0b1d47c2de7
XSHA256 (fusionpbx-1.0.tar.gz) = 379de43c80b0a31c83d22c509910da70c58e552d58cfef0826679f333fb30fda
XSIZE (fusionpbx-1.0.tar.gz) = 1939773
318d58b2d5061eaf4a0e6ed54202fd37
echo x - fusionpbx/pkg-descr
sed 's/^X//' >fusionpbx/pkg-descr << '953605280310c8255f3e617e50f7c199'
XFusionPBX is a OpenSorce php5 based frontend web gui for freeswitch.
X
XWWW: http://www.fusionpbx.com
953605280310c8255f3e617e50f7c199
echo x - fusionpbx/Makefile
sed 's/^X//' >fusionpbx/Makefile << 'e5126df063315ba963cd5a402fda4d88'
X# Ports collection makefile for: fusionpbx
X# Date created: October 28, 2009
X# Whom: Richard Neese <r.neese at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fusionpbx
XPORTVERSION=	1.0
XCATEGORIES=	www
XMASTER_SITES=	http://www.fusionpbx.com/downloads/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	ecrist at secure-computing.net
XCOMMENT=	Fusionpbx php5 webgui for FreeSwitch
X
XRUN_DEPENDS=	${LOCALBASE}/bin/freeswitch:${PORTSDIR}/net/freeswitch
XUSE_SQLITE+=    yes
XUSE_PHP=	dom filter ftp json pcre pdo pdo_sqlite posix session simplexml \
X		xml xmlreader xmlwriter xmlrpc xsl zlib
XDEFAULT_PHP_VER=5
XIGNORE_WITH_PHP=4
XWANT_PHP_CLI=	yes
X
XWRKSRC=         ${WRKDIR}/${PORTNAME:L}
XNO_BUILD=	yes
X
XSUB_FILES=      pkg-message
X
XOPTIONS=	POSTGRES	"Install POSTGRESQL Server" off \
X		MYSQL		"Install MySQL Server" off \
X		LIGHTTPD	"Install LIGHTTPD Web Server" off \
X		APACHE22	"Install APACHE22 Web Server" on
X
X.include <bsd.port.options.mk>
X
X.if !defined(WITH_POSTGRES)
XPLIST_SUB+=	WITH_POSTGRES="@comment "
X.else
XPLIST_SUB+=     WITH_POSTGRES=""
XRUN_DEPENDS+=	postgresql84-server:${PORTSDIR}/databases/postgresql84-server \
X		php5-pgsql:${PORTSDIR}/databases/php5-pgsql \
X		php5-pdo_pgsql:${PORTSDIR}/databases/php5-pdo_pgsql
X.endif
X
X.if !defined(WITH_MYSQL)
XPLIST_SUB+=	WITH_MYSQL="@comment "
X.else
XUSE_MYSQL=	server
XWANT_MYSQL_VER=	54
XPLIST_SUB+=	WITH_MYSQL=""
XRUN_DEPENDS+=	php5-mysql:${PORTSDIR}/databases/php5-mysql \
X		php5-pdo_mysql:${PORTSDIR}/databases/php5-pdo_mysql
X.endif
X
X.if !defined(WITH_LIGHTTPD)
XPLIST_SUB+=	WITH_LIGHTTPD="@comment "
X.else
XPLIST_SUB+=	WITH_LIGHTTPD=""
XRUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
X.endif
X
X.if !defined(WITH_APACHE22)
XPLIST_SUB+=	WITH_APACHE22="@comment "
X.else
XPLIST_SUB+=	WITH_APACHE22=""
XUSE_APACHE=	22+
X.endif
X
Xdo-install:
X	${MKDIR} ${WWWDIR}
X	${MKDIR} /var/db/fusionpbx
X	cd ${WRKSRC}; ${FIND} . \
X		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
X	${CHMOD} -R 664 ${WWWDIR}
X	cd ${WRKDIR}/;
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
e5126df063315ba963cd5a402fda4d88
exit
--- fusionpbx.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list