[Pkg-voip-commits] r3151 - asterisk/trunk/debian
Tzafrir Cohen
tzafrir-guest at alioth.debian.org
Tue Feb 13 18:31:19 CET 2007
Author: tzafrir-guest
Date: 2007-02-13 18:31:19 +0100 (Tue, 13 Feb 2007)
New Revision: 3151
Added:
asterisk/trunk/debian/postinst
Modified:
asterisk/trunk/debian/README.Debian
asterisk/trunk/debian/asterisk.init
asterisk/trunk/debian/asterisk.postrm
asterisk/trunk/debian/changelog
asterisk/trunk/debian/examples
asterisk/trunk/debian/rules
Log:
No need to edit a config file to start Asterisk.
Modified: asterisk/trunk/debian/README.Debian
===================================================================
--- asterisk/trunk/debian/README.Debian 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/README.Debian 2007-02-13 17:31:19 UTC (rev 3151)
@@ -14,7 +14,7 @@
User, Groups, Permissions
=========================
By default the package will create user and group 'asterisk' and will run as
-them. It will optionally run with real-time priority (-p). It will also add
+them. It will run with real-time priority (-p) by default. It will also add
itself to the group audio to enable the daemon to access sound cards. Running
as root is disabled in /etc/init.d/asterisk for security reasons. If you use
zaptel devices (like zaphfc too), you need to set permissions on /dev/zap to
@@ -23,8 +23,7 @@
will not have any access still. When no -G is given to the asterisk PARAMS,
then asterisk will automatically initialize all groups of the asterisk user.
-To change those values you can edit /etc/default/asterisk. You need to set
-RUNASTERISK=yes to make asterisk autostart upon boot.
+To change those values you can edit /etc/default/asterisk.
init.d Script Commands
======================
@@ -38,7 +37,7 @@
asterisk daemon with 'asterisk -vcr'. When testing, make sure to use the "-U
asterisk", or asterisk may write files with root ownership. In that case you
might not be able to restart the daemon without altering permissions to the
-files first.
+files first. Alternatively use '/etc/init.d/asterisk debug'.
Getting started with config and more features
Modified: asterisk/trunk/debian/asterisk.init
===================================================================
--- asterisk/trunk/debian/asterisk.init 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/asterisk.init 2007-02-13 17:31:19 UTC (rev 3151)
@@ -28,7 +28,7 @@
# by default: use real-time priority
PARAMS=""
AST_REALTIME="yes"
-RUNASTERISK="no"
+RUNASTERISK="yes"
if [ -r /etc/default/$NAME ]; then . /etc/default/$NAME; fi
if [ "$RUNASTERISK" != "yes" ];then
Modified: asterisk/trunk/debian/asterisk.postrm
===================================================================
--- asterisk/trunk/debian/asterisk.postrm 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/asterisk.postrm 2007-02-13 17:31:19 UTC (rev 3151)
@@ -3,6 +3,7 @@
if [ "$1" = purge ]; then
userdel -r asterisk 2>/dev/null || true
rm -fR /var/log/asterisk
+ rm -f /etc/default/asterisk || true
fi
Modified: asterisk/trunk/debian/changelog
===================================================================
--- asterisk/trunk/debian/changelog 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/changelog 2007-02-13 17:31:19 UTC (rev 3151)
@@ -1,10 +1,12 @@
asterisk (1:1.2.15~dfsg-1) UNRELEASED; urgency=low
- * New upstream release.
+ * New upstream release.
* ukcid.dpatch: adapted to chan_conf.
* bristuff.dpatch: adapted to chan_conf.
+ * daemon_color.dpatch: make rastrisk colourful even without safe_asterisk.
+ * No need to edit a config file to start Asterisk.
- -- Tzafrir Cohen <tzafrir at boomtime.cohens.org.il> Sat, 10 Feb 2007 15:58:33 +0200
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Tue, 13 Feb 2007 18:54:26 +0200
asterisk (1:1.2.14~dfsg-5) UNRELEASED; urgency=low
Modified: asterisk/trunk/debian/examples
===================================================================
--- asterisk/trunk/debian/examples 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/examples 2007-02-13 17:31:19 UTC (rev 3151)
@@ -2,3 +2,4 @@
configs/*
muted.conf.sample
agi/agi-test.agi
+debian/asterisk.default
Added: asterisk/trunk/debian/postinst
===================================================================
--- asterisk/trunk/debian/postinst 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/postinst 2007-02-13 17:31:19 UTC (rev 3151)
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+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>
+# * <postinst> `abort-remove'
+# * <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)
+ if [ ! -f /etc/default/asterisk ]; then
+ cp -a /usr/share/doc/asterisk/examples/asterisk.default \
+ /etc/default/asterisk
+ fi
+ ;;
+
+ 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
+
+
Modified: asterisk/trunk/debian/rules
===================================================================
--- asterisk/trunk/debian/rules 2007-02-13 16:57:37 UTC (rev 3150)
+++ asterisk/trunk/debian/rules 2007-02-13 17:31:19 UTC (rev 3151)
@@ -148,8 +148,6 @@
# Add here commands to install the package into debian/<packagename>
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install samples
cp channels/h323/h323.conf.sample $(CURDIR)/debian/tmp/etc/asterisk/h323.conf
- mkdir -p $(CURDIR)/debian/tmp/etc/default/
- cp debian/asterisk.default $(CURDIR)/debian/tmp/etc/default/asterisk
mkdir -p $(CURDIR)/debian/tmp/usr/lib/cgi-bin/asterisk/
cp contrib/scripts/vmail.cgi $(CURDIR)/debian/tmp/usr/lib/cgi-bin/asterisk/
chmod +x $(CURDIR)/debian/tmp/usr/lib/cgi-bin/asterisk/vmail.cgi
More information about the Pkg-voip-commits
mailing list