Changes between Version 11 and Version 12 of ModuleInstall
- Timestamp:
- 04/22/11 15:35:02 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModuleInstall
v11 v12 4 4 5 5 * Module releases (.tgz files) 6 * http s://svn.sourceforge.net/svnroot/amportal/modules/release/2.x/filename.tgz6 * http://svn.freepbx.org/modules/release/ 7 7 * Module ''stable'' code 8 * https://svn.sourceforge.net/svnroot/amportal/modules/branches/2.x/ 9 * Module ''development'' code 10 * https://svn.sourceforge.net/svnroot/amportal/modules/trunk/ 8 * http://svn.freepbx.org/modules/branches/ 11 9 12 10 == How does the Online Module admin know about available modules? == 13 11 14 Good question! A modules-X.X.xml file is generated for each released (stable) version of FreePBX. This is done by collecting all the module.xml info from the ''stable'' module code branches @ https://svn.sourceforge.net/svnroot/amportal/modules/branches/2.x/. The resulting modules-X.X files are available at http://amportal.sourceforge.net/12 Good question! A modules-X.X.xml file is generated for each released (stable) version of FreePBX. This is done by collecting all the module.xml info from the ''stable'' module code branches. 15 13 16 14 The Online Module admin, reads these files and compares what's available with what is installed locally. From this it can determine if a module is installed, not installed, or needs an upgrade. 32 30 * Module.xml files define whether official or unofficial, where unofficial modules have only seen limited testing .. no support from the core freepbx team. 33 31 * php xml stuff http://au3.php.net/manual/en/ref.xml.php 34 * [http://svn.sourceforge.net/viewcvs.cgi/amportal/modules/trunk/modules.xml?view=markup&rev=1278|Master modules.xml sample] 35 * HTTP access to SVN is used for downloading modules 32 * HTTP access to SVN is used for downloading modules 36 33 * modules/release/2.x/modulename-rev.tar​.gz 37 34 * modules/devel/modulename/page.modu​lename.php 44 41 45 42 I've got a svn checkout of the modules as /usr/src/freepbx-modules 46 * svn co http s://svn.sourceforge.net/svnroot/amportal/modules /usr/src/freepbx-modules43 * svn co http://svn.freepbx.org/modules/branches /usr/src/freepbx-modules 47 44 In the 2.1 and 2.2 directories there's a publish.pl script that creates the tar.gz file, updates the md5 and location in the xml, and publishes them both. So lets say you've made a change to module foo. 48 45 * save and commit your changes 51 48 * ./publish.pl foo 52 49 This generates foo-versionname.tar.gz, sticks it in ../../release (this is why you need a complete checkout of the entire modules tree) updates the xml file with the new location and md5sum, and publishes both 53 You also need to run ./mod.php on shell.sourceforge.net(in /home/groups/a/am/amportal) to update the online xml file, but this should be run automatically - something for ryan to fix.50 You also need to run ~~./mod.php on shell.sourceforge.net~~ (in /home/groups/a/am/amportal) to update the online xml file, but this should be run automatically - something for ryan to fix. 54 51 ''RC: Runs once an hour via cron'' 55 52
