Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26947 - updated asterisk PBX available (v0.4)
Summary: updated asterisk PBX available (v0.4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Matt Keadle
URL: ftp://ftp.asterisk.org/pub/telephony/...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-08-19 14:20 UTC by Costa Tsaousis
Modified: 2004-03-09 06:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Asterisk 0.4.0 ebuild (asterisk-0.4.0.ebuild,953 bytes, text/plain)
2003-08-20 18:42 UTC, Francois Deppierraz
Details
Asterisk 0.4.0 ebuild (asterisk-0.4.0.ebuild,953 bytes, application/octet-stream)
2003-08-20 18:42 UTC, Francois Deppierraz
Details
asterisk-0.5.0.ebuild (asterisk-0.5.0.ebuild,907 bytes, text/plain)
2003-11-29 16:54 UTC, Rigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Costa Tsaousis 2003-08-19 14:20:21 UTC
The current asterisk ebuild is for version 0.2.
Since Apr 11, 2003 there is v0.4 available (see
ftp://ftp.asterisk.org/pub/telephony/asterisk).

Please note that asterisk.org suggests to download a cvs version (see
http://www.asterisk.org/index.php?menu=download)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Francois Deppierraz 2003-08-20 18:42:02 UTC
Created attachment 16401 [details]
Asterisk 0.4.0 ebuild
Comment 2 Francois Deppierraz 2003-08-20 18:42:24 UTC
Created attachment 16402 [details]
Asterisk 0.4.0 ebuild
Comment 3 Costa Tsaousis 2003-09-08 16:14:45 UTC
--- snip ---

nefeli tmp # emerge /tmp/asterisk-0.4.0.ebuild
Calculating dependencies \!!! aux_get(): ebuild for '/asterisk-0.4.0' does not exist at:
!!!            /usr/portage//asterisk/asterisk-0.4.0.ebuild
emerge: create(): aux_get() error on /asterisk-0.4.0; aborting...
nefeli tmp #

--- snip ---

Am I doing something wrong?
Comment 4 Salim Fadhley 2003-10-17 07:57:12 UTC
Any chance you could post an ebuild for Astersk 0.5.0?

Thanks.
Comment 5 Salim Fadhley 2003-10-17 09:24:10 UTC
Using your 0.4.0 ebuild, the system compiled up okay but I get this error
when rebooting asterisk:

WARNING[16384]: File asterisk.c, Line 1334 (main): Unable to open pid file
'/var/tmp/portage/asterisk-0.5.0/image//var/run/asterisk.pid': No such file
or directory
WARNING[16384]: File asterisk.c, Line 285 (ast_makesocket): Unable to bind
socket to /var/tmp/portage/asterisk-0.5.0/image//var/run/asterisk.ctl: No
such file or directory
  == Parsing '/etc/asterisk/asterisk.conf': Found
Asterisk 0.5.0, Copyright (C) 1999-2001 Linux Support Services, Inc.
Written by Mark Spencer <markster@linux-support.net>
=========================================================================
ERROR[16384]: File logger.c, Line 194 (init_logger): Unable to create event
log: No such file or directory
  == Parsing '/var/tmp/portage/asterisk-0.5.0/image//etc/asterisk/logger.conf':
Not found (No such file or directory)
bash-2.05b$

There seems to be some kind of comfusion here.

BTW, I just renamed your 0.4.0 ebuild to see if it works with 0.5. Any help
you can offer getting this ebuild to work would be much appreciated.

Sal
Comment 6 Rigo 2003-11-29 16:54:12 UTC
Hi, could you try this diff ? 

<DIFF>
diff -ur asterisk-0.2.0.ebuild asterisk-0.5.0.ebuild
--- asterisk-0.2.0.ebuild       2003-11-30 01:35:27.000000000 +0100
+++ asterisk-0.5.0.ebuild       2003-11-30 02:51:43.307244888 +0100
@@ -1,4 +1,4 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+#Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /home/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-0.2.0.ebuild,v 1.6 2003/10/03 07:17:55 seemant Exp $
  
@@ -18,17 +18,17 @@
                doc? ( app-doc/doxygen )"
  
 src_compile() {
-
-       emake || die
-
-       # One small error in Makefile
-       sed -i 's:mkdir -p /etc/asterisk:mkdir -p $(INSTALL_PREFIX)/etc/asterisk:' \
-               ${S}/Makefile
+       #For some reason emake dies for me, because it cannot find ringtone.h
+       make || die "emake failed."
 }
  
 src_install () {
-
        make INSTALL_PREFIX=${D} install || die
        make INSTALL_PREFIX=${D} samples || die
        use doc && make INSTALL_PREFIX=${D} progdocs
 }
+
+pkg_preinst() {
+        sed -i 's:\/var\/tmp\/portage\/asterisk-0.5.0\/image\/::' \
+                       ${D}etc/${PN}/asterisk.conf
+}

</DIFF>

Good luck, Rigo
Comment 7 Rigo 2003-11-29 16:54:58 UTC
Created attachment 21487 [details]
asterisk-0.5.0.ebuild
Comment 8 Brandon Hale (RETIRED) gentoo-dev 2004-03-09 06:26:14 UTC
Asterisk has a new maintainer, this is fixed for awhile.. closing.