Re: [asterisk-users] What to do when changing from one asterisk version to another ?

2016-12-15 Thread Olivier
2016-12-13 16:19 GMT+01:00 Tzafrir Cohen :

> On Thu, Dec 08, 2016 at 06:23:15PM +0100, Olivier wrote:
> > Hello,
> >
> > I'm compiling Asterisk from source on Debian systems.
> >
> > I'm currently writing a script I'm planning to launch when upgrading from
> > one Asterisk version to another one within the same class (from 13.4.0 to
> > 13.12.0 or from 13.12.0 to 13.8.0, for instance).
> >
> > Reading [1], I thought the following would work:
> > cd /usr/src/asterisk-13.4.0
> > ./configure
> > make
> > make install
> > ...
> > cd /usr/src/asterisk-13.4.0
> > make dist-clean
> >
> > After running above commands, /usr/sbin/asterisk and
> > /usr/lib/asterisk/modules/*.so files still exist.
> > I would expect both /usr/sbin/asterisk and /usr/lib/asterisk/modules/*.so
> > filesto be removed so that if I newly installed asterisk instance
> wouldn't
> > inherit uncontrolled files.
>
> If you package the result in a deb instead of directly installing it,
> you can make sure it is completely removed upon package removal.
>

Yes, I agree !
The more time I spend on such installation scripting, the more I think I
should master deb packaging and reuse appropriate tools.


>
> --
>Tzafrir Cohen
> icq#16849755  jabber:tzafrir.co...@xorcom.com
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] What to do when changing from one asterisk version to another ?

2016-12-13 Thread Tzafrir Cohen
On Thu, Dec 08, 2016 at 06:23:15PM +0100, Olivier wrote:
> Hello,
> 
> I'm compiling Asterisk from source on Debian systems.
> 
> I'm currently writing a script I'm planning to launch when upgrading from
> one Asterisk version to another one within the same class (from 13.4.0 to
> 13.12.0 or from 13.12.0 to 13.8.0, for instance).
> 
> Reading [1], I thought the following would work:
> cd /usr/src/asterisk-13.4.0
> ./configure
> make
> make install
> ...
> cd /usr/src/asterisk-13.4.0
> make dist-clean
> 
> After running above commands, /usr/sbin/asterisk and
> /usr/lib/asterisk/modules/*.so files still exist.
> I would expect both /usr/sbin/asterisk and /usr/lib/asterisk/modules/*.so
> filesto be removed so that if I newly installed asterisk instance wouldn't
> inherit uncontrolled files.

If you package the result in a deb instead of directly installing it,
you can make sure it is completely removed upon package removal.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] What to do when changing from one asterisk version to another ?

2016-12-08 Thread Richard Mudgett
On Thu, Dec 8, 2016 at 11:38 AM, Olivier  wrote:

>
>
> 2016-12-08 18:23 GMT+01:00 Olivier :
>
>> Hello,
>>
>> I'm compiling Asterisk from source on Debian systems.
>>
>> I'm currently writing a script I'm planning to launch when upgrading from
>> one Asterisk version to another one within the same class (from 13.4.0 to
>> 13.12.0 or from 13.12.0 to 13.8.0, for instance).
>>
>> Reading [1], I thought the following would work:
>> cd /usr/src/asterisk-13.4.0
>> ./configure
>> make
>> make install
>> ...
>> cd /usr/src/asterisk-13.4.0
>> make dist-clean
>>
>> After running above commands, /usr/sbin/asterisk and
>> /usr/lib/asterisk/modules/*.so files still exist.
>> I would expect both /usr/sbin/asterisk and /usr/lib/asterisk/modules/*.so
>> filesto be removed so that if I newly installed asterisk instance wouldn't
>> inherit uncontrolled files.
>>
>> I also tried with make clean and make uninstall with the same result but
>> I may have missed some steps during my trials.
>>
>
> Correcting myself, make uninstall seems to be what I was after for
> Asterisk itself.
> I'm still searching for the equivalent make target for pjproject.
>

pjproject has a make uninstall target as well.

Since v13.8, Asterisk has a --with-pjproject-bundled option [1].  This will
configure, build,
and statically link with pjproject to give better integration with
Asterisk.  It also applies a
few backported fixes to the pjproject version used.

Richard

[1] https://wiki.asterisk.org/wiki/display/AST/Building+and+Inst
alling+Asterisk
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] What to do when changing from one asterisk version to another ?

2016-12-08 Thread Olivier
2016-12-08 18:23 GMT+01:00 Olivier :

> Hello,
>
> I'm compiling Asterisk from source on Debian systems.
>
> I'm currently writing a script I'm planning to launch when upgrading from
> one Asterisk version to another one within the same class (from 13.4.0 to
> 13.12.0 or from 13.12.0 to 13.8.0, for instance).
>
> Reading [1], I thought the following would work:
> cd /usr/src/asterisk-13.4.0
> ./configure
> make
> make install
> ...
> cd /usr/src/asterisk-13.4.0
> make dist-clean
>
> After running above commands, /usr/sbin/asterisk and
> /usr/lib/asterisk/modules/*.so files still exist.
> I would expect both /usr/sbin/asterisk and /usr/lib/asterisk/modules/*.so
> filesto be removed so that if I newly installed asterisk instance wouldn't
> inherit uncontrolled files.
>
> I also tried with make clean and make uninstall with the same result but I
> may have missed some steps during my trials.
>

Correcting myself, make uninstall seems to be what I was after for Asterisk
itself.
I'm still searching for the equivalent make target for pjproject.


>
> Before diving deeper, are my expectations correct ?
>
> Best regards
>
> [1] https://wiki.asterisk.org/wiki/display/AST/Building+and+
> Installing+Asterisk
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] What to do when changing from one asterisk version to another ?

2016-12-08 Thread Olivier
Hello,

I'm compiling Asterisk from source on Debian systems.

I'm currently writing a script I'm planning to launch when upgrading from
one Asterisk version to another one within the same class (from 13.4.0 to
13.12.0 or from 13.12.0 to 13.8.0, for instance).

Reading [1], I thought the following would work:
cd /usr/src/asterisk-13.4.0
./configure
make
make install
...
cd /usr/src/asterisk-13.4.0
make dist-clean

After running above commands, /usr/sbin/asterisk and
/usr/lib/asterisk/modules/*.so files still exist.
I would expect both /usr/sbin/asterisk and /usr/lib/asterisk/modules/*.so
filesto be removed so that if I newly installed asterisk instance wouldn't
inherit uncontrolled files.

I also tried with make clean and make uninstall with the same result but I
may have missed some steps during my trials.

Before diving deeper, are my expectations correct ?

Best regards

[1]
https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+Asterisk
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users