asterisk packages some fixes

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Jul 26 23:11:39 UTC 2006


On Wed, Jul 26, 2006 at 05:53:51PM -0300, Thiago Martins wrote:
> Em Qua, 2006-07-26 às 19:46 +0200, Kilian Krause escreveu:
> > Thiago,
> > 
> > > How can I increase the release version "1.dapper.2078" ? To ".2079"?
> > 
> > just edit the top line in debian/changelog and recompile. That's all.
> > You can either upload to mentors.debian.net (yet I don't know what they
> > will think about a snapshot release in their archive) or you can
> > alternatively host it on private webspace. If anyone can reckon to me
> > that mentors.debian.net is a bad idea, I can also add a private archive
> > pool for testing within the pkg-voip.buildserver domain, yet I would
> > welcome to just see patches on the mailinglist archive and then have the
> > SVN and regular scripts deal with it. 
> > 
> > So, Thiago, would it alternatively be possible for you to just send the
> > full "diff -urN debian/ ../asterisk.old/debian" output in a properly
> > bzipped or gzipped format to this mailinglist?
> 
> Ok,
> 
>  For now I wont upload the changes with the dupload command:
> $ dupload -t mentors asterisk_1.2.10.dfsg-1.dapper.2079_i386.changes
> 
>  So, I send the diff for the debian/ subdir attached in this mail.

Two small remarks:

from the debian/asterisk_fix:

-invoke-rc.d asterisk restart || true 
+#invoke-rc.d asterisk restart || true 
+
+# If asterisk in running, reload it
+# otherwise start it
+if [ -f "/etc/init.d/asterisk" ];then
+       if [ -f /var/run/asterisk/asterisk.pid ];then
+               invoke-rc.d asterisk reload || exit $?
+       else
+               invoke-rc.d asterisk start || exit $?
+       fi
+fi

'command || exit $?'  is the same as 'command'. Recall that the script
runs with set -e.

I have added there the '|| true ' after failiure of the postint script
at install tim caused an installation error and some non-configured
packages (that dependend on asterisk).

Also: is there any reason you hardware the content of the postinst
script and don't just put the debhelper stanza?

BTW: one issue with the current init.d script is that a 'restart' will
kill even 'asterisk -R' processes.

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com



More information about the Pkg-voip-maintainers mailing list