ports/79253: Asterisk port has errors in some config files

Ari Maniatis ari at ish.com.au
Sat Mar 26 14:10:03 UTC 2005


>Number:         79253
>Category:       ports
>Synopsis:       Asterisk port has errors in some config files
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 26 14:10:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Ari Maniatis
>Release:        4.10 release
>Organization:
ish group
>Environment:
FreeBSD delish.ish.com.au 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0: Mon Sep  6 16:14:35 EST 2004     ish at delish.ish.com.au:/usr/obj/usr/src/sys/DELISHKERN  i386
>Description:
* musiconhold.conf.sample has incorrect Linux paths, not FreeBSD paths
* mysql is not actually required and so should be an option
>How-To-Repeat:
Install /net/asterisk port.
>Fix:
--- Makefile.old        Sat Mar 12 04:20:41 2005
+++ Makefile    Sun Mar 27 01:06:27 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=      asterisk
 PORTVERSION=   1.0.6
+PORTREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
                ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
@@ -19,10 +20,10 @@
 MAINTAINER=    sobomax at FreeBSD.org
 COMMENT=       An Open Source PBX and telephony toolkit
 
-BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
 LIB_DEPENDS=   speex.3:${PORTSDIR}/audio/speex \
                newt.51:${PORTSDIR}/devel/newt
-RUN_DEPENDS=   ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
+
+OPTIONS=        MYSQL "MySQL support" off
 
 ONLY_FOR_ARCHS=        i386 sparc64
 
@@ -41,6 +42,11 @@
                CXX="${CXX}"
 
 MAN8=          asterisk.8
+MUSICCONF=     ${WRKSRC}/configs/musiconhold.conf.sample
+
+.if defined(WITH_MYSQL)
+USE_MYSQL=      YES
+.endif
 
 .include <bsd.port.pre.mk>
 
@@ -67,6 +73,10 @@
 RUN_DEPENDS+=  ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
 PLIST_SUB+=    WITH_ZAPTEL=""
 .endif
+
+post-extract:
+       @${MV} ${MUSICCONF} ${MUSICCONF}.old
+       @${SED} 's,/var/lib/asterisk/,/usr/local/share/asterisk/,g' ${MUSICCONF}.old > ${MUSICCONF}
 
 post-install:
        @${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list