asterisk packages some fixes

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Jul 26 22:55:22 UTC 2006


Hi

On Wed, Jul 26, 2006 at 12:22:57PM -0300, Thiago Martins wrote:
> Em Qua, 2006-07-26 às 01:21 -0400, Diego Iastrubni escreveu:
> > On Tuesday 25 July 2006 16:30, you wrote:
> > > In the asterisk package:
> > > * asterisk_fix is on this package:
> > it was not there...?
> No, it's not there! So I must add this 3 lines on "install: build" in
> the debian/rules:
> 
> "mkdir -p $(CURDIR)/debian/tmp/usr/share/asterisk/bin
> cp debian/asterisk_fix $(CURDIR)/debian/tmp/usr/share/asterisk/bin
> chmod +x $(CURDIR)/debian/tmp/usr/share/asterisk/bin/asterisk_fix"
> 
> and in the new file asterisk.install:
> usr/share/asterisk/bin

asterisk.install is not there because it's duplicated in the rules file.
dh_install there will copy from the tmp dir anyway. So using dh_install
here only duplicates the files list (once in the rules file and once in
the .install file). I followed others in simply copying the file to the
final destination.

> 
> > > * asterisk.install with: "usr/share/asterisk/bin" and
> > > "usr/share/asterisk/firmware/iax"
> > > * asterisk.postinst with: "if asterisk is not running - start it,
> > > otherwise reload."
> > I am not following this... 
> ok, I'm not too.

Right. So there is some stuff that is installed by the makefile and
should actually get into the package asterisk. Or maybe not?

> 
> > > * Init.d script must manage /var/run/asterisk dir, not the package
> > > itself, because of varrun solution on Ubuntu is very different. So, I
> > > commented out "dh_installdirs var/run/asterisk" in the debian/rules.
> > NIce to know. Ok, now I am definetly sure that debian != ubuntu.

Isn't there an ubuntu patch to debhelper that would make such changes
more transparent and would allow "source level compatibility"?

> Yeah! Ubuntu != Debian. So, never use a Debian package on Ubuntu without changes.
> 

Right

> > > In the debian/rules:
> > > * install asterisk_fix on the package asterisk.
> > > * comment "dh_installdirs var/run/asterisk".
> > >
> > > And other minor changes.
> > >
> > > How can I increase the release version "1.dapper.2078" ? To ".2079"?
> > See the changelog file. Isn't it there? 
> 
>  I see in the changelog... but I think the changes aren't for Ubuntu...
> 

> PS.: I want/thinking in re-create the entire debian/* for the asterisk
> source on Ubuntu, without bristuff and some patches, maybe using cdbs...
> But I'm not sure if this work is necessary... What do you think?

This would mean a fork and thus much more work for you in syncing 
patches and whatever.

If you think cdbs is a good idea, please try reimplementing the current
package with it and demonstrate that it is indeed an improvement.

As for bristuff: I would really like to see some partial patches of the
useful parts of bristuff. I wonder which of the could be applied in a
less intrussive patch.

-- 
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