New port: www/fusionpbx (readd)
FusionPBX is an opensource PHP7 based frontend web gui for freeswitch. WWW: https://www.fusionpbx.com PR: 238234 Submitted by: Richard Allen <richard2891@gmail.com>
This commit is contained in:
parent
113cf8b894
commit
68e450db81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536417
6 changed files with 2936 additions and 0 deletions
|
@ -169,6 +169,7 @@
|
|||
SUBDIR += fpc-libmicrohttpd
|
||||
SUBDIR += free-sa-devel
|
||||
SUBDIR += fswiki
|
||||
SUBDIR += fusionpbx
|
||||
SUBDIR += g-cows
|
||||
SUBDIR += g-gcl
|
||||
SUBDIR += gallery2
|
||||
|
|
55
www/fusionpbx/Makefile
Normal file
55
www/fusionpbx/Makefile
Normal file
|
@ -0,0 +1,55 @@
|
|||
# Created by: Richard Allen <richard2891@gmail.com>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= fusionpbx
|
||||
PORTVERSION= 4.4.1
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= richard2891@gmail.com
|
||||
COMMENT= Web/PHP Interface for FreeSwitch
|
||||
|
||||
LICENSE= MPL11
|
||||
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
|
||||
LIB_DEPENDS= libodbc.so:databases/unixODBC
|
||||
RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:databases/php${PHP_VER}-pdo_odbc \
|
||||
${LOCALBASE}/bin/freeswitch:net/freeswitch \
|
||||
${LOCALBASE}/bin/memcached:databases/memcached
|
||||
|
||||
USES= sqlite php fakeroot
|
||||
USE_PHP= phar pdo pdo_odbc pdo_sqlite json gd imap \
|
||||
ldap openssl sockets simplexml xml session odbc
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= ${PORTNAME}
|
||||
GH_PROJECT= ${PORTNAME}
|
||||
GH_TAGNAME= ${PORTVERSION}
|
||||
|
||||
DEFAULT_VERSIONS+=php=7.2
|
||||
|
||||
VARBASE= var
|
||||
|
||||
WRKSRC_SUBDIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
NO_BUILD= yes
|
||||
|
||||
OPTIONS_DEFINE= PDOPGSQL
|
||||
|
||||
OPTIONS_DEFAULT= PDOPGSQL
|
||||
|
||||
PDOPGSQL_DESC= Install POSTGRESQL PDO Connector
|
||||
|
||||
PDOPGSQL_USES= pgsql
|
||||
PDOPGSQL_USE= PHP=pgsql,pdo_pgsql
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
@(cd ${WRKSRC_SUBDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
|
||||
@${MKDIR} ${STAGEDIR}/${VARBASE}/db/fusionpbx
|
||||
|
||||
@${MKDIR} ${STAGEDIR}/${VARBASE}/cache/fusionpbx
|
||||
@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}/secure
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/fusionpbx/distinfo
Normal file
3
www/fusionpbx/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1552794100
|
||||
SHA256 (fusionpbx-fusionpbx-4.4.1_GH0.tar.gz) = 232063ae3e3bc4330311f317e4de9aef16fd3fb4cf0dd558a86af235b8790635
|
||||
SIZE (fusionpbx-fusionpbx-4.4.1_GH0.tar.gz) = 8985184
|
45
www/fusionpbx/files/pkg-message
Normal file
45
www/fusionpbx/files/pkg-message
Normal file
|
@ -0,0 +1,45 @@
|
|||
#################################
|
||||
#run freeswith under www user and group
|
||||
sysrc memcached_enable="YES"
|
||||
sysrc freeswitch_enable="YES"
|
||||
sysrc freeswitch_flags="-nc -nonat"
|
||||
sysrc freeswitch_user="www"
|
||||
sysrc freeswitch_group="www"
|
||||
|
||||
#copy the default conf directory
|
||||
mkdir -p /usr/local/etc/freeswitch
|
||||
cp -R /usr/local/www/fusionpbx/resources/templates/conf/* /usr/local/etc/freeswitch
|
||||
|
||||
#copy the scripts
|
||||
cp -R /usr/local/www/fusionpbx/resources/install/scripts /usr/local/share/freeswitch
|
||||
|
||||
#default ownership
|
||||
chown -R www:www /usr/local/etc/freeswitch
|
||||
chown -R www:www /var/lib/freeswitch
|
||||
chown -R www:www /usr/local/share/freeswitch
|
||||
chown -R www:www /var/log/freeswitch
|
||||
chown -R www:www /var/run/freeswitch
|
||||
|
||||
#install nginx or apache24 and mod_php72
|
||||
#optinal install postgresql10
|
||||
sysrc postgresql_enable="YES"
|
||||
|
||||
/usr/local/etc/rc.d/postgresql initdb
|
||||
|
||||
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data10 -l logfile start
|
||||
|
||||
service postgresql restart
|
||||
|
||||
sudo -u postgres psql -c "DROP DATABASE fusionpbx;"
|
||||
sudo -u postgres psql -c "DROP DATABASE freeswitch;"
|
||||
sudo -u postgres psql -c "DROP ROLE fusionpbx;"
|
||||
sudo -u postgres psql -c "DROP ROLE freeswitch;"
|
||||
|
||||
sudo -u postgres psql -c "CREATE DATABASE fusionpbx;"
|
||||
sudo -u postgres psql -c "CREATE DATABASE freeswitch;"
|
||||
sudo -u postgres psql -c "CREATE ROLE fusionpbx WITH SUPERUSER LOGIN PASSWORD '$DB_PASSWORD';"
|
||||
sudo -u postgres psql -c "CREATE ROLE freeswitch WITH SUPERUSER LOGIN PASSWORD '$DB_PASSWORD';"
|
||||
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE fusionpbx to fusionpbx;"
|
||||
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to fusionpbx;"
|
||||
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to freeswitch;"
|
||||
#################################
|
3
www/fusionpbx/pkg-descr
Normal file
3
www/fusionpbx/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
FusionPBX is an opensource PHP7 based frontend web gui for freeswitch.
|
||||
|
||||
WWW: https://www.fusionpbx.com
|
2829
www/fusionpbx/pkg-plist
Normal file
2829
www/fusionpbx/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue