Bug 170746 - update of www/fusionpbx web gui port
Summary: update of www/fusionpbx web gui port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-18 17:10 UTC by RIchard Neese
Modified: 2012-08-19 02:00 UTC (History)
0 users

See Also:


Attachments
file.diff (9.70 KB, patch)
2012-08-18 17:10 UTC, RIchard Neese
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description RIchard Neese 2012-08-18 17:10:13 UTC
Updated fusion to the new 3.1 release and cleaned and brought the port to options ng

Fix: Patch attached with submission follows:
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2012-08-19 01:13:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-08-19 01:56:24 UTC
Author: jgh
Date: Sun Aug 19 00:56:07 2012
New Revision: 302747
URL: http://svn.freebsd.org/changeset/ports/302747

Log:
  - update to 3.1
  - use optionsNG
  - while here adjust comment and pet portlint
  
  PR:	170746
  Submitted by:	maintainer, r.neese@gmail.com

Modified:
  head/www/fusionpbx/Makefile   (contents, props changed)
  head/www/fusionpbx/distinfo   (contents, props changed)
  head/www/fusionpbx/pkg-plist   (contents, props changed)

Modified: head/www/fusionpbx/Makefile
==============================================================================
--- head/www/fusionpbx/Makefile	Sun Aug 19 00:07:26 2012	(r302746)
+++ head/www/fusionpbx/Makefile	Sun Aug 19 00:56:07 2012	(r302747)
@@ -6,22 +6,21 @@
 #
 
 PORTNAME=	fusionpbx
-DISTVERSION=	3.0.4
+DISTVERSION=	3.1
 CATEGORIES=	www
 MASTER_SITES=	http://www.fusionpbx.com/downloads/ \
 		${MASTER_SITE_GOOGLE_CODE}
 
 MAINTAINER=	r.neese@gmail.com
-COMMENT=	Fusionpbx PHP5 Graphical User Interface for FreeSwitch
+COMMENT=	PHP5 Graphical User Interface for FreeSwitch
 
 LIB_DEPENDS=	odbc:${PORTSDIR}/databases/unixODBC
-RUN_DEPENDS+=	${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php5-pdo_odbc
-
-USE_SQLITE=	yes
+RUN_DEPENDS+=	${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php${PHP_VER}-pdo_odbc
 
 USE_PHP=	dom filter ftp json pcre pdo pdo_sqlite posix \
 		session simplexml xml xmlreader xmlwriter xmlrpc \
 		xsl zlib odbc
+USE_SQLITE=	yes
 
 DEFAULT_PHP_VER=	5
 IGNORE_WITH_PHP=	4
@@ -31,23 +30,28 @@ VARBASE=	/var
 WRKSRC=		${WRKDIR}/${PORTNAME}
 NO_BUILD=	yes
 
-#config options
-OPTIONS=	PDOPGSQL	"Install POSTGRESQL PDO Connecor" off \
-		PDOMYSQL	"Install MySQL PDO Connector " off
+OPTIONS_DEFINE=	PDOPGSQL PDOMYSQL
+
+PDOPGSQL_DESC=	Install POSTGRESQL PDO Connector
+PDOMYSQL_DESC=	Install MySQL PDO Connector
 
 .include <bsd.port.options.mk>
 
-.if !defined(WITH_PDOPGSQL)
-PLIST_SUB+=	WITH_PDOPGSQL="@comment "
+.for opt in ${ALL_OPTIONS}
+.if $(PORT_OPTIONS:M${opt})
+PLIST_SUB+=	${opt}=""
 .else
+PLIST_SUB+=	${opt}="@comment "
+.endif
+.endfor
+
+.if ${PORT_OPTIONS:MPDOPGSQL)
 USE_PGSQL=	yes
 USE_PHP+=	pgsql pdo_pgsql
 PLIST_SUB+=	WITH_PDOPGSQL=""
 .endif
 
-.if !defined(WITH_PDOMYSQL)
-PLIST_SUB+=	WITHPDO-MYSQL="@comment "
-.else
+.if ${PORT_OPTIONS:MPDOMYSQL)
 USE_MYSQL=	client
 USE_PHP+=	mysql pdo_mysql
 PLIST_SUB+=	WITH_PDOMYSQL=""

Modified: head/www/fusionpbx/distinfo
==============================================================================
--- head/www/fusionpbx/distinfo	Sun Aug 19 00:07:26 2012	(r302746)
+++ head/www/fusionpbx/distinfo	Sun Aug 19 00:56:07 2012	(r302747)
@@ -1,2 +1,2 @@
-SHA256 (fusionpbx-3.0.4.tar.gz) = 1066f32759a7bdaa8e8ac802f71b10af38db63c33c7a1aeef109044fd8309427
-SIZE (fusionpbx-3.0.4.tar.gz) = 5159078
+SHA256 (fusionpbx-3.1.tar.gz) = 8dde792b2bac81196cfb51ea871004f39192d9c1944044fcf8a8f9713aef0ed8
+SIZE (fusionpbx-3.1.tar.gz) = 5179008

Modified: head/www/fusionpbx/pkg-plist
==============================================================================
--- head/www/fusionpbx/pkg-plist	Sun Aug 19 00:07:26 2012	(r302746)
+++ head/www/fusionpbx/pkg-plist	Sun Aug 19 00:56:07 2012	(r302747)
@@ -134,8 +134,20 @@
 %%WWWDIR%%/app/dialplan/resources/xml/dialplan/450_park_in.xml
 %%WWWDIR%%/app/dialplan/resources/xml/dialplan/455_park_out.xml
 %%WWWDIR%%/app/dialplan/resources/xml/dialplan/460_park_slots.xml
+%%WWWDIR%%/app/dialplan/resources/xml/dialplan/480_operator.xml
+%%WWWDIR%%/app/dialplan/resources/xml/dialplan/485_operator-forward.xml
+%%WWWDIR%%/app/dialplan/resources/xml/dialplan/490_do-not-disturb.xml
 %%WWWDIR%%/app/dialplan/resources/xml/dialplan/999_local_extension.xml
 %%WWWDIR%%/app/dialplan/root.php
+%%WWWDIR%%/app/dialplan_features/app_config.php
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/300_dx.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/310_att_xfer.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/320_xfer_vm.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/330_is_transfer.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/340_cf.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/350_please_hold.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/360_is_zrtp_secure.xml
+%%WWWDIR%%/app/dialplan_features/resources/xml/dialplan/370_is_secure.xml
 %%WWWDIR%%/app/dialplan_inbound/app_config.php
 %%WWWDIR%%/app/dialplan_inbound/app_defaults.php
 %%WWWDIR%%/app/dialplan_inbound/dialplan_inbound_add.php
@@ -155,11 +167,12 @@
 %%WWWDIR%%/app/extensions/v_extensions_delete.php
 %%WWWDIR%%/app/extensions/v_extensions_edit.php
 %%WWWDIR%%/app/fax/app_config.php
+%%WWWDIR%%/app/fax/fax.php
+%%WWWDIR%%/app/fax/fax_copy.php
+%%WWWDIR%%/app/fax/fax_delete.php
+%%WWWDIR%%/app/fax/fax_edit.php
+%%WWWDIR%%/app/fax/fax_view.php
 %%WWWDIR%%/app/fax/root.php
-%%WWWDIR%%/app/fax/v_fax.php
-%%WWWDIR%%/app/fax/v_fax_delete.php
-%%WWWDIR%%/app/fax/v_fax_edit.php
-%%WWWDIR%%/app/fax/v_fax_view.php
 %%WWWDIR%%/app/fifo/app_config.php
 %%WWWDIR%%/app/fifo/root.php
 %%WWWDIR%%/app/fifo/v_fifo.php
@@ -259,6 +272,13 @@
 %%WWWDIR%%/app/hardware_phones/v_hardware_phones.php
 %%WWWDIR%%/app/hardware_phones/v_hardware_phones_delete.php
 %%WWWDIR%%/app/hardware_phones/v_hardware_phones_edit.php
+%%WWWDIR%%/app/hot_desking/app_config.php
+%%WWWDIR%%/app/hot_desking/extension_delete.php
+%%WWWDIR%%/app/hot_desking/extension_edit.php
+%%WWWDIR%%/app/hot_desking/index.php
+%%WWWDIR%%/app/hot_desking/resources/xml/dialplan/470_hot-desk-login.xml
+%%WWWDIR%%/app/hot_desking/resources/xml/dialplan/475_hot-desk-logout.xml
+%%WWWDIR%%/app/hot_desking/root.php
 %%WWWDIR%%/app/hunt_group/app_config.php
 %%WWWDIR%%/app/hunt_group/root.php
 %%WWWDIR%%/app/hunt_group/v_hunt_group.php
@@ -336,6 +356,7 @@
 %%WWWDIR%%/app/php_service/v_php_service_delete.php
 %%WWWDIR%%/app/php_service/v_php_service_edit.php
 %%WWWDIR%%/app/provision/app_config.php
+%%WWWDIR%%/app/provision/app_defaults.php
 %%WWWDIR%%/app/provision/index.php
 %%WWWDIR%%/app/provision/provision_write.php
 %%WWWDIR%%/app/provision/root.php
@@ -436,6 +457,7 @@
 %%WWWDIR%%/app/services/v_services_delete.php
 %%WWWDIR%%/app/services/v_services_edit.php
 %%WWWDIR%%/app/settings/app_config.php
+%%WWWDIR%%/app/settings/app_defaults.php
 %%WWWDIR%%/app/settings/root.php
 %%WWWDIR%%/app/settings/v_settings_edit.php
 %%WWWDIR%%/app/signup/app_config.php
@@ -451,6 +473,7 @@
 %%WWWDIR%%/app/sip_profiles/resources/xml/sip_profiles/internal-ipv6.xml
 %%WWWDIR%%/app/sip_profiles/resources/xml/sip_profiles/internal.xml
 %%WWWDIR%%/app/sip_profiles/root.php
+%%WWWDIR%%/app/sip_profiles/sip_profile_copy.php
 %%WWWDIR%%/app/sip_profiles/sip_profile_settings.php
 %%WWWDIR%%/app/sip_profiles/sip_profile_settings_delete.php
 %%WWWDIR%%/app/sip_profiles/sip_profile_settings_edit.php
@@ -594,6 +617,7 @@
 %%WWWDIR%%/core/backup/backupandrestore.php
 %%WWWDIR%%/core/backup/root.php
 %%WWWDIR%%/core/databases/app_config.php
+%%WWWDIR%%/core/databases/app_defaults.php
 %%WWWDIR%%/core/databases/database_delete.php
 %%WWWDIR%%/core/databases/database_edit.php
 %%WWWDIR%%/core/databases/databases.php
@@ -690,13 +714,13 @@
 %%WWWDIR%%/includes/classes/array_order.php
 %%WWWDIR%%/includes/classes/call_forward.php
 %%WWWDIR%%/includes/classes/database.php
-%%WWWDIR%%/includes/classes/dialplan.php
 %%WWWDIR%%/includes/classes/do_not_disturb.php
 %%WWWDIR%%/includes/classes/follow_me.php
 %%WWWDIR%%/includes/classes/install.php
 %%WWWDIR%%/includes/classes/menu.php
 %%WWWDIR%%/includes/classes/root.php
 %%WWWDIR%%/includes/classes/schema.php
+%%WWWDIR%%/includes/classes/switch_dialplan.php
 %%WWWDIR%%/includes/classes/switch_directory.php
 %%WWWDIR%%/includes/classes/switch_fax.php
 %%WWWDIR%%/includes/classes/switch_ivr_menu.php
@@ -838,6 +862,7 @@
 %%WWWDIR%%/includes/install/lang/en/wakeup/sounds.xml
 %%WWWDIR%%/includes/install/scripts/call_broadcast_originate.js
 %%WWWDIR%%/includes/install/scripts/call_forward.lua
+%%WWWDIR%%/includes/install/scripts/dial_string.lua
 %%WWWDIR%%/includes/install/scripts/disa.lua
 %%WWWDIR%%/includes/install/scripts/eavesdrop.lua
 %%WWWDIR%%/includes/install/scripts/fax_retry.lua
@@ -853,6 +878,7 @@
 %%WWWDIR%%/includes/install/scripts/ring_group.lua
 %%WWWDIR%%/includes/install/scripts/roku.lua
 %%WWWDIR%%/includes/install/scripts/wakeup.lua
+%%WWWDIR%%/includes/install/scripts/xml_handler.lua
 %%WWWDIR%%/includes/install/sounds/en/us/callie/custom/16000/4.wav
 %%WWWDIR%%/includes/install/sounds/en/us/callie/custom/16000/a.wav
 %%WWWDIR%%/includes/install/sounds/en/us/callie/custom/16000/accept.wav
@@ -1034,6 +1060,7 @@
 %%WWWDIR%%/includes/templates/conf/autoload_configs/event_socket.conf.xml
 %%WWWDIR%%/includes/templates/conf/autoload_configs/fax.conf.xml
 %%WWWDIR%%/includes/templates/conf/autoload_configs/fifo.conf.xml
+%%WWWDIR%%/includes/templates/conf/autoload_configs/freetdm.conf.xml
 %%WWWDIR%%/includes/templates/conf/autoload_configs/hash.conf.xml
 %%WWWDIR%%/includes/templates/conf/autoload_configs/httapi.conf.xml
 %%WWWDIR%%/includes/templates/conf/autoload_configs/http_cache.conf.xml
@@ -1097,6 +1124,7 @@
 %%WWWDIR%%/includes/templates/conf/directory/default/skinny-example.xml.noload
 %%WWWDIR%%/includes/templates/conf/extensions.conf
 %%WWWDIR%%/includes/templates/conf/freeswitch.xml
+%%WWWDIR%%/includes/templates/conf/freetdm.conf
 %%WWWDIR%%/includes/templates/conf/fur_elise.ttml
 %%WWWDIR%%/includes/templates/conf/ivr_menus/demo_ivr.xml
 %%WWWDIR%%/includes/templates/conf/jingle_profiles/client.xml
@@ -1401,6 +1429,10 @@
 @dirrm %%WWWDIR%%/app/log_viewer
 @dirrm %%WWWDIR%%/app/ivr_menu
 @dirrm %%WWWDIR%%/app/hunt_group
+@dirrm %%WWWDIR%%/app/hot_desking/resources/xml/dialplan
+@dirrm %%WWWDIR%%/app/hot_desking/resources/xml
+@dirrm %%WWWDIR%%/app/hot_desking/resources
+@dirrm %%WWWDIR%%/app/hot_desking
 @dirrm %%WWWDIR%%/app/hardware_phones
 @dirrm %%WWWDIR%%/app/grammar_edit/images/thumbnails
 @dirrm %%WWWDIR%%/app/grammar_edit/images
@@ -1419,6 +1451,10 @@
 @dirrm %%WWWDIR%%/app/exec
 @dirrm %%WWWDIR%%/app/dialplan_outbound
 @dirrm %%WWWDIR%%/app/dialplan_inbound
+@dirrm %%WWWDIR%%/app/dialplan_features/resources/xml/dialplan
+@dirrm %%WWWDIR%%/app/dialplan_features/resources/xml
+@dirrm %%WWWDIR%%/app/dialplan_features/resources
+@dirrm %%WWWDIR%%/app/dialplan_features
 @dirrm %%WWWDIR%%/app/dialplan/resources/xml/dialplan
 @dirrm %%WWWDIR%%/app/dialplan/resources/xml
 @dirrm %%WWWDIR%%/app/dialplan/resources
@@ -1440,9 +1476,3 @@
 @exec mkdir -p %D/%%WWWDIR%%/includes/templates/provision/grandstream
 @exec mkdir -p %D/%%WWWDIR%%/includes/templates/provision/cisco/7960
 @exec mkdir -p %D/%%WWWDIR%%/includes/templates/provision/cisco/7940
-@exec chown -R www:www /usr/local/www/fusionpbx
-@dirrmtry www/fusionpbx/ 2> /dev/null || /usr/bin/true
-@cwd /var
-@dirrmtry db/fusionpbx
-@exec mkdir -p %D/db/fusionpbx
-@exec chown www:www %D/db/fusionpbx
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Jason Helfman freebsd_committer freebsd_triage 2012-08-19 01:56:27 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!