pkgsrc/comms/asterisk/Makefile

111 lines
3.9 KiB
Makefile
Raw Normal View History

2011-08-07 04:40:32 +02:00
# $NetBSD: Makefile,v 1.72 2011/08/07 02:40:32 jnemeth Exp $
DISTNAME= asterisk-1.2.37
2011-08-07 04:40:32 +02:00
PKGREVISION= 3
Changes 1.0.9: -- fix bug in callerid matching in the dialplan that was introduced in 1.0.8 Changes 1.0.8: -- chan_zap -- Asterisk will now also look in the regular context for the fax extension while executing a macro. Previously, for this to work, the fax extension would have to be included in the macro definition. -- On some systems, ALERTING will be sent after PROCEEDING, so code has been added to account for this case. -- If no extension is specified on an overlap call, the 's' extension will be used. -- chan_sip -- We no longer send a "to" tag on "100 Trying" messages, as it is inappropriate to do so. -- We now respond correctly to an invite for T.38 with a "488 Not acceptable here" -- We now discard saved tags on 401/407 responses in case the provider we're talking to tries to pull a dirty trick on us and change it. -- rtptimeout options will now be correctly set on a peer basis rather than only global -- chan_mgcp -- Fixed setting of accountcode -- Fixed where *67 to block callerid only worked for first call -- chan_agent -- We now will not pass audio until the agent has acked the call if the configuration is set up for the agent to do so. -- chan_alsa -- Fixed problems with the unloading of this module -- res_agi -- A fix has been added to prevent calls from being hung up when more than one call is executing an AGI script calling the GET DATA command. -- AGI scripts will now continue to run even if a file was not found with the GET DATA command. -- When calling SAY NUMBER with a number like 09, we will now say "nine" instead of "zero" -- app_dial -- There was a problem where text frames would not be forwarded before the channel has been answered. -- app_disa -- Fixed the timeout used when no password is set -- app_queue -- Distinctive ring has been fixed to work for queue members -- rtp -- Fixed a logic error when setting the "rtpchecksums" option -- say.c -- A problem has been fixed with saying the date in Spanish. -- Makefile -- A line was missing for the autosupport script that caused "make rpm" to fail -- format_wav_gsm -- Fixed a problem with wav formatting that prevented files from being played in some media players -- pbx_spool -- Fixed if the last line of text in a file for the call spool did not contain a new line, it would not be processed -- logger -- Fixed the logger so that color escape sequences wouldn't be sent to the logs -- format_sln -- A lot of changes were made to correctly handle signed linear format on big endian machines
2005-09-02 14:58:34 +02:00
CATEGORIES= comms net audio
2009-05-15 20:24:29 +02:00
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/releases/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
2008-06-18 13:12:53 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
Changes 1.0.9: -- fix bug in callerid matching in the dialplan that was introduced in 1.0.8 Changes 1.0.8: -- chan_zap -- Asterisk will now also look in the regular context for the fax extension while executing a macro. Previously, for this to work, the fax extension would have to be included in the macro definition. -- On some systems, ALERTING will be sent after PROCEEDING, so code has been added to account for this case. -- If no extension is specified on an overlap call, the 's' extension will be used. -- chan_sip -- We no longer send a "to" tag on "100 Trying" messages, as it is inappropriate to do so. -- We now respond correctly to an invite for T.38 with a "488 Not acceptable here" -- We now discard saved tags on 401/407 responses in case the provider we're talking to tries to pull a dirty trick on us and change it. -- rtptimeout options will now be correctly set on a peer basis rather than only global -- chan_mgcp -- Fixed setting of accountcode -- Fixed where *67 to block callerid only worked for first call -- chan_agent -- We now will not pass audio until the agent has acked the call if the configuration is set up for the agent to do so. -- chan_alsa -- Fixed problems with the unloading of this module -- res_agi -- A fix has been added to prevent calls from being hung up when more than one call is executing an AGI script calling the GET DATA command. -- AGI scripts will now continue to run even if a file was not found with the GET DATA command. -- When calling SAY NUMBER with a number like 09, we will now say "nine" instead of "zero" -- app_dial -- There was a problem where text frames would not be forwarded before the channel has been answered. -- app_disa -- Fixed the timeout used when no password is set -- app_queue -- Distinctive ring has been fixed to work for queue members -- rtp -- Fixed a logic error when setting the "rtpchecksums" option -- say.c -- A problem has been fixed with saying the date in Spanish. -- Makefile -- A line was missing for the autosupport script that caused "make rpm" to fail -- format_wav_gsm -- Fixed a problem with wav formatting that prevented files from being played in some media players -- pbx_spool -- Fixed if the last line of text in a file for the call spool did not contain a new line, it would not be processed -- logger -- Fixed the logger so that color escape sequences wouldn't be sent to the logs -- format_sln -- A lot of changes were made to correctly handle signed linear format on big endian machines
2005-09-02 14:58:34 +02:00
HOMEPAGE= http://www.asterisk.org/
COMMENT= The Asterisk Software PBX
LICENSE= gnu-gpl-v2
2008-06-12 04:14:13 +02:00
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
2008-02-27 13:31:12 +01:00
USE_TOOLS+= bash bison gmake perl:run
REPLACE_BASH= mkpkgconfig
REPLACE_PERL+= agi/agi-test.agi
INSTALL_TARGET= install samples
INSTALLATION_DIRS= lib/pkgconfig
BUILD_DEFS+= VARBASE
# Running as non-root will come later
#ASTERISK_USER?= asterisk
#ASTERISK_GROUP?= asterisk
#PKG_GROUPS= ${ASTERISK_GROUP}
#PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP}
#PKG_GROUPS_VARS+= ASTERISK_GROUP
#PKG_USERS_VARS+= ASTERISK_USER
# Various path settings for Asterisk
PKG_SYSCONFSUBDIR= asterisk
ASTLIBDIR?= ${PREFIX}/lib/asterisk
ASTVARLIBDIR?= ${PREFIX}/libdata/asterisk
ASTETCDIR?= ${PKG_SYSCONFDIR}
ASTSPOOLDIR?= ${VARBASE}/spool/asterisk
ASTLOGDIR?= ${VARBASE}/log/asterisk
ASTHEADERDIR?= ${PREFIX}/include/asterisk
ASTCONFPATH?= ${ASTETCDIR}/asterisk.conf
ASTBINDIR?= ${PREFIX}/bin
ASTSBINDIR?= ${PREFIX}/sbin
ASTVARRUNDIR?= ${VARBASE}/run
Update asterisk to 1.2.31. While here, update MASTER_SITES and honor PKGMANDIR. ChangeLog-1.2.31: 2009-01-06 Leif Madsen <lmadsen@digium.com> * Asterisk 1.2.31 released 2009-01-06 20:44 +0000 [r167259] Tilghman Lesher <tlesher@digium.com> * channels/chan_iax2.c: Security fix AST-2009-001. 2008-12-10 Tilghman Lesher <tlesher@digium.com> * Asterisk 1.2.30.4 released 2008-12-10 21:06 +0000 [r162868] Tilghman Lesher <tlesher@digium.com> * channels/chan_iax2.c: Fix for AST-2008-012 2008-12-05 20:50 +0000 [r161421] Sean Bright <sean.bright@gmail.com> * include/asterisk/astobj2.h, astobj2.c: Fix build errors on FreeBSD (uint -> unsigned int). (closes issue #14006) Reported by: alphaque Patches: astobj2.h-patch uploaded by alphaque (license 259) (Slightly modified by seanbright) 2008-12-01 Tilghman Lesher <tlesher@digium.com> * Asterisk 1.2.30.3 released 2008-11-25 21:37 +0000 [r159245] Tilghman Lesher <tlesher@digium.com> * channels/chan_iax2.c: Regression fix for last security fix. Set the iseqno correctly. (closes issue #13918) Reported by: ffloimair Patches: 20081119__bug13918.diff.txt uploaded by Corydon76 (license 14) Tested by: ffloimair 2008-08-09 Tilghman Lesher <tlesher@digium.com> * Asterisk 1.2.30.2 released 2008-08-09 15:24 +0000 [r136945] Tilghman Lesher <tlesher@digium.com> * include/asterisk/compat.h, include/asterisk/astobj2.h: Regression fixes for Solaris 2008-07-25 15:00 +0000 [r133577] Russell Bryant <russell@digium.com> * LICENSE: Fix the IAX2 URI for calling Digium 2008-07-23 Tilghman Lesher <tlesher@digium.com> * Asterisk 1.2.30.1 released 2008-07-24 03:46 +0000 [r133360] Tilghman Lesher <tlesher@digium.com> * channels/chan_iax2.c: This part was not correctly patched for AST-2008-010.
2009-01-21 06:35:07 +01:00
ASTMANDIR?= ${PREFIX}/${PKGMANDIR}
ASTEXAMPLEDIR?= ${PREFIX}/share/examples/asterisk
# Override default paths in Makefile
SUBST_CLASSES+= asterisk
SUBST_STAGE.asterisk= pre-configure
SUBST_FILES.asterisk= Makefile configs/musiconhold.conf.sample
SUBST_SED.asterisk+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTLIBDIR\)=.*|\1 = ${ASTLIBDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTVARLIBDIR\)=.*|\1 = ${ASTVARLIBDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTETCDIR\)=.*|\1 = ${ASTETCDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTSPOOLDIR\)=.*|\1 = ${ASTSPOOLDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTLOGDIR\)=.*|\1 = ${ASTLOGDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTHEADERDIR\)=.*|\1 = ${ASTHEADERDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTCONFPATH\)=.*|\1 = ${ASTCONFPATH:Q}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTBINDIR\)=.*|\1 = ${ASTBINDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTSBINDIR\)=.*|\1 = ${ASTSBINDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTVARRUNDIR\)=.*|\1 = ${ASTVARRUNDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTMANDIR\)=.*|\1 = ${ASTMANDIR}|'
SUBST_SED.asterisk+= -e 's|^ *\(ASTEXAMPLEDIR\)=.*|\1 = ${ASTEXAMPLEDIR}|'
.include "options.mk"
RCD_SCRIPTS= asterisk
OWN_DIRS+= ${ASTSPOOLDIR} ${ASTLOGDIR} ${ASTVARRUNDIR}
OWN_DIRS+= ${ASTLOGDIR}/cdr-csv
# XXX: should be in ${VARBASE}
OWN_DIRS+= ${ASTVARLIBDIR}/sounds/priv-callerintros
CONF_FILES= # empty
.for f in asterisk.conf extensions.conf
CONF_FILES+= ${ASTEXAMPLEDIR}/${f:Q} ${ASTETCDIR}/${f:Q}
.endfor
MAKE_ENV+= VARBASE=${VARBASE}
MAKE_FLAGS+= INSTALL_PREFIX=${PREFIX}
# if we put all the files in $CONF_FILES, the message is _way_ too long.
.for f in adsi.conf adtranvofr.conf agents.conf alarmreceiver.conf \
alsa.conf cdr_manager.conf cdr_odbc.conf \
cdr_pgsql.conf cdr_tds.conf enum.conf extconfig.conf \
features.conf festival.conf iax.conf \
iaxprov.conf indications.conf logger.conf manager.conf \
meetme.conf mgcp.conf modem.conf modules.conf musiconhold.conf \
osp.conf oss.conf phone.conf privacy.conf queues.conf \
res_odbc.conf rpt.conf rtp.conf sip.conf \
skinny.conf voicemail.conf vpb.conf zapata.conf asterisk.adsi \
telcordia-1.adsi
CONF_FILES+= ${ASTEXAMPLEDIR}/${f:Q} ${ASTETCDIR}/${f:Q}
.endfor
PTHREAD_OPTS+= require native
.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
post-patch:
${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
.endif
.include "../../devel/ncurses/buildlink3.mk"
2006-06-21 01:32:36 +02:00
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"