From ff55d0363799be799b3de33381069f83bfdfbb27 Mon Sep 17 00:00:00 2001 From: Jon Bonilla Date: Wed, 29 Aug 2012 08:39:26 +0000 Subject: [PATCH] Merge packaging from trunk --- pkg/kamailio/deb/squeeze/changelog | 11 +++++++++++ pkg/kamailio/deb/squeeze/kamailio.postinst | 16 ++++++---------- pkg/kamailio/deb/squeeze/rules | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog index 682666780..160a63b54 100644 --- a/pkg/kamailio/deb/squeeze/changelog +++ b/pkg/kamailio/deb/squeeze/changelog @@ -1,3 +1,14 @@ +kamailio (3.3+ngcp2.6.5) unstable; urgency=low + + [ Michael Prokop ] + * kamailio.postinst: postinst: do not exit if update-rc.d does not work + + [ jbonilla ] + * kamailio.postinst: Remove debhelper mark fomr postinst script + * rules: disable dh_installdebconf + + -- Jon Bonilla Wed, 29 Aug 2012 10:30:35 +0200 + kamailio (3.3+ngcp2.6.4) unstable; urgency=low * Conflict with ngcp-system-tools-* packages. diff --git a/pkg/kamailio/deb/squeeze/kamailio.postinst b/pkg/kamailio/deb/squeeze/kamailio.postinst index e30606fac..51e6f2b1c 100644 --- a/pkg/kamailio/deb/squeeze/kamailio.postinst +++ b/pkg/kamailio/deb/squeeze/kamailio.postinst @@ -1,13 +1,10 @@ #! /bin/sh # -# $Id$ - -PKG=kamailio -DEFAULTS=/etc/default/kamailio -HOMEDIR=/var/run/kamailio set -e +HOMEDIR=/var/run/kamailio + restart_handler() { [ -n "$1" ] || return 1 @@ -24,7 +21,9 @@ initscript_handler() { [ -n "$1" ] || return 1 if [ -x "/etc/init.d/$1" ]; then - update-rc.d "$1" defaults >/dev/null + if ! update-rc.d "$1" defaults >/dev/null ; then + echo "Warning: update-rc.d could not be executed, might be caused by mysql not available yet." + fi invoke-rc.d "$1" start || exit $? fi } @@ -50,13 +49,12 @@ case "$1" in configure) adduser --quiet --system --group --disabled-password \ --shell /bin/false --gecos "Kamailio" \ - --home $HOMEDIR kamailio || true + --home "$HOMEDIR" kamailio || true init_handler kamailio-lb init_handler kamailio-proxy ;; abort-upgrade|abort-remove|abort-deconfigure) - ;; *) @@ -65,5 +63,3 @@ case "$1" in ;; esac -#DEBHELPER# - diff --git a/pkg/kamailio/deb/squeeze/rules b/pkg/kamailio/deb/squeeze/rules index 1a3f0d4ce..29232cce7 100755 --- a/pkg/kamailio/deb/squeeze/rules +++ b/pkg/kamailio/deb/squeeze/rules @@ -178,7 +178,7 @@ install: build binary-common: dh_testdir dh_testroot - dh_installdebconf +# dh_installdebconf dh_installdocs dh_installexamples dh_installmenu