Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-20 Thread Marcus Franke
On Thu, Sep 20, 2007 at 12:22:43AM +0200, Tzafrir Cohen wrote:
 
  Why is it looking for files that obviously
  don't exist?
 
 That spec uses quite a few discourged methods for rpm packages. There
 are a number of well-maintained RPM packages of Asterisk. Use one of
 them or modify one of them.
 

Do you have any examples for these spec files? 

I found a repository for installing Asterisk on Centos, but it
took a while before I discovered it. Ok, just checked the link
its for RHEL, but as Centos is just recompiled this won't matter.

Same situation for Ubuntu using the debian package format, but
I have not found a repository so far and Ubuntu delivers just 
the old 1.2 release. :)



Marcus

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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


Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-20 Thread Tzafrir Cohen
On Thu, Sep 20, 2007 at 02:25:19PM +0200, Marcus Franke wrote:

 Same situation for Ubuntu using the debian package format, but
 I have not found a repository so far and Ubuntu delivers just 
 the old 1.2 release. :)

Ubuntu packages of Asterisk are slightly modified Debian ones.
As for the Debian ones:
http://packages.debian.org/asterisk

As you can see there, the Unstable packages are currently at 1.4.11 .
Not that bad. There are certain petty things that delay that package 
from getting into Testing right now.

Also in that page you an find the sources of the package (tarball, dif
and a small .dsc file).

http://packages.debian.org/source/sid/asterisk will also give you link
to the subversion where the sources (or rather: the diff) are
maintained.

And then there's a build server where new and untested packages are
built. Including backports for various Debian and Ubuntu distributions.
http://buildserver.net/

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

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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


Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-20 Thread James FitzGibbon
On 9/20/07, Marcus Franke [EMAIL PROTECTED] wrote:

 Do you have any examples for these spec files?

 I found a repository for installing Asterisk on Centos, but it
 took a while before I discovered it. Ok, just checked the link
 its for RHEL, but as Centos is just recompiled this won't matter.

 Same situation for Ubuntu using the debian package format, but
 I have not found a repository so far and Ubuntu delivers just
 the old 1.2 release. :)


www.atrpms.net has pretty solid RPMs, and you can grab the SRPMS in order to
get the spec file (either install the SRPM or use rpm2cpio to convert the
package and extract the specfile manually).  This is where I get my libpri
and zaptel RPMs from (though I still build * from source, as the RPM
compilation options they use are not to my liking).

There is a book called Maximum RPM.  The dead tree version is now pretty
out of date with respect to the latest version of RPM (though still a good
introduction if you've never built a package).  I believe there was a
slightly more up-to-date online version, but it still had some gaps the last
time I looked.

The best way to learn seems to be to examine good examples and then build
your own package using their techniques.




-- 
j.
___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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

Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-20 Thread Jared Smith
On Thu, 2007-09-20 at 09:01 -0400, James FitzGibbon wrote:
 www.atrpms.net has pretty solid RPMs, and you can grab the SRPMS in
 order to get the spec file (either install the SRPM or use rpm2cpio to
 convert the package and extract the specfile manually). 

I've looked at a lot of Asterisk spec files (including the ones at
atrpms.net, and the ones at http://www.laimbock.com/asterisk/), but so
far my favorites are the ones done by Jeff C. Ollie at
http://repo.ocjtech.us/misc/fedora/7/SRPMS/.  They're about the most
thorough I've seen.

 There is a book called Maximum RPM.  The dead tree version is now
 pretty out of date with respect to the latest version of RPM (though
 still a good introduction if you've never built a package).

The Red Hat RPM Guide is online at
http://docs.fedoraproject.org/drafts/rpm-guide-en/, and it's fairly
good.  I also highly recommend the guide from Guru Labs, available at
http://www.gurulabs.com/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF


Personally, I agree with the original poster... the spec file that's
currently in the Asterisk source is less than useful, and should
probably be replaced.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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


[asterisk-users] Building an RPM from Asterisk 1.4

2007-09-19 Thread Douglas Garstang
Ok, so I'm no rpm expert, but Asterisk 1.4.11 comes with an asterisk.spec
file. Running rpmbuild against it yields errors, the first one being that
the 'Copyright' tag is unknown, and that I need a License tag instead.

Fixed that, and...

Processing files: asterisk-CVS-1
error: File not found: /tmp/asterisk/etc/asterisk
error: File not found by glob: /tmp/asterisk/etc/asterisk/*.conf
error: File not found by glob: /tmp/asterisk/etc/asterisk/*.adsi
error: File not found: /tmp/asterisk/etc/asterisk/extensions.ael
error: File not found: /tmp/asterisk/etc/rc.d/init.d/asterisk

 And so on. What am I missing here? Why doesn't rpm build the
/tmp/asterisk directory itself? Why is it looking for files that obviously
don't exist?

Doug.


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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


Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-19 Thread Tzafrir Cohen
On Wed, Sep 19, 2007 at 02:54:17PM -0700, Douglas Garstang wrote:
 Ok, so I'm no rpm expert, but Asterisk 1.4.11 comes with an asterisk.spec
 file. Running rpmbuild against it yields errors, the first one being that
 the 'Copyright' tag is unknown, and that I need a License tag instead.
 
 Fixed that, and...
 
 Processing files: asterisk-CVS-1
 error: File not found: /tmp/asterisk/etc/asterisk
 error: File not found by glob: /tmp/asterisk/etc/asterisk/*.conf
 error: File not found by glob: /tmp/asterisk/etc/asterisk/*.adsi
 error: File not found: /tmp/asterisk/etc/asterisk/extensions.ael
 error: File not found: /tmp/asterisk/etc/rc.d/init.d/asterisk
 
  And so on. What am I missing here? Why doesn't rpm build the
 /tmp/asterisk directory itself? 

So you'll catch those errors.

 Why is it looking for files that obviously
 don't exist?

That spec uses quite a few discourged methods for rpm packages. There
are a number of well-maintained RPM packages of Asterisk. Use one of
them or modify one of them.

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

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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


Re: [asterisk-users] Building an RPM from Asterisk 1.4

2007-09-19 Thread Douglas Garstang
I'd like to know why the spec file is even included at all then?
I think we'd prefer to build our own, rather than trust someone elses build.


On 9/19/07 3:22 PM, Tzafrir Cohen [EMAIL PROTECTED] wrote:

On Wed, Sep 19, 2007 at 02:54:17PM -0700, Douglas Garstang wrote:
 Ok, so I'm no rpm expert, but Asterisk 1.4.11 comes with an asterisk.spec
 file. Running rpmbuild against it yields errors, the first one being that
 the 'Copyright' tag is unknown, and that I need a License tag instead.

 Fixed that, and...

 Processing files: asterisk-CVS-1
 error: File not found: /tmp/asterisk/etc/asterisk
 error: File not found by glob: /tmp/asterisk/etc/asterisk/*.conf
 error: File not found by glob: /tmp/asterisk/etc/asterisk/*.adsi
 error: File not found: /tmp/asterisk/etc/asterisk/extensions.ael
 error: File not found: /tmp/asterisk/etc/rc.d/init.d/asterisk

  And so on. What am I missing here? Why doesn't rpm build the
 /tmp/asterisk directory itself?

So you'll catch those errors.

 Why is it looking for files that obviously
 don't exist?

That spec uses quite a few discourged methods for rpm packages. There
are a number of well-maintained RPM packages of Asterisk. Use one of
them or modify one of them.

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

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/

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

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


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

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

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