[Pkg-voip-commits] r5600 - in /freepbx-modules/trunk/debian: TODO.Debian config control po/ po/POTFILES.in postinst prerm rules templates

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Wed Apr 23 16:01:03 UTC 2008


Author: tzafrir-guest
Date: Wed Apr 23 16:01:02 2008
New Revision: 5600

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5600
Log:
 * Asking for the list of modules through debconf.
 * Debconf translation still has some problems?
 * Don't try to install / remove the "module" _cache.
 * Make another file executable.

Added:
    freepbx-modules/trunk/debian/config
    freepbx-modules/trunk/debian/po/
    freepbx-modules/trunk/debian/po/POTFILES.in
    freepbx-modules/trunk/debian/templates
Modified:
    freepbx-modules/trunk/debian/TODO.Debian
    freepbx-modules/trunk/debian/control
    freepbx-modules/trunk/debian/postinst
    freepbx-modules/trunk/debian/prerm
    freepbx-modules/trunk/debian/rules

Modified: freepbx-modules/trunk/debian/TODO.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/TODO.Debian?rev=5600&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/TODO.Debian (original)
+++ freepbx-modules/trunk/debian/TODO.Debian Wed Apr 23 16:01:02 2008
@@ -3,6 +3,7 @@
 * FreePBX doesn't like installing modules when Asterisk is not running.
 * Installation / removal is painfully slow.
 * Still impossible to install separate modules.
+  - The install part is partially done.
 * ARI runs in a separate window and is not functional.
 * Other PHP errors:
   - FreePBX System Status:
@@ -10,5 +11,11 @@
     /usr/share/freepbx/modules/core/functions.inc.php on line 1868
 * A copy of phpsysinfo under modules/dashboard/
 * Web server shows as "Timeout" in the dashboard.
+* Why doesn't debconf-updatepo like our templates file?
+* The prerm module will disable all modules, even those not installed
+  through this package (zapauto).
+* Backup module fails to install with sqlite3?
+* Backup module fails to work with mysql?
+* Two other install script failures.
 
 And what about pgsql?

Added: freepbx-modules/trunk/debian/config
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/config?rev=5600&op=file
==============================================================================
--- freepbx-modules/trunk/debian/config (added)
+++ freepbx-modules/trunk/debian/config Wed Apr 23 16:01:02 2008
@@ -1,0 +1,7 @@
+#! /bin/sh
+
+set -e 
+
+. /usr/share/debconf/confmodule
+
+db_input medium freepbx-modules/modules_list || true

Modified: freepbx-modules/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/control?rev=5600&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/control (original)
+++ freepbx-modules/trunk/debian/control Wed Apr 23 16:01:02 2008
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
 Uploaders: Tzafrir Cohen <tzafrir.cohen at xorcom.com>, Diego Iastrubni <diego.iastrubni at xorcom.com>, Chris Halls <halls at debian.org>
-Build-Depends: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 4.1.16), debconf, po-debconf
 Build-Depends-Indep: sharutils, quilt
 Standards-Version: 3.7.3
 Homepage: http://www.freepbx.org/
@@ -12,7 +12,7 @@
 
 Package: freepbx-modules
 Architecture: all
-Depends: freepbx-common, php5-cli | php4-cli
+Depends: freepbx-common, php5-cli | php4-cli, debconf
 Description: modules for FreePBX - a web-based GUI for Asterisk
  FreePBX (formally AMP) is a web-based GUI for the Asterisk PBX. 
  It provides the ability to:

Added: freepbx-modules/trunk/debian/po/POTFILES.in
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/po/POTFILES.in?rev=5600&op=file
==============================================================================
--- freepbx-modules/trunk/debian/po/POTFILES.in (added)
+++ freepbx-modules/trunk/debian/po/POTFILES.in Wed Apr 23 16:01:02 2008
@@ -1,0 +1,1 @@
+templates

Modified: freepbx-modules/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/postinst?rev=5600&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/postinst (original)
+++ freepbx-modules/trunk/debian/postinst Wed Apr 23 16:01:02 2008
@@ -19,14 +19,19 @@
 
 case "$1" in
 	configure)
-		for module in `ls /usr/share/freepbx/modules`; do
+		. /usr/share/debconf/confmodule
+		db_get freepbx-modules/modules_list || true
+		modules_en=`echo $RET | tr , ' '`
+		modules_all=`ls /usr/share/freepbx/modules | grep -v _cache`
+
+		for module in $modules_all; do
 			/usr/share/asterisk/bin/module_admin install $module \
 				|| echo "Continuing anyway"
 		done
 
 		# FIXME: this part should be controlled by debconf, to 
 		# selectively enable modules.
-		for module in `ls /usr/share/freepbx/modules`; do
+		for module in $modules_en; do
 			/usr/share/asterisk/bin/module_admin enable $module \
 				|| echo "Continuing anyway"
 		done

Modified: freepbx-modules/trunk/debian/prerm
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/prerm?rev=5600&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/prerm (original)
+++ freepbx-modules/trunk/debian/prerm Wed Apr 23 16:01:02 2008
@@ -24,7 +24,8 @@
 
 case "$1" in
 	purge|remove)
-		for module in `ls /usr/share/freepbx/modules`; do
+		modules_all=`ls /usr/share/freepbx/modules | grep -v _cache`
+		for module in $modules_all; do
 			/usr/share/asterisk/bin/module_admin uninstall $module \
 				|| echo "Continuing anyway"
 		done

Modified: freepbx-modules/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/rules?rev=5600&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/rules (original)
+++ freepbx-modules/trunk/debian/rules Wed Apr 23 16:01:02 2008
@@ -34,6 +34,7 @@
 		-name \*.php -o -name \*.sln -o -name \*.sql -o -name \*.xml \
 		| xargs chmod a-x
 	chmod a+x $(CURDIR)/debian/freepbx-modules/usr/share/freepbx/modules/backup/bin/*.php
+	chmod a+x $(CURDIR)/debian/freepbx-modules/usr/share/freepbx/modules/core/agi-bin/list-item-remove.php
 
 binary-arch: build install
 
@@ -44,6 +45,7 @@
 	dh_installdocs
 	dh_installexamples
 	dh_installman
+	dh_installdebconf
 	dh_link
 	dh_compress
 	dh_fixperms

Added: freepbx-modules/trunk/debian/templates
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/templates?rev=5600&op=file
==============================================================================
--- freepbx-modules/trunk/debian/templates (added)
+++ freepbx-modules/trunk/debian/templates Wed Apr 23 16:01:02 2008
@@ -1,0 +1,18 @@
+Template: freepbx-modules/modules_list
+Type: multiselect
+Choices: announcement asterisk-cli asteriskinfo backup blacklist callback
+ callforward callwaiting cidlookup conferences core customerdb dashboard
+ daynight dictate disa donotdisturb featurecodeadmin findmefollow gabcast
+ infoservices inventorydb ivr logfiles manager miscapps miscdests music
+ paging parking pbdirectory phonebook phpagiconf phpinfo pinsets 
+ printextensions queues recordings ringgroups speeddial timeconditions 
+ voicemail
+Default: announcement asterisk-cli asteriskinfo backup blacklist callback
+ callforward callwaiting cidlookup conferences core dashboard
+ daynight dictate disa donotdisturb featurecodeadmin findmefollow
+ infoservices ivr logfiles manager miscapps miscdests music
+ paging parking pbdirectory phonebook phpagiconf phpinfo pinsets 
+ printextensions queues recordings ringgroups speeddial timeconditions 
+ voicemail
+_Description: FreePBX modulesthat that are to be enabled.
+ Note that all modules will be installed.




More information about the Pkg-voip-commits mailing list