[Pkg-voip-commits] r2199 - / ari ari/trunk ari/trunk/debian ari/trunk/debian/manager.d ari/trunk/debian/patches

Diego Iastrubni elcuco-guest at costa.debian.org
Tue Aug 8 07:04:48 UTC 2006


Author: elcuco-guest
Date: 2006-08-08 07:04:47 +0000 (Tue, 08 Aug 2006)
New Revision: 2199

Added:
   ari/
   ari/branches/
   ari/build-area
   ari/tags/
   ari/tarballs
   ari/trunk/
   ari/trunk/debian/
   ari/trunk/debian/README.Debian
   ari/trunk/debian/ari.conf
   ari/trunk/debian/changelog
   ari/trunk/debian/compat
   ari/trunk/debian/config
   ari/trunk/debian/control
   ari/trunk/debian/copyright
   ari/trunk/debian/dirs
   ari/trunk/debian/docs
   ari/trunk/debian/install
   ari/trunk/debian/manager.d/
   ari/trunk/debian/manager.d/ari.conf
   ari/trunk/debian/patches/
   ari/trunk/debian/patches/00list
   ari/trunk/debian/patches/add-etc-config.dpatch
   ari/trunk/debian/patches/change-amp-functions-dir.dpatch
   ari/trunk/debian/patches/fix-include-glob.dpatch
   ari/trunk/debian/patches/remove-dir-warnings.dpatch
   ari/trunk/debian/postinst
   ari/trunk/debian/rules
   ari/trunk/debian/templates
   ari/trunk/debian/watch
Log:
initial debianization of ari, package should be usable now, IMHO enough to build and make it into experimental

Added: ari/build-area
===================================================================
--- ari/build-area	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/build-area	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1 @@
+link ../build-area/
\ No newline at end of file


Property changes on: ari/build-area
___________________________________________________________________
Name: svn:special
   + *

Added: ari/tarballs
===================================================================
--- ari/tarballs	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/tarballs	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1 @@
+link ../tarballs/
\ No newline at end of file


Property changes on: ari/tarballs
___________________________________________________________________
Name: svn:special
   + *

Added: ari/trunk/debian/README.Debian
===================================================================
--- ari/trunk/debian/README.Debian	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/README.Debian	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,31 @@
+ARI for debian
+--------------
+
+This package provides the ARI from LittleJohnConsulting. 
+No dramatic changes have been done to the package, and basically,
+it's the same code provided in the tarball.
+
+If you have problems reading the recording interface from the web,
+please follow this advice from the web page:
+
+In /etc/asterisk/manager.conf, make sure that the permit line includes 
+127.0.0.1 if the web server is installed on the same machine or the remote 
+computers that you would like ARI to work with. This will allow PHP to talk 
+to the asterisk database, otherwise you will get an error message 
+"Asterisk Manager Connection" Error.
+
+Configuration
+-------------
+Open the file /etc/ari/ari.conf 
+  * To use AMP for database authentication set the 
+    AMP files indicated to the proper settings 
+  * To use ARI standalone for database authentication set 
+    $standalone['use']=true and set the user name and password 
+    Then modify /etc/asterisk/manager.d/ari.conf (please don't modify manger.conf directly)
+  * If you wish to view CDR calls  set $ari_no_login=0, and set the correct SQL server details 
+  * ARI's call monitor default setting is to allow only 
+    viewing of calls of the extension that logged in to the website 
+  * If you wish for certain extensions to view all calls in 
+    the call monitor, set $callmonitor_admin_mailboxes equal to a comma delimited list of the extensions 
+  * If you wish for all users to view all calls in the call 
+    monitor, set $callmonitor_admin_mailboxes to "all" 

Added: ari/trunk/debian/ari.conf
===================================================================
--- ari/trunk/debian/ari.conf	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/ari.conf	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,158 @@
+<?php
+
+# ARI configuration for Debian
+#
+# This is a trimmed version of the configuration available for ARI
+# 
+# This file is included by /usr/share/ari/includes/main.conf, and overides
+# only some portion of the configurations. 
+# 
+# This file will probably be modified between versions, and each time a new package will
+# come, you will probably need to sync the changes. If you have a better idea, please 
+# contact Dan <dan at littlejohnconsulting.com> or Diego Iastrubni <diego.iastrubni at xorcom.com>
+#
+
+
+#
+# if you want to use configuration from amportal.conf, leave this to "false"
+# if you want to use the stand alone configuration, change this to "true"
+$STANDALONE['use'] = true;
+ 
+
+################################
+# stand alone configuration 
+################################
+#
+# Database host and name
+#   Options: supported database types (others are supported, but not listed)
+#     'mysql' - MySQL
+#     'pgsql' - PostgreSQL
+#     'oci8' - Oracle
+#     'odbc' - ODBC
+#
+$ASTERISK_DBHOST = "localhost";
+$ASTERISK_DBNAME = "asterisk";
+$ASTERISK_DBTYPE = "mysql";
+$ASTERISKCDR_DBHOST = "localhost";
+$ASTERISKCDR_DBNAME = "asteriskcdrdb";
+$ASTERISKCDR_DBTYPE = "mysql";
+
+#   set asterisk_mgruser to Asterisk Call Manager username
+#   set asterisk_mgrpass to Asterisk Call Manager password
+#
+$STANDALONE['asterisk_cdrdbuser'] = "";
+$STANDALONE['asterisk_cdrdbpass'] = "";
+$STANDALONE['asterisk_mgruser'] = "ari_admin";
+$STANDALONE['asterisk_mgrpass'] = "ari_password";
+
+###############################
+# authentication settings
+###############################
+#
+# For using the Call Monitor only
+#   option: 0 - use Authentication, Voicemail, and Call Monitor
+#           1 - use only the Call Monitor
+#
+$ARI_NO_LOGIN = 0;
+
+#
+# Admin only account
+#
+$ARI_ADMIN_USERNAME = "admin";
+$ARI_ADMIN_PASSWORD = "password";
+
+#
+# Admin extensions
+#   option: Comma delimited list of extensions
+#
+$ARI_ADMIN_EXTENSIONS = "";
+
+###############################
+# modules settings
+###############################
+#
+# modules with admin only status (they will not be displayed for regular users)
+#   option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
+#
+$ARI_ADMIN_MODULES = "";
+
+#
+# disable modules (you can also just delete them from /recordings/modules without problems)
+#   option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
+# By default we disable the callmonitor
+$ARI_DISABLED_MODULES = "callmonitor";
+
+#
+# sets the default admin page
+#   option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
+#
+$ARI_DEFAULT_ADMIN_PAGE = "callmonitor";
+
+#
+# sets the default user page
+#   option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
+#
+$ARI_DEFAULT_USER_PAGE = "voicemail";
+
+#
+# Extensions with access to all call monitor recordings
+#   option: Comma delimited list of extensions or "all"
+#
+$CALLMONITOR_ADMIN_EXTENSIONS = "1";
+
+#
+# Allow call monitor users to delete monitored calls
+#   option: 0 - do not show controls
+#           1 - show controls
+#
+$CALLMONITOR_ALLOW_DELETE = 1;
+
+#
+# Allow for aggressive matching of recording files to database records
+#     will match recordings that are marked several seconds off
+#   option: 0 - do not aggressively match
+#           1 - aggressively match
+#
+$CALLMONITOR_AGGRESSIVE_MATCHING = 1;
+
+#
+# Limits log/recording file matching to exact matching
+#     will not try to look through all the recordings and make a best match
+#     even if there is not uniqueid
+#     requires that the MYSQL_UNIQUEID flag be compiled in asterisk-addons
+#     (in the asterisk-addon Makefile add the following "CFLAGS+=-DMYSQL_LOGUNIQUEID")
+#
+#     * use if there are or will be more than 2500 recording files
+#
+#   option: 0 - do not exact match 
+#           1 - only exact match 
+#
+$CALLMONITOR_ONLY_EXACT_MATCHING = 0;
+
+#
+# For setting 
+#   option: 0 - do not show controls
+#           1 - show controls
+#
+$SETTINGS_ALLOW_VOICEMAIL_PASSWORD_SET = 1;
+
+#
+# password length 
+#
+$SETTINGS_VOICEMAIL_PASSWORD_LENGTH = 4;
+
+#
+# Default
+#   option: ".wav" - wav format
+#           ".gsm" - gsm format
+#
+$ARI_VOICEMAIL_AUDIO_FORMAT_DEFAULT = ".wav";
+
+#
+# For setting 
+#   option: 0 - do not show controls
+#           1 - show controls
+#
+$SETTINGS_ALLOW_CALL_RECORDING_SET = 1;
+
+?>

Added: ari/trunk/debian/changelog
===================================================================
--- ari/trunk/debian/changelog	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/changelog	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,8 @@
+ari (00.10.02-1) UNRELEASED; urgency=low
+
+  * NOT RELEASED YET
+ 
+  [ Diego Iastrubni ]  
+  * First release
+  
+ -- Diego Iastrubni <diego.iastrubni at xorcom.com>  Thu, 8 Aug 2006 12:00:00 +0200

Added: ari/trunk/debian/compat
===================================================================
--- ari/trunk/debian/compat	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/compat	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1 @@
+4

Added: ari/trunk/debian/config
===================================================================
--- ari/trunk/debian/config	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/config	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium ari/remove-group-warning  || true
+db_go
+

Added: ari/trunk/debian/control
===================================================================
--- ari/trunk/debian/control	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/control	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,33 @@
+Source: ari
+Section: comm
+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>
+Build-Depends-Indep: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: ari
+Architecture: all
+Depends: asterisk, httpd-cgi, libapache-mod-php4|libapahce2-mod-php4|php4-cgi, php4-pear, debconf
+Conflicts: amportal-vmail < 2.0.0
+Description: a web based Recording interface for the Asterisk PBX
+ ARI (Asterisk Recording Inteface) is a user centric portal to the 
+ Asterisk PBX Software. It provides a user friendly web interface to 
+ voicemail and call monitor recordings. As well, it provides access 
+ to user settings in Asterisk. 
+ Features: 
+   * Allows access to voicemail recordings 
+   * Allows access to call monitor recordings 
+   * Allows access to database to view all calls made 
+   * Easy to use search of all calls and recordings 
+   * Easy to use user settings page 
+   * i18n language setting 
+   * call forward enable 
+   * voicemail password 
+   * voicemail email and pager enable 
+   * voicemail recording audio format 
+   * call monitor recording settings 
+   * Handset feature help page 
+   * Login authentication by Asterisk Voicemail Password 
+   * Login authentication by SIP Password (if used no access to voicemail)
+ 

Added: ari/trunk/debian/copyright
===================================================================
--- ari/trunk/debian/copyright	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/copyright	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,11 @@
+ARI maintained by Diego <diego.iastrubni at xorcom.com> 
+ on Wed, 31 Aug 2005 13:57:11 +0300.
+
+
+ARI is distributed under the terms of GPL. 
+For more information about ARI please visit: 
+   http://littlejohnconsulting.com?q=ari
+   
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License may be found in `/usr/share/common-licenses/GPL'.
+

Added: ari/trunk/debian/dirs
===================================================================
--- ari/trunk/debian/dirs	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/dirs	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,10 @@
+etc/ari/
+etc/asterisk/manager.d/
+usr/share/ari/
+usr/share/ari/includes/
+usr/share/ari/locale/
+usr/share/ari/misc/
+usr/share/ari/modules/
+usr/share/ari/theme/
+usr/share/ari/theme/images/
+var/www/

Added: ari/trunk/debian/docs
===================================================================
--- ari/trunk/debian/docs	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/docs	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,2 @@
+recordings/CHANGE.log
+recordings/README.txt
\ No newline at end of file

Added: ari/trunk/debian/install
===================================================================
--- ari/trunk/debian/install	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/install	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,14 @@
+debian/ari.conf				etc/ari/
+debian/manager.d/*			etc/asterisk/manager.d/
+recordings/*.php			usr/share/ari/
+recordings/*.inc			usr/share/ari/
+recordings/includes/*			usr/share/ari/includes/
+recordings/locale/			usr/share/ari/
+recordings/misc/*.php			usr/share/ari/misc/
+recordings/modules/*.module		usr/share/ari/modules/
+recordings/theme/*.css			usr/share/ari/theme/
+recordings/theme/*.php			usr/share/ari/theme/
+recordings/theme/*.png			usr/share/ari/theme/
+recordings/theme/*.gif			usr/share/ari/theme/
+recordings/theme/images/*.png		usr/share/ari/theme/images/
+recordings/theme/images/*.gif		usr/share/ari/theme/images/

Added: ari/trunk/debian/manager.d/ari.conf
===================================================================
--- ari/trunk/debian/manager.d/ari.conf	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/manager.d/ari.conf	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,10 @@
+;
+; Manager user for Asterisk recording Interface
+;
+[ari_admin]
+secret = ari_password
+deny = 0.0.0.0/0.0.0.0
+permit = 127.0.0.1/255.255.255.0
+read = system,call,log,verbose,command,agent,user
+write = system,call,log,verbose,command,agent,user
+

Added: ari/trunk/debian/patches/00list
===================================================================
--- ari/trunk/debian/patches/00list	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/patches/00list	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,5 @@
+add-etc-config
+change-amp-functions-dir
+#remove-dir-warnings
+
+#fix-include-glob
\ No newline at end of file

Added: ari/trunk/debian/patches/add-etc-config.dpatch
===================================================================
--- ari/trunk/debian/patches/add-etc-config.dpatch	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/patches/add-etc-config.dpatch	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## add-etc-config.dpatch by Diego Iastrubni <diego.iastrubni at xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add a hook for loading configurations in /etc/ari/ari.conf
+
+ at DPATCH@
+diff -urNad ari-00.10.02/recordings/includes/main.conf.php /tmp/dpep.7hBBKN/ari-00.10.02/recordings/includes/main.conf.php
+--- ari-00.10.02/recordings/includes/main.conf.php	2006-05-10 16:33:44.000000000 +0300
++++ /tmp/dpep.7hBBKN/ari-00.10.02/recordings/includes/main.conf.php	2006-05-10 16:34:57.000000000 +0300
+@@ -305,5 +305,12 @@
+ #
+ $SETTINGS_ALLOW_CALL_RECORDING_SET = 1;
+ 
++# System configuration:
++#   Users should not modify files, but system configurations,
++#   and because those config file should be optional. The best way of doying this is
++#   to add a system global configuration file which will override some configurations
++#   from this file. The new config will not contain all the configurations, since not
++#   all of them should be modified by users.
++include '/etc/ari/ari.conf';
+ 
+-?>
+\ No newline at end of file
++?>


Property changes on: ari/trunk/debian/patches/add-etc-config.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ari/trunk/debian/patches/change-amp-functions-dir.dpatch
===================================================================
--- ari/trunk/debian/patches/change-amp-functions-dir.dpatch	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/patches/change-amp-functions-dir.dpatch	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## change-amp-functions-dir.dpatch by Diego Iastrubni <diego.iastrubni at xorcom.com>
+##
+## DP: ARI is not installed as part of freepbx, so we need to modify it's path. 
+
+ at DPATCH@
+diff -urNad ari-00.10.02/recordings/includes/main.conf.php /tmp/dpep.BH9czo/ari-00.10.02/recordings/includes/main.conf.php
+--- ari-00.10.02/recordings/includes/main.conf.php	2006-05-10 16:37:13.000000000 +0300
++++ /tmp/dpep.BH9czo/ari-00.10.02/recordings/includes/main.conf.php	2006-05-10 16:37:30.000000000 +0300
+@@ -11,7 +11,7 @@
+ #
+ # From AMP.  Used for logon to database.
+ #
+-$AMP_FUNCTIONS_FILES = "../admin/functions.php;../admin/functions.inc.php";
++$AMP_FUNCTIONS_FILES = "/usr/share/freepbx/admin/functions.php;/usr/share/freepbx/admin/functions.inc.php";
+ $AMPORTAL_CONF_FILE = "/etc/amportal.conf";
+ 
+ #


Property changes on: ari/trunk/debian/patches/change-amp-functions-dir.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ari/trunk/debian/patches/fix-include-glob.dpatch
===================================================================
--- ari/trunk/debian/patches/fix-include-glob.dpatch	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/patches/fix-include-glob.dpatch	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix-include-glob.dpatch by  <diegolocal at turing.in.xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ari-00.09.21/recordings/includes/login.php /tmp/dpep.7EJxV9/ari-00.09.21/recordings/includes/login.php
+--- ari-00.09.21/recordings/includes/login.php	2006-03-30 07:34:13.000000000 +0200
++++ /tmp/dpep.7EJxV9/ari-00.09.21/recordings/includes/login.php	2006-04-02 16:58:25.000000000 +0300
+@@ -109,12 +109,15 @@
+               if (isset($parts[1])) {
+                 $include_filename = trim($parts[1]);
+               }
+-
++	      
+               if ($include_filename) {
+                 $path_parts = pathinfo($ASTERISK_VOICEMAIL_CONF);
+                 $include_path = fixPathSlash($path_parts['dirname']) . $include_filename;
+-                $include_lines = file($include_path);
+-                $lines = array_merge($include_lines,$lines);
++                foreach ( glob($include_path) as $voicemail_file )
++                {
++                  $include_lines = file($voicemail_file);
++                  $lines = array_merge($include_lines,$lines);
++                }
+               }
+             }
+           }


Property changes on: ari/trunk/debian/patches/fix-include-glob.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ari/trunk/debian/patches/remove-dir-warnings.dpatch
===================================================================
--- ari/trunk/debian/patches/remove-dir-warnings.dpatch	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/patches/remove-dir-warnings.dpatch	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix-include-glob.dpatch by  <diegolocal at turing.in.xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ari-00.09.21/recordings/modules/voicemail.module /tmp/dpep.w7Sskk/ari-00.09.21/recordings/modules/voicemail.module
+--- ari-00.09.21/recordings/modules/voicemail.module	2006-03-30 07:34:12.000000000 +0200
++++ /tmp/dpep.w7Sskk/ari-00.09.21/recordings/modules/voicemail.module	2006-04-02 16:56:12.000000000 +0300
+@@ -80,7 +80,7 @@
+         $path = appendPath($path,$context);
+         $path = appendPath($path,$extension);
+   
+-        if (is_dir($path)) {
++        if (is_dir($path) && is_readable($path)) {
+           $dh = opendir($path);
+           while (false!== ($folder = readdir($dh))) {
+ 
+@@ -114,7 +114,8 @@
+           } 
+         } 
+         else {
+-          $_SESSION['ari_error'] .= sprintf(_("Path is not a directory: %s"),$path) . "<br>";
++          // Do we really need to disturn the user with this...?
++          //$_SESSION['ari_error'] .= sprintf(_("Path is not a directory: %s"),$path) . "<br>";
+         }
+       }
+       $i++;


Property changes on: ari/trunk/debian/patches/remove-dir-warnings.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ari/trunk/debian/postinst
===================================================================
--- ari/trunk/debian/postinst	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/postinst	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,54 @@
+#! /bin/sh
+# postinst script for ari
+#
+# see: dh_installdeb(1)
+
+. /usr/share/debconf/confmodule
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+	configure)
+		# add www-data to the group asterisk
+		if ! echo `groups www-data` | grep asterisk -q; then 
+			adduser www-data asterisk
+		fi
+
+		# generate cool random passwords for the manager
+		RAND_PASS=`dd if=/dev/urandom count=20 2>/dev/null | md5sum | awk '{print $1}'` 
+		
+		# modify the ARI and manager configuration
+		sed -r -i "s|\['asterisk_mgrpass'\][ \w]*=[ \w]*\"[a-zA-Z0-9_]*\"|\['asterisk_mgrpass'\] = \"$RAND_PASS\"|" /etc/ari/ari.conf
+		sed -r -i "s|secret[ \t]*=[ \t]*[a-zA-Z0-9_]*|secret = $RAND_PASS|" /etc/asterisk/manager.d/ari.conf
+		
+		# ask asterisk to reload the manager configuration
+		# if asterisk is down, it's OK to fail
+		asterisk -rx 'reload' || true
+	;;
+	
+	abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+	
+	*)
+		echo "postinst called with unknown argument \`$1'" >&2
+		exit 1
+	;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: ari/trunk/debian/rules
===================================================================
--- ari/trunk/debian/rules	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/rules	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,88 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+-include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: patch configure-stamp
+configure-stamp: configure
+	dh_testdir
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+	touch build-stamp
+
+
+clean: unpatch clean-unpatched 
+
+clean-unpatched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	dh_install
+
+#	files have +x mode, remove that as lintian does not like this
+# 	on this project this can be done globally
+	find  debian/ari -type f | xargs chmod -x
+	
+#	clean up l18n dir
+# 	rm -f debian/ari/usr/share/ari/locale/*.txt*
+# 	rm -f debian/ari/usr/share/ari/locale/ari*.po
+
+	rm -f debian/ari/usr/share/ari/locale/readme.txt
+	find debian/ari/usr/share/ari/locale/ -name '*.po' | xargs rm -f
+	
+#	add default link to ARI
+	ln -s /usr/share/ari/ debian/ari/var/www
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+	dh_installdebconf
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch
+


Property changes on: ari/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: ari/trunk/debian/templates
===================================================================
--- ari/trunk/debian/templates	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/templates	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,10 @@
+Template: ari/remove-group-warning
+Type: note
+Description: Note about permissions of this package
+ Since this package needs to write files into /etc/asterisk/
+ and it must run from the web server, the only valid solution is to
+ add this add the user www-data to the group asterisk.
+ .
+ On unistall this package does not remove the user www-data
+ from the group asterisk, and it's recommended that you do 
+ this yourself.

Added: ari/trunk/debian/watch
===================================================================
--- ari/trunk/debian/watch	2006-08-08 06:18:11 UTC (rev 2198)
+++ ari/trunk/debian/watch	2006-08-08 07:04:47 UTC (rev 2199)
@@ -0,0 +1,17 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 2 file
+version=2
+
+# Uncomment to examine a Webpage 
+# <Webpage URL> <string match>
+http://www.littlejohnconsulting.com/?q=ari ari_(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/ari-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/ari-(.*)\.tar\.gz debian uupdate




More information about the Pkg-voip-commits mailing list