pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/asterisk16 Add Asterisk 1.6.0.10. At the moment...
details: https://anonhg.NetBSD.org/pkgsrc/rev/86bcd5ae35bb
branches: trunk
changeset: 394551:86bcd5ae35bb
user: jnemeth <jnemeth%pkgsrc.org@localhost>
date: Fri Jun 12 09:04:55 2009 +0000
description:
Add Asterisk 1.6.0.10. At the moment, this version doesn't have any
hardware support, so it can't replace comms/asterisk. However,
apparently there is demand for this version, so wiz@ suggested it
be imported here into comms/asterisk16. The latest version is
1.6.1.1, but I won't have time to update all the patches before the
freeze. I'll update to that version sometime after the freeze when
I get a chance.
diffstat:
comms/asterisk16/DESCR | 14 +
comms/asterisk16/MESSAGE | 12 +
comms/asterisk16/Makefile | 168 +++++
comms/asterisk16/PLIST | 1131 ++++++++++++++++++++++++++++++++++++
comms/asterisk16/distinfo | 27 +
comms/asterisk16/files/asterisk.sh | 43 +
comms/asterisk16/options.mk | 71 ++
comms/asterisk16/patches/patch-aa | 146 ++++
comms/asterisk16/patches/patch-af | 26 +
comms/asterisk16/patches/patch-ag | 34 +
comms/asterisk16/patches/patch-ai | 16 +
comms/asterisk16/patches/patch-ak | 13 +
comms/asterisk16/patches/patch-al | 13 +
comms/asterisk16/patches/patch-am | 13 +
comms/asterisk16/patches/patch-an | 13 +
comms/asterisk16/patches/patch-ao | 22 +
comms/asterisk16/patches/patch-ap | 14 +
comms/asterisk16/patches/patch-aq | 149 ++++
comms/asterisk16/patches/patch-ar | 14 +
comms/asterisk16/patches/patch-as | 41 +
comms/asterisk16/patches/patch-at | 49 +
comms/asterisk16/patches/patch-au | 25 +
comms/asterisk16/patches/patch-av | 19 +
comms/asterisk16/patches/patch-aw | 19 +
comms/asterisk16/patches/patch-ax | 104 +++
comms/asterisk16/patches/patch-ay | 16 +
comms/asterisk16/patches/patch-az | 15 +
comms/asterisk16/patches/patch-ba | 18 +
comms/asterisk16/patches/patch-bb | 22 +
29 files changed, 2267 insertions(+), 0 deletions(-)
diffs (truncated from 2383 to 300 lines):
diff -r 05cbb7caf09e -r 86bcd5ae35bb comms/asterisk16/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk16/DESCR Fri Jun 12 09:04:55 2009 +0000
@@ -0,0 +1,14 @@
+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).
+
+NOTE: This version does not work with the zaptel drivers. It
+requires the newer DAHDI drivers which are still being ported.
+So, there is no hardware support available at this moment.
diff -r 05cbb7caf09e -r 86bcd5ae35bb comms/asterisk16/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk16/MESSAGE Fri Jun 12 09:04:55 2009 +0000
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2009/06/12 09:04:56 jnemeth Exp $
+
+${PKGBASE} now runs as ${ASTERISK_USER}:${ASTERISK_GROUP} instead of ${ROOT_USER}:${ROOT_GROUP} by default.
+
+If you are upgrading from an older version, you should execute the
+following commands to correct permissions on existing files:
+
+chown -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${PKG_SYSCONFDIR} ${ASTDBDIR}
+chown -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${ASTSPOOLDIR} ${ASTLOGDIR}
+
+===========================================================================
diff -r 05cbb7caf09e -r 86bcd5ae35bb comms/asterisk16/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk16/Makefile Fri Jun 12 09:04:55 2009 +0000
@@ -0,0 +1,168 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/06/12 09:04:55 jnemeth Exp $
+#
+
+DISTNAME= asterisk-1.6.0.10
+DIST_SUBDIR= ${PKGNAME_NOREV}
+EXTRACT_ONLY= ${DISTNAME}.tar.gz
+CATEGORIES= comms net audio
+MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
+ http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
+
+OWNER= jnemeth%NetBSD.org@localhost
+HOMEPAGE= http://www.asterisk.org/
+COMMENT= The Asterisk Software PBX
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_TOOLS+= bash bison gmake perl:run pkg-config
+USE_LANGUAGES= c c++
+REPLACE_BASH= build_tools/mkpkgconfig
+REPLACE_PERL+= agi/DialAnMp3.agi agi/agi-test.agi
+REPLACE_PERL+= agi/fastagi-test agi/jukebox.agi agi/numeralize
+
+PKGCONFIG_OVERRIDE+= menuselect/mxml/mxml.pc.in
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --datarootdir=${PREFIX}/libdata
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --without-gtk2
+
+INSTALL_TARGET= install samples
+INSTALLATION_DIRS= lib/pkgconfig
+INSTALLATION_DIRS+= share/examples/asterisk share/examples/rc.d
+
+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_GECOS.${ASTERISK_USER}= Asterisk PBX
+PKG_GROUPS_VARS= ASTERISK_GROUP
+PKG_USERS_VARS= ASTERISK_USER
+FILES_SUBST+= ASTERISK_USER=${ASTERISK_USER}
+FILES_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
+MESSAGE_SUBST+= ASTERISK_USER=${ASTERISK_USER}
+MESSAGE_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
+
+# Various path settings for Asterisk
+PKG_SYSCONFSUBDIR= asterisk
+PKG_SYSCONFDIR_PERMS= ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+ASTETCDIR= ${PKG_SYSCONFDIR}
+ASTEXAMPLEDIR= ${PREFIX}/share/examples/asterisk
+ASTDBDIR= ${VARBASE}/db/asterisk
+ASTSPOOLDIR= ${VARBASE}/spool/asterisk
+ASTLOGDIR= ${VARBASE}/log/asterisk
+MESSAGE_SUBST+= ASTDBDIR=${ASTDBDIR}
+MESSAGE_SUBST+= ASTSPOOLDIR=${ASTSPOOLDIR}
+MESSAGE_SUBST+= ASTLOGDIR=${ASTLOGDIR}
+ASTVARRUNDIR= ${VARBASE}/run/asterisk
+FILES_SUBST+= ASTVARRUNDIR=${ASTVARRUNDIR}
+MAKE_FLAGS+= ASTLIBDIR=${PREFIX}/lib/asterisk
+MAKE_FLAGS+= ASTVARLIBDIR=${PREFIX}/libdata/asterisk
+MAKE_FLAGS+= ASTKEYDIR=${PREFIX}/libdata/asterisk
+MAKE_FLAGS+= ASTDATADIR=${PREFIX}/libdata/asterisk
+MAKE_FLAGS+= ASTSPOOLDIR=${ASTSPOOLDIR}
+MAKE_FLAGS+= ASTLOGDIR=${ASTLOGDIR}
+MAKE_FLAGS+= ASTHEADERDIR=${PREFIX}/include/asterisk
+MAKE_FLAGS+= ASTCONFPATH=${ASTETCDIR}/asterisk.conf
+MAKE_FLAGS+= ASTBINDIR=${PREFIX}/bin
+MAKE_FLAGS+= ASTSBINDIR=${PREFIX}/sbin
+MAKE_FLAGS+= ASTVARRUNDIR=${ASTVARRUNDIR}
+MAKE_FLAGS+= ASTMANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= ASTETCDIR=${ASTETCDIR}
+MAKE_FLAGS+= ASTDBDIR=${ASTDBDIR}
+MAKE_FLAGS+= AGI_DIR=${PREFIX}/libexec/agi-bin
+MAKE_FLAGS+= ASTEXAMPLEDIR=${ASTEXAMPLEDIR}
+MAKE_FLAGS+= WRKSRC=${WRKSRC}
+MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
+MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q}
+
+.include "options.mk"
+
+# Override default paths in config files
+SUBST_CLASSES+= configs
+SUBST_STAGE.configs= pre-configure
+SUBST_FILES.configs= configs/festival.conf.sample
+SUBST_FILES.configs+= configs/http.conf.sample
+SUBST_FILES.configs+= configs/musiconhold.conf.sample
+SUBST_FILES.configs+= configs/osp.conf.sample
+SUBST_FILES.configs+= configs/phoneprov.conf.sample
+SUBST_FILES.configs+= configs/res_config_sqlite.conf
+SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
+SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|"
+SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|"
+SUBST_SED.configs+= -e "s|/var|${VARBASE}|"
+
+# XXX gross hack, remove when atomics properly implemented
+.if (${OPSYS} == "NetBSD")
+SUBST_CLASSES+= atomics
+SUBST_STAGE.atomics= post-configure
+SUBST_FILES.atomics= include/asterisk/autoconfig.h
+SUBST_SED.atomics= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
+.endif
+
+RCD_SCRIPTS= asterisk
+OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+
+CONF_FILES_PERMS= # empty
+.for f in asterisk.conf extensions.conf
+CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.endfor
+
+# 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 amd.conf asterisk.adsi cdr.conf \
+ cdr_adaptive_odbc.conf cdr_custom.conf cdr_manager.conf \
+ cdr_odbc.conf cdr_pgsql.conf cdr_sqlite3_custom.conf \
+ cdr_tds.conf chan_dahdi.conf cli.conf codecs.conf console.conf \
+ dnsmgr.conf dundi.conf enum.conf extensions.ael extconfig.conf \
+ extensions.conf extensions.lua extensions_minivm.conf \
+ features.conf festival.conf followme.conf func_odbc.conf \
+ gtalk.conf h323.conf http.conf iax.conf iaxprov.conf \
+ indications.conf jabber.conf jingle.conf logger.conf \
+ manager.conf meetme.conf mgcp.conf minivm.conf misdn.conf \
+ modules.conf musiconhold.conf muted.conf osp.conf oss.conf \
+ phone.conf phoneprov.conf queuerules.conf queues.conf \
+ res_ldap.conf res_odbc.conf res_pgsql.conf res_snmp.conf \
+ rpt.conf rtp.conf say.conf sip.conf sip_notify.conf skinny.conf \
+ sla.conf smdi.conf telcordia-1.adsi udptl.conf unistim.conf \
+ usbradio.conf users.conf voicemail.conf vpb.conf
+CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.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/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 05cbb7caf09e -r 86bcd5ae35bb comms/asterisk16/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk16/PLIST Fri Jun 12 09:04:55 2009 +0000
@@ -0,0 +1,1131 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/06/12 09:04:56 jnemeth Exp $
+include/asterisk.h
+include/asterisk/_private.h
+include/asterisk/abstract_jb.h
+include/asterisk/acl.h
+include/asterisk/adsi.h
+include/asterisk/ael_structs.h
+include/asterisk/aes.h
+include/asterisk/aes_internal.h
+include/asterisk/agi.h
+include/asterisk/alaw.h
+include/asterisk/app.h
+include/asterisk/ast_expr.h
+include/asterisk/ast_version.h
+include/asterisk/astdb.h
+include/asterisk/astmm.h
+include/asterisk/astobj.h
+include/asterisk/astobj2.h
+include/asterisk/astosp.h
+include/asterisk/audiohook.h
+include/asterisk/autoconfig.h
+include/asterisk/build.h
+include/asterisk/buildopts.h
+include/asterisk/callerid.h
+include/asterisk/causes.h
+include/asterisk/cdr.h
+include/asterisk/channel.h
+include/asterisk/chanvars.h
+include/asterisk/cli.h
+include/asterisk/compat.h
+include/asterisk/compiler.h
+include/asterisk/config.h
+include/asterisk/crypto.h
+include/asterisk/devicestate.h
+include/asterisk/dial.h
+include/asterisk/dns.h
+include/asterisk/dnsmgr.h
+include/asterisk/doxyref.h
+include/asterisk/dsp.h
+include/asterisk/dundi.h
+include/asterisk/endian.h
+include/asterisk/enum.h
+include/asterisk/event.h
+include/asterisk/event_defs.h
+include/asterisk/extconf.h
+include/asterisk/features.h
+include/asterisk/file.h
+include/asterisk/frame.h
+include/asterisk/fskmodem.h
+include/asterisk/fskmodem_float.h
+include/asterisk/fskmodem_int.h
+include/asterisk/global_datastores.h
+include/asterisk/hashtab.h
+include/asterisk/http.h
+include/asterisk/image.h
+include/asterisk/indications.h
+include/asterisk/inline_api.h
+include/asterisk/io.h
+include/asterisk/jabber.h
+include/asterisk/jingle.h
+include/asterisk/linkedlists.h
+include/asterisk/localtime.h
+include/asterisk/lock.h
+include/asterisk/logger.h
+include/asterisk/manager.h
+include/asterisk/md5.h
+include/asterisk/mod_format.h
+include/asterisk/module.h
+include/asterisk/monitor.h
+include/asterisk/musiconhold.h
+include/asterisk/netsock.h
+include/asterisk/network.h
+include/asterisk/options.h
+include/asterisk/paths.h
+include/asterisk/pbx.h
+include/asterisk/plc.h
+include/asterisk/poll-compat.h
+include/asterisk/privacy.h
+include/asterisk/pval.h
+include/asterisk/res_odbc.h
+include/asterisk/rtp.h
+include/asterisk/say.h
+include/asterisk/sched.h
+include/asterisk/sha1.h
+include/asterisk/slinfactory.h
+include/asterisk/smdi.h
+include/asterisk/speech.h
+include/asterisk/srv.h
+include/asterisk/stringfields.h
+include/asterisk/strings.h
Home |
Main Index |
Thread Index |
Old Index