2007-08-04 00:40:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.43 2007/08/03 22:40:00 mjl Exp $
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
2007-08-04 00:40:00 +02:00
|
|
|
DISTNAME= asterisk-1.2.23
|
2005-09-02 14:58:34 +02:00
|
|
|
CATEGORIES= comms net audio
|
2005-09-02 19:23:06 +02:00
|
|
|
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
|
2006-06-11 01:56:18 +02:00
|
|
|
http://ftp.digium.com/pub/asterisk/old-releases/
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
2005-09-02 14:58:34 +02:00
|
|
|
MAINTAINER= riz@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.asterisk.org/
|
|
|
|
COMMENT= The Asterisk Software PBX
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
2006-01-29 02:30:20 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
USE_TOOLS+= bison gmake perl:run
|
2006-01-29 02:21:45 +01:00
|
|
|
REPLACE_PERL+= agi/agi-test.agi
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
2006-01-29 02:30:20 +01:00
|
|
|
INSTALL_TARGET= install samples
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
|
|
|
# Running as non-root will come later
|
|
|
|
#ASTERISK_USER?= asterisk
|
|
|
|
#ASTERISK_GROUP?= asterisk
|
|
|
|
#PKG_GROUPS= ${ASTERISK_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
#PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP}
|
2007-07-04 22:54:31 +02:00
|
|
|
#PKG_GROUPS_VARS+= ASTERISK_GROUP
|
|
|
|
#PKG_USERS_VARS+= ASTERISK_USER
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
|
|
|
# Various path settings for Asterisk
|
2006-05-31 20:43:15 +02:00
|
|
|
PKG_SYSCONFSUBDIR= asterisk
|
2006-01-29 02:21:45 +01:00
|
|
|
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
|
|
|
|
ASTMANDIR?= ${PREFIX}/man
|
|
|
|
ASTEXAMPLEDIR?= ${PREFIX}/share/examples/asterisk
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
|
|
|
# Override default paths in Makefile
|
2006-01-29 02:30:20 +01:00
|
|
|
SUBST_CLASSES+= asterisk
|
|
|
|
SUBST_STAGE.asterisk= pre-configure
|
2006-01-24 03:09:38 +01:00
|
|
|
SUBST_FILES.asterisk= Makefile configs/musiconhold.conf.sample
|
2006-04-13 10:47:06 +02:00
|
|
|
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}|'
|
|
|
|
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}|'
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2006-01-29 02:30:20 +01:00
|
|
|
RCD_SCRIPTS= asterisk
|
|
|
|
OWN_DIRS+= ${ASTSPOOLDIR} ${ASTLOGDIR} ${ASTVARRUNDIR}
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
OWN_DIRS+= ${ASTLOGDIR}/cdr-csv
|
|
|
|
|
|
|
|
CONF_FILES= # empty
|
2006-01-29 02:21:45 +01:00
|
|
|
.for f in asterisk.conf extensions.conf
|
|
|
|
CONF_FILES+= ${ASTEXAMPLEDIR:Q}/${f:Q} ${ASTETCDIR:Q}/${f:Q}
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
.endfor
|
|
|
|
|
2006-01-29 02:21:45 +01:00
|
|
|
MAKE_ENV+= VARBASE=${VARBASE:Q}
|
|
|
|
MAKE_FLAGS+= INSTALL_PREFIX=${PREFIX:Q}
|
|
|
|
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
# if we put all the files in $CONF_FILES, the message is _way_ too long.
|
2006-01-29 02:21:45 +01:00
|
|
|
.for f in adsi.conf adtranvofr.conf agents.conf alarmreceiver.conf \
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
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 \
|
2006-01-25 18:48:43 +01:00
|
|
|
res_odbc.conf rpt.conf rtp.conf sip.conf \
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
skinny.conf voicemail.conf vpb.conf zapata.conf asterisk.adsi \
|
|
|
|
telcordia-1.adsi
|
2006-01-29 02:30:20 +01:00
|
|
|
CONF_FILES+= ${ASTEXAMPLEDIR:Q}/${f:Q} ${ASTETCDIR:Q}/${f:Q}
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
.endfor
|
|
|
|
|
2005-04-13 21:22:17 +02:00
|
|
|
PTHREAD_OPTS+= require native
|
|
|
|
|
2005-10-10 23:45:08 +02:00
|
|
|
.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
|
|
|
|
post-patch:
|
2006-01-29 02:30:20 +01:00
|
|
|
${ECHO} "#include <sys/poll.h>" > ${WRKSRC:Q}/include/asterisk/poll-compat.h
|
2005-10-10 23:45:08 +02:00
|
|
|
.endif
|
|
|
|
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
2006-06-21 01:32:36 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2005-04-17 05:48:59 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
Initial import of asterisk-1.0.7, from pkgsrc-wip. Approved by jmcneill.
There are still some features not enabled by default, but this is a
solid foundation upon which to build - a fully-functional PBX can be
built, including PSTN gatewaying using the comms/zaptel-netbsd package.
From the DESCR:
Asterisk is a complete PBX in software. It provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).
2005-04-08 05:10:52 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|