[Pkg-voip-commits] r3148 - destar/branches/0.2.0-4_etch/debian
Alejandro Rios P.
alerios-guest at alioth.debian.org
Tue Feb 13 17:28:21 CET 2007
Author: alerios-guest
Date: 2007-02-13 17:28:21 +0100 (Tue, 13 Feb 2007)
New Revision: 3148
Modified:
destar/branches/0.2.0-4_etch/debian/postinst
destar/branches/0.2.0-4_etch/debian/rules
Log:
Don't rewrite /etc/asterisk/destar_cfg.py if it's already present and install it as an example.
Modified: destar/branches/0.2.0-4_etch/debian/postinst
===================================================================
--- destar/branches/0.2.0-4_etch/debian/postinst 2007-02-13 16:08:01 UTC (rev 3147)
+++ destar/branches/0.2.0-4_etch/debian/postinst 2007-02-13 16:28:21 UTC (rev 3148)
@@ -24,7 +24,6 @@
chown -R asterisk:asterisk /var/run/destar/
chown -R asterisk:asterisk /var/log/destar/
mkdir -p /etc/asterisk/manager.d
- chown asterisk:asterisk /etc/asterisk/destar_cfg.py
chown -R asterisk:asterisk /etc/asterisk/manager.d
mkdir -p /etc/op-panel/destar/
touch /etc/op-panel/destar/op_server.cfg
@@ -32,7 +31,15 @@
touch /etc/op-panel/destar/op_astdb.cfg
touch /etc/op-panel/destar/op_style.cfg
chown -R asterisk:asterisk /etc/op-panel/destar/
-
+ if ! [ -a /etc/asterisk/destar_cfg.py ]; then
+ if [ -a /usr/share/doc/destar/examples/destar_cfg.py.gz ]; then
+ gunzip /usr/share/doc/destar/examples/destar_cfg.py.gz
+ fi
+ cp -ba /usr/share/doc/destar/examples/destar_cfg.py /etc/asterisk/
+ fi
+ chown asterisk:asterisk /etc/asterisk/destar_cfg.py
+
+
# Alternative configuration for op-panel: destar, priority 70
update-alternatives --install \
/etc/op-panel/op_server.cfg op-panel /etc/op-panel/destar/op_server.cfg 70 \
Modified: destar/branches/0.2.0-4_etch/debian/rules
===================================================================
--- destar/branches/0.2.0-4_etch/debian/rules 2007-02-13 16:08:01 UTC (rev 3147)
+++ destar/branches/0.2.0-4_etch/debian/rules 2007-02-13 16:28:21 UTC (rev 3148)
@@ -46,14 +46,13 @@
$(MAKE) install DESTDIR=$(CURDIR)/debian/destar
$(MAKE) install-panel DESTDIR=$(CURDIR)/debian/destar
- install -m 644 examples/destar_cfg.py $(CURDIR)/debian/destar/$(ASTERISK_CFG_DIR)/
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs CHANGELOG.txt
dh_installdocs
- dh_installexamples
+ dh_installexamples examples/destar_cfg.py
dh_installinit
dh_link
dh_strip
More information about the Pkg-voip-commits
mailing list