Re: [asterisk-users] Creating Asterisk Binary Package

2008-10-07 Thread Dobry Dobrev
Brendan Martens wrote:
>> Jim Boykin wrote:
>>> I know about those packages. Questions is how do we use those  
>>> packages
>>> to build our own RPM. We use asterisk SVN trunk.
>>>
>> asterisk usually comes with asterisk.spec and make target "rpm". With
>> some slight  modifications on the spec file you can pretty much build
>> whatever you need into the package.
>>
> 
> You can try checkinstall. It makes a package (it supports a few kinds,  
> rpm being one of them) out of the software you compiled. Basically  
> instead of finishing with "make install" you just do "checkinstall"  
> and it will make a package and then use your packaging system to  
> install it. I use this often for Debian and it works very well there.  
> You're distribution very likely has checkinstall available in it's  
> main repository. If not the website is here for more info: 
> http://www.asic-linux.com.mx/~izto/checkinstall/

Hey thanks, didn't knew about that, it worked right out of the box!
BR
Dobry

> 
> Brendan
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-10-07 Thread Brendan Martens

> Jim Boykin wrote:
>> I know about those packages. Questions is how do we use those  
>> packages
>> to build our own RPM. We use asterisk SVN trunk.
>>
> asterisk usually comes with asterisk.spec and make target "rpm". With
> some slight  modifications on the spec file you can pretty much build
> whatever you need into the package.
>

You can try checkinstall. It makes a package (it supports a few kinds,  
rpm being one of them) out of the software you compiled. Basically  
instead of finishing with "make install" you just do "checkinstall"  
and it will make a package and then use your packaging system to  
install it. I use this often for Debian and it works very well there.  
You're distribution very likely has checkinstall available in it's  
main repository. If not the website is here for more info: 
http://www.asic-linux.com.mx/~izto/checkinstall/

Brendan

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-10-07 Thread Dobry Dobrev
Jim Boykin wrote:
> I know about those packages. Questions is how do we use those packages
> to build our own RPM. We use asterisk SVN trunk.
> 
asterisk usually comes with asterisk.spec and make target "rpm". With
some slight  modifications on the spec file you can pretty much build
whatever you need into the package.

BR
--
Dobry

> Thanks
> Jim
> 
> 
> 
> On Mon, Sep 29, 2008 at 4:07 PM, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
>> On Mon, Sep 29, 2008 at 03:51:35PM +0530, Jim Boykin wrote:
>>> We use RHEL5, FC6, & CentOS5. I will be happy to hear your inputs for
>>> any distribution you know.
>> Fedora 9 has a package, but I think it is asterisk 1.6.0-rc9.
>>
>> Some SRPMs of lesser quality for Centos 5:
>>
>>  http://yum.trixbox.org/centos/5/SRPMS/
>>  http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/A.group.html
>>  
>> http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/asterisk-0-1.4.21.2-2.html
>>
>>  http://repo.elastix.org/centos/5/updates/SRPMS/repodata/
>>  
>> http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/A.group.html
>>  
>> http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/asterisk-1-1.4.21.2-3.html
>>
>> (Elastix's developers have this funny habbit of making the path leading
>> to that directory non-indexed)
>>
>> The lesser quality shows e.g. in the fact that the changelog is not
>> always updated.
>>
>> --
>>   Tzafrir Cohen
>> icq#16849755  jabber:[EMAIL PROTECTED]
>> +972-50-7952406   mailto:[EMAIL PROTECTED]
>> http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
>>
>> ___
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> 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 --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Jim Boykin
I know about those packages. Questions is how do we use those packages
to build our own RPM. We use asterisk SVN trunk.

Thanks
Jim



On Mon, Sep 29, 2008 at 4:07 PM, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 03:51:35PM +0530, Jim Boykin wrote:
>> We use RHEL5, FC6, & CentOS5. I will be happy to hear your inputs for
>> any distribution you know.
>
> Fedora 9 has a package, but I think it is asterisk 1.6.0-rc9.
>
> Some SRPMs of lesser quality for Centos 5:
>
>  http://yum.trixbox.org/centos/5/SRPMS/
>  http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/A.group.html
>  
> http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/asterisk-0-1.4.21.2-2.html
>
>  http://repo.elastix.org/centos/5/updates/SRPMS/repodata/
>  http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/A.group.html
>  
> http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/asterisk-1-1.4.21.2-3.html
>
> (Elastix's developers have this funny habbit of making the path leading
> to that directory non-indexed)
>
> The lesser quality shows e.g. in the fact that the changelog is not
> always updated.
>
> --
>   Tzafrir Cohen
> icq#16849755  jabber:[EMAIL PROTECTED]
> +972-50-7952406   mailto:[EMAIL PROTECTED]
> http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Tzafrir Cohen
On Mon, Sep 29, 2008 at 03:51:35PM +0530, Jim Boykin wrote:
> We use RHEL5, FC6, & CentOS5. I will be happy to hear your inputs for
> any distribution you know.

Fedora 9 has a package, but I think it is asterisk 1.6.0-rc9.

Some SRPMs of lesser quality for Centos 5:

  http://yum.trixbox.org/centos/5/SRPMS/
  http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/A.group.html
  
http://yum.trixbox.org/centos/5/SRPMS/repodata/repoview/asterisk-0-1.4.21.2-2.html

  http://repo.elastix.org/centos/5/updates/SRPMS/repodata/
  http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/A.group.html
  
http://repo.elastix.org/centos/5/updates/SRPMS/repodata/repoview/asterisk-1-1.4.21.2-3.html

(Elastix's developers have this funny habbit of making the path leading
to that directory non-indexed)

The lesser quality shows e.g. in the fact that the changelog is not
always updated.

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Jim Boykin
We use RHEL5, FC6, & CentOS5. I will be happy to hear your inputs for
any distribution you know.


On Mon, Sep 29, 2008 at 3:41 PM, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 03:34:45PM +0530, Jim Boykin wrote:
>> Thanks Alan, I will try it out. Seems like a solution. Your assumption
>> is right, all system are same (ghosted).
>>
>> I am also looking at pre-build RPM and reusing their specs file.
>> Anyone have input for building asterisk RPM.
>
> Again, what distribution is it?

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Tzafrir Cohen
On Mon, Sep 29, 2008 at 03:34:45PM +0530, Jim Boykin wrote:
> Thanks Alan, I will try it out. Seems like a solution. Your assumption
> is right, all system are same (ghosted).
> 
> I am also looking at pre-build RPM and reusing their specs file.
> Anyone have input for building asterisk RPM.

Again, what distribution is it?

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Jim Boykin
Thanks Alan, I will try it out. Seems like a solution. Your assumption
is right, all system are same (ghosted).

I am also looking at pre-build RPM and reusing their specs file.
Anyone have input for building asterisk RPM.

Thanks
Jim




On Mon, Sep 29, 2008 at 3:07 PM, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 08:56:29AM +0100, Steven Howes wrote:
>> Just copy the src folder and do `make install` on each machine?
>> Then tar and copy the /etc/asterisk folder if config is important too.
>
> 
> If you want a self contained Asterisk environment, complete with logging
> directory, modules directory, configuration directory and whatever, and
> even with a wrapper script called asterisk, look at
> http://bugs.digium.com/11680 for live_ast
> 
>
> But all of this does not but you independence from library dependencies.
> Do you have h323 installed? snmp? Zaptel?
>
> Binary packagees are a well-known problem, and one that has pretty good
> solutions. It's sad that the Asterisk hard-cores like re-inventing the
> wheel here.
>
> --
>   Tzafrir Cohen
> icq#16849755  jabber:[EMAIL PROTECTED]
> +972-50-7952406   mailto:[EMAIL PROTECTED]
> http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Tzafrir Cohen
On Mon, Sep 29, 2008 at 08:56:29AM +0100, Steven Howes wrote:
> Just copy the src folder and do `make install` on each machine?
> Then tar and copy the /etc/asterisk folder if config is important too.


If you want a self contained Asterisk environment, complete with logging
directory, modules directory, configuration directory and whatever, and
even with a wrapper script called asterisk, look at
http://bugs.digium.com/11680 for live_ast


But all of this does not but you independence from library dependencies.
Do you have h323 installed? snmp? Zaptel?

Binary packagees are a well-known problem, and one that has pretty good
solutions. It's sad that the Asterisk hard-cores like re-inventing the
wheel here.

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Alan Lord
Steven Howes wrote:
> Just copy the src folder and do `make install` on each machine?
> Then tar and copy the /etc/asterisk folder if config is important too.
> 
> On 29 Sep 2008, at 08:41, Jim Boykin wrote:
> 
>> Is there a script to create an Asterisk binary package after it is
>> compiled on one system.
>>
>> We do not want to compile Asterisk of each system where we want to
>> run. I am sure there is a way but I could find it.
>>

Another way is after running "./configure 
--prefix=/your_prefered_layout" and make, when running the "make 
install" command set the DESTDIR prefix to something like ~/asterisk and 
it will install everything under that prefix.

e.g $ make DESTDIR=$HOME/asterisk install
You can then make a tarball of the hierarchy from within the DESTDIR 
root and extract it into the right place (i.e. "/") of any other host.

Of course all this assumes:

1. you know what you are doing ;-)
2. your hosts are all using the same versions of kernels/libraries etc...

HTH

Alan





>> Thanks
>> Jim
>>
>> ___
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> 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 --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Steven Howes
Just copy the src folder and do `make install` on each machine?
Then tar and copy the /etc/asterisk folder if config is important too.

On 29 Sep 2008, at 08:41, Jim Boykin wrote:

> Is there a script to create an Asterisk binary package after it is
> compiled on one system.
>
> We do not want to compile Asterisk of each system where we want to
> run. I am sure there is a way but I could find it.
>
> Thanks
> Jim
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Tzafrir Cohen
On Mon, Sep 29, 2008 at 03:41:26AM -0400, Jim Boykin wrote:
> Is there a script to create an Asterisk binary package after it is
> compiled on one system.
> 
> We do not want to compile Asterisk of each system where we want to
> run. I am sure there is a way but I could find it.

What system, specifically?

With what libraries installed? Which of them are installed on the target
system?

rpm, deb and such automate much of the process. Chances are that there
is already an existing such binary package for your distribution. Just
grab it, fix it, and rebuild (and fix, and rebuild, and deploy, and fix
and rebuild, etc.)

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


[asterisk-users] Creating Asterisk Binary Package

2008-09-29 Thread Jim Boykin
Is there a script to create an Asterisk binary package after it is
compiled on one system.

We do not want to compile Asterisk of each system where we want to
run. I am sure there is a way but I could find it.

Thanks
Jim

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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