View | Details | Raw Unified | Return to bug 79253
Collapse All | Expand All

(-)Makefile Sun Mar 27 01:06:27 2005 (-2 / +12 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=      asterisk
8
PORTNAME=      asterisk
9
PORTVERSION=   1.0.6
9
PORTVERSION=   1.0.6
10
PORTREVISION=   1
10
CATEGORIES=    net
11
CATEGORIES=    net
11
MASTER_SITES=  ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
12
MASTER_SITES=  ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
12
               ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
13
               ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
Lines 19-28 Link Here
19
MAINTAINER=    sobomax@FreeBSD.org
20
MAINTAINER=    sobomax@FreeBSD.org
20
COMMENT=       An Open Source PBX and telephony toolkit
21
COMMENT=       An Open Source PBX and telephony toolkit
21
22
22
BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
23
LIB_DEPENDS=   speex.3:${PORTSDIR}/audio/speex \
23
LIB_DEPENDS=   speex.3:${PORTSDIR}/audio/speex \
24
               newt.51:${PORTSDIR}/devel/newt
24
               newt.51:${PORTSDIR}/devel/newt
25
RUN_DEPENDS=   ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
25
26
OPTIONS=        MYSQL "MySQL support" off
26
27
27
ONLY_FOR_ARCHS=        i386 sparc64
28
ONLY_FOR_ARCHS=        i386 sparc64
28
29
Lines 41-46 Link Here
41
               CXX="${CXX}"
42
               CXX="${CXX}"
42
43
43
MAN8=          asterisk.8
44
MAN8=          asterisk.8
45
MUSICCONF=     ${WRKSRC}/configs/musiconhold.conf.sample
46
47
.if defined(WITH_MYSQL)
48
USE_MYSQL=      YES
49
.endif
44
50
45
.include <bsd.port.pre.mk>
51
.include <bsd.port.pre.mk>
46
52
Lines 67-72 Link Here
67
RUN_DEPENDS+=  ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
73
RUN_DEPENDS+=  ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
68
PLIST_SUB+=    WITH_ZAPTEL=""
74
PLIST_SUB+=    WITH_ZAPTEL=""
69
.endif
75
.endif
76
77
post-extract:
78
       @${MV} ${MUSICCONF} ${MUSICCONF}.old
79
       @${SED} 's,/var/lib/asterisk/,/usr/local/share/asterisk/,g' ${MUSICCONF}.old > ${MUSICCONF}
70
80
71
post-install:
81
post-install:
72
       @${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
82
       @${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d

Return to bug 79253