Changeset 6493
- Timestamp:
- 08/28/08 01:46:47 (5 years ago)
- Files:
-
- modules/branches/2.5/framework/install.php (modified) (3 diffs)
- modules/branches/2.5/framework/module.xml (modified) (1 diff)
- modules/branches/2.5/frameworksvn.pl (modified) (1 diff)
- modules/branches/2.5/fw_ari (added)
- modules/branches/2.5/fw_ari/install.php (added)
- modules/branches/2.5/fw_ari/module.xml (added)
- modules/branches/2.5/fw_fop (copied) (copied from modules/branches/2.5/framework)
- modules/branches/2.5/fw_fop/install.php (modified) (4 diffs)
- modules/branches/2.5/fw_fop/module.xml (modified) (1 diff)
- modules/branches/2.5/publish.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/framework/install.php
r5590 r6493 74 74 $bin_source = dirname(__FILE__)."/bin/*"; 75 75 $agibin_source = dirname(__FILE__)."/agi-bin/*"; 76 $htdocs_panel_source = dirname(__FILE__)."/htdocs_panel/*";77 76 78 77 // These are required by libfreepbx.install.php library for upgrade routines … … 84 83 $bin_dest = isset($amp_conf['AMPBIN']) ? $amp_conf['AMPBIN'] : '/var/lib/asterisk/bin'; 85 84 $agibin_dest = isset($asterisk_conf['astagidir']) ? $asterisk_conf['astagidir']:'/var/lib/asterisk/agi-bin'; 86 87 // There was a past bug where FOPWEBROOT was pointing to AMPWEBROOT so if that is the case then hardcode88 // and force to panel here.89 //90 $htdocs_panel_dest = $amp_conf['FOPWEBROOT'];91 if ($htdocs_panel_dest == $amp_conf['AMPWEBROOT']) {92 $htdocs_panel_dest .= "/panel";93 }94 85 95 86 exec("cp -rf $htdocs_source $htdocs_dest 2>&1",$out,$ret); … … 108 99 } 109 100 110 exec("cp -rf $htdocs_panel_source $htdocs_panel_dest 2>&1",$out,$ret);111 if ($ret != 0) {112 framework_print_errors($htdocs_panel_source, $htdocs_panel_dest, $out);113 }114 115 101 if (function_exists('upgrade_all')) { 116 102 upgrade_all(getversion()); modules/branches/2.5/framework/module.xml
r6475 r6493 2 2 <rawname>framework</rawname> 3 3 <name>FreePBX Framework</name> 4 <version>2.5.0rc2. 1</version>4 <version>2.5.0rc2.2</version> 5 5 <candisable>no</candisable> 6 6 <canuninstall>no</canuninstall> 7 7 <changelog> 8 *2.5.0rc2.2* #3107, #3093, #3090, #3113, $3117 8 9 *2.5.0rc2.1* #3104 fix some urlencoding/decoding re: #3102 changes 9 10 *2.5.0rc2.0* #3067, #3086, #3082, #3102 modules/branches/2.5/frameworksvn.pl
r5909 r6493 30 30 system("tar -zxOf ".$filename." ".$moddir."/svnversion.txt"); 31 31 print "Geting svn log since that version for $rver : .... \n\n"; 32 $svnver = system("svn log http://svn.freepbx.org/freepbx/ trunk-r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION://`:HEAD");32 $svnver = system("svn log http://svn.freepbx.org/freepbx/branches/$rver -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION://`:HEAD"); 33 33 modules/branches/2.5/fw_fop/install.php
r5590 r6493 3 3 // HELPER FUNCTIONS: 4 4 5 function f ramework_print_errors($src, $dst, $errors) {6 echo "error copying f rameworkfiles:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />";5 function fw_fop_print_errors($src, $dst, $errors) { 6 echo "error copying fw_fop files:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />"; 7 7 foreach ($errors as $error) { 8 8 echo "$error<br />"; … … 43 43 } 44 44 45 include dirname(__FILE__)."/libfreepbx.install.php";46 47 45 global $amp_conf; 48 46 global $asterisk_conf; … … 68 66 69 67 /* 70 * Frameworkinstall script68 * fw_fop install script 71 69 */ 72 70 73 $htdocs_source = dirname(__FILE__)."/htdocs/*";74 $bin_source = dirname(__FILE__)."/bin/*";75 $agibin_source = dirname(__FILE__)."/agi-bin/*";76 71 $htdocs_panel_source = dirname(__FILE__)."/htdocs_panel/*"; 77 78 // These are required by libfreepbx.install.php library for upgrade routines79 //80 define("UPGRADE_DIR", dirname(__FILE__)."/upgrades/");81 define("MODULE_DIR", $amp_conf['AMPWEBROOT'].'/modules/');82 83 $htdocs_dest = $amp_conf['AMPWEBROOT'];84 $bin_dest = isset($amp_conf['AMPBIN']) ? $amp_conf['AMPBIN'] : '/var/lib/asterisk/bin';85 $agibin_dest = isset($asterisk_conf['astagidir']) ? $asterisk_conf['astagidir']:'/var/lib/asterisk/agi-bin';86 72 87 73 // There was a past bug where FOPWEBROOT was pointing to AMPWEBROOT so if that is the case then hardcode … … 93 79 } 94 80 95 exec("cp -rf $htdocs_source $htdocs_dest 2>&1",$out,$ret);96 if ($ret != 0) {97 framework_print_errors($htdocs_source, $htdocs_dest, $out);98 }99 100 exec("cp -rf $bin_source $bin_dest 2>&1",$out,$ret);101 if ($ret != 0) {102 framework_print_errors($bin_source, $bin_dest, $out);103 }104 105 exec("cp -rf $agibin_source $agibin_dest 2>&1",$out,$ret);106 if ($ret != 0) {107 framework_print_errors($agibin_source, $agibin_dest, $out);108 }109 110 81 exec("cp -rf $htdocs_panel_source $htdocs_panel_dest 2>&1",$out,$ret); 111 82 if ($ret != 0) { 112 framework_print_errors($htdocs_panel_source, $htdocs_panel_dest, $out); 113 } 114 115 if (function_exists('upgrade_all')) { 116 upgrade_all(getversion()); 117 } else { 118 echo ("[ERROR] Function: 'upgrade_all' not present, libfreepbx.inc.php must not be isntall<br>"); 83 fw_fop_print_errors($htdocs_panel_source, $htdocs_panel_dest, $out); 119 84 } 120 85 modules/branches/2.5/fw_fop/module.xml
r6475 r6493 1 1 <module> 2 <rawname>f ramework</rawname>3 <name>FreePBX F ramework</name>4 <version>2.5.0 rc2.1</version>2 <rawname>fw_fop</rawname> 3 <name>FreePBX FOP Framework</name> 4 <version>2.5.0</version> 5 5 <candisable>no</candisable> 6 6 <canuninstall>no</canuninstall> 7 7 <changelog> 8 *2.5.0rc2.1* #3104 fix some urlencoding/decoding re: #3102 changes 9 *2.5.0rc2.0* #3067, #3086, #3082, #3102 10 *2.5.0rc1.1* published wrong, including rc1.0 additions 11 *2.5.0rc1.0* #2913, #3052 delay_answer schema and CSS fix 12 *2.5.0beta1.2* #3014, #3030, #2992, #3026, #3027 13 *2.5.0beta1.1* #2635, #2792 CDR Reporting pie chart errors, and fix bug introduced by #2963 14 *2.5.0beta1.0* #2854, #2978, #2980, #2981, #2982, #2963, #2985 15 *2.5.0alpha1.2* #2957 fix fatal failure in retrieve_conf from change to splice 16 *2.5.0alpha1.1* #2941, #2924, #1539, #2950, #2944, #2945, #2699, #2686, #2946, #2606, #2772, #2565, #1679 17 *2.5.0alpha1.0* #1628, #1715, #1843, #2497, #2604, #2606, #2609, #2686, #2701, #2703, #2739, #2766, #2777, #2782, #2784, #2793, #2798, #2799, #2809, #2818, #2829, #2843, #2845, #2855, #2862, #2881, #2890, #2891, #2897, #2903, #2910, #2911, #2921, #2924 18 *2.4.0.1* #2843, #2701, #2818, #2784, #2604, #2766, #2798, #2809, #2799, #2685, #2676 19 *2.4.0.0* first 2.4 final release 20 *2.4.0rc1.1* created upgrade directory to bump main version 21 *2.4.0rc1.0* rc1 release 22 *2.4.0beta2.2* fixed install script breaking download module admin 23 *2.4.0beta2.1* #2578 Asterisk 1.6 change for LANGUAGE, add addSwitch to extenions class 24 *2.4.0beta2.0* #2539, increase module_xml data field size, #2568 move features.conf to core, add details what online update transmits 25 *2.4.0beta1.2* correct publishing error which pulls in all previous 2.4beta framework changes below 26 *2.4.0beta1.1* #2544 (Asterisk 11543) create #include files or Asterisk will fail, #2554 extenssion class addtions 27 *2.4.0beta1.0* #2477, #2517, #2319, #2523, #2475, #1858, #2419, #2484, #2334, #2134, #2431, #2453, Extension/Destination Registry support/APIs adhoc devices user login/out improvments and dynamic hints, conversion of zap channel routes, amportal.conf: DYNAMICHINTS, CUSTOMASERROR, BADDESTABORT, XTNCONFILICTABORT - many other changes, see CHANGES log and svn log 28 *2.4.0alpha1.0* #2373, #2430, #2451; add ExecIf to extensions class 29 *2.3.1.0* #2335, #2412, module upgrade completely rewrites old modules, see CHANGES file in framework module directory 30 *2.3.0.3* #2336, #2350 FOP DBI issues with some versions, fixed some paging issues with sipaddheader() not escaping spaces 31 *2.3.0.2* fix upgrade to properly remove depecrated unused files 32 *2.3.0.1* #2249 fix syntax error from first fix to ARI 33 *2.3.0.0* Final Release 34 *2.3.0RC1.1* bump to RC1 because of bug not using proper version compare 35 *2.3.0rc1.0* styling and UI tweaks, improvments, javascript library package and reload improvements 36 *2.3.0beta2.10* #1826, #2132, #2161, #2162, #2216, added AUTHTYPE=webserver, added DEVEL flag, fixed warnings, unitialized variables 37 *2.3.0beta2.9* #2127 call-limit for Asterisk 1.4, replaced legacy retrieve_conf scripts, uninitialized variables and warnings, consolidate javascripts and CSS files, welcome page improvments. 38 *2.3.0beta2.8* #1520, added keyboard shortcuts during reload, support to block modules requiring asterisk running (when it is not), misc other fixes 39 *2.3.0beta2.7* #2180, #2174 reverted to old op_style.sh 40 *2.3.0beta2.6* #2174 fix #2154 really this time, and fix crontab to check for updates 41 *2.3.0beta2.5* #2143 fixed module hooks 42 *2.3.0beta2.4* #2147 tab link to FOP broken, #2157 fix database mode, #2150 output to crontab stopped, retrieve_conf copy fix, needed for #2046 VmX bug #2111 added retrieve_conf failure notifications, #2154 move bonce_op.sh and fix, #1442 removed .htacces exceptions in modules 43 *2.3.0beta2.3* additional notification logging, fix missing version_compare_freepbx function upgrading from older beta versions 44 *2.3.0beta2.2* #2137 fix ARI VmX bug, fix odd bug in error reporting in retrieve_conf, additional notification logging 45 *2.3.0beta2.1* fix include of libfreepbx.install.php in install.php script 46 *2.3.0beta2.0* Beta2 Release - see CHANGES file with packaged tarball and read important WARNINGS 47 *2.3.0beta1.6* added ext_sipaddheader, ext_sipgetheader, ext_alertinfo to extensions.class.php 48 *2.3.0beta1.5* improved parsers and made retreive_conf use the main parser, fixed on module version depends regex 49 *2.3.0beta1.4* #2020 added chmod 0754 to copied files to make sure they are executable 50 *2.3.0beta1.3* #2020 retrieve_conf copies module agi-bin now, was symlink. #1963, #2031, #2033 minor fixes (see tickets) 51 *2.3.0beta1.2* #1785 corner case ARI playback fix, misc other 52 *2.3.0beta1.1* Framework changes, test framework module 53 *2.3.0beta1.0* First release of framework 8 *2.5.0* First release of fw_fop 54 9 </changelog> 55 10 <description> 56 This module provides a facility to install bug fixes to the framework code that is not otherwise housed in a module11 This module provides a facility to install bug fixes to the FOP code that is not otherwise housed in a module, it used to be part of framework but has been removed to isolate FOP from Framework updates. 57 12 </description> 58 13 <type>setup</type> 59 14 <category>Basic</category> 60 <location>release/2.5/f ramework-2.5.0rc2.1.tgz</location>61 <md5sum> a85e23d4761fc2eafd9fbe0c3ad07bba</md5sum>15 <location>release/2.5/fw_fop-2.5.0.tgz</location> 16 <md5sum>eed5fae9611aaf976464452bca027723</md5sum> 62 17 </module> modules/branches/2.5/publish.pl
r6399 r6493 10 10 $fwbranch = "branches/2.5"; 11 11 $framework = "framework"; 12 $fw_fop = "fw_fop"; 13 $fw_ari = "fw_ari"; 12 14 13 15 my $reldir = "release/"; … … 35 37 die "FATAL: failed to export htdocs directory\n"; 36 38 } 37 if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs_panel $framework/htdocs_panel")) {38 die "FATAL: failed to export htdocs_panel directory\n";39 }40 39 if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/upgrades $framework/upgrades")) { 41 40 die "FATAL: failed to export upgrades directory\n"; … … 65 64 } 66 65 67 # Now we must remove a few files which users may have legitimately edited. For now this is the main.conf.php file which is the current66 # Now we must remove a few files which users may have legitimately edited. For now, all of ARI moved to new module 68 67 # ARI file used for editing paramters and options. 69 68 # 70 if (system("rm -rf $framework/htdocs/recordings /includes/main.conf.php")) {69 if (system("rm -rf $framework/htdocs/recordings")) { 71 70 die "FATAL: failed to trim main.conf.php ARI file\n"; 72 71 } … … 86 85 die "FATAL: failed to trim modules/_cache\n"; 87 86 } 87 } 88 if ($moddir =~ /$fw_fop/) { 89 90 if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs_panel $fw_fop/htdocs_panel")) { 91 die "FATAL: failed to export htdocs_panel directory\n"; 92 } 93 94 # Create the svnversion information for this framework snapshot 95 # 96 if (system("echo SVN VERSION: `svn log -q -r HEAD http://svn.freepbx.org/ | cut -s -f 1 -d ' ' | cut -b '2-'` > $fw_fop/svnversion.txt")) { 97 die "FATAL: svnversion failed to create svnversion.txt\n"; 98 } 99 100 } 101 if ($moddir =~ /$fw_ari/) { 102 103 if (system("rm -rf $fw_ari/htdocs_ari")) { 104 die "FATAL: failed to remove previoulsly exported directories\n"; 105 } 106 107 # Create the svnversion information for this framework snapshot 108 # 109 if (system("echo SVN VERSION: `svn log -q -r HEAD http://svn.freepbx.org/ | cut -s -f 1 -d ' ' | cut -b '2-'` > $fw_fop/svnversion.txt")) { 110 die "FATAL: svnversion failed to create svnversion.txt\n"; 111 } 112 113 if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs/recordings $fw_ari/htdocs_ari")) { 114 die "FATAL: failed to export htdocs directory\n"; 115 } 116 117 # Now we must remove a few files which users may have legitimately edited. For now this is the main.conf.php file which is the current 118 # ARI file used for editing paramters and options. 119 # 120 if (system("rm -rf $fw_ari/htdocs_ari/includes/main.conf.php")) { 121 die "FATAL: failed to trim main.conf.php ARI file\n"; 122 } 123 88 124 } 89 125 … … 117 153 $files .= "$x "; 118 154 } 155 } elsif ($moddir =~ /$fw_fop/) { 156 next if ($x =~ /module.xml/); 157 next if ($x =~ /htdocs_panel/); 158 next if ($x =~ /svnversion.txt/); 159 $files .= "$x "; 160 } elsif ($moddir =~ /$fw_ari/) { 161 next if ($x =~ /module.xml/); 162 next if ($x =~ /htdocs_ari/); 163 next if ($x =~ /svnversion.txt/); 164 $files .= "$x "; 119 165 } else { 120 166 while ($x = shift @arr) { … … 164 210 } 165 211 } 166
