pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/asterisk14 Initial import of Asterisk 14. It ha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/74737221910d
branches:  trunk
changeset: 354252:74737221910d
user:      jnemeth <jnemeth%pkgsrc.org@localhost>
date:      Tue Oct 25 08:16:31 2016 +0000

description:
Initial import of Asterisk 14.  It has been tested to compile
and run, but not a lot of functional testing.  This does not have
the new PJSIP, which will be coming in a followup commit.  This
also does not have the patches for compiling with Clang.  For
upgrading instructions, please see:

https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+14

----- 14.0.0 -----

The Asterisk Development Team is pleased to announce the release of
Asterisk 14.0.0.

Asterisk 14 is the next major release series of Asterisk. It is a
Standard Support release, similar to Asterisk 12. For more information
about support time lines for Asterisk releases, see the Asterisk
versions page:

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

For important information regarding upgrading to Asterisk 14, please
see the Asterisk wiki:
https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+14

A short list of new features includes:

* A complete overhaul of the core DNS support in Asterisk, including
  implementing full NAPTR and SRV support in the PJSIP stack via the
  libunbound library.

* The ability to publish extension state to a SIP Subscription server,
  such as Kamailio. This includes the ability to automatically generate
  a hint in the dialplan based on device state changes using the new
  autohint setting.

* Playback of media from a remote HTTP server via a URI is now supported
  by all dialplan applications and AGI. Media retrieved using a URI is
  cached in a media cache and re-used when possible.

* When using ARI to manipulate media on a resource, a list of media
  resources can now be supplied. The media resources will be played back
  sequentially in the order that they are provided.

* Channels created via ARI can now be created and handed off to Stasis
  for external control prior to performing the outbound dial. This
  enables applications to set additional state on the channel prior to
  dialing, as well as enabling certain early media scenarios.

And much more!


More information about the new features can be found on the Asterisk wiki:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Documentation

A full list of all new features can also be found in the CHANGES file:
https://github.com/asterisk/asterisk/blob/14/CHANGES

For a full list of changes in the current release, please see the ChangeLog:
http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-14.0.0

Thank you for your continued support of Asterisk!

----- 14.0.1 -----

The Asterisk Development Team has announced the release of Asterisk 14.0.1.

The release of Asterisk 14.0.1 resolves an issue reported by the
community and would have not been possible without your participation.
Thank you!

The following is the issue resolved in this release:

Improvements made in this release:
-----------------------------------
 * ASTERISK-26409 - codec_opus: Update Asterisk to support the
      translation codec. (Reported by Kevin Harwell)

For a full list of changes in this release, please see the ChangeLog:

http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-14.0.1

Thank you for your continued support of Asterisk!

----- 14.0.2 -----

The Asterisk Development Team has announced the release of Asterisk 14.0.2.

The release of Asterisk 14.0.2 resolves several issues reported by the
community and would have not been possible without your participation.
Thank you!

The following are the issues resolved in this release:

Bugs fixed in this release:
-----------------------------------
 * ASTERISK-26410 - core: Asterisk 14 doesn't show the header in
      the console or verbose when starting (Reported by Dan Jenkins)
 * ASTERISK-26426 - format_ogg_opus: remove from source (Reported
      by Kevin Harwell)
 * ASTERISK-26425 - download_externals: ignore xmlstarlet return
      code for optional element (Reported by Kevin Harwell)

For a full list of changes in this release, please see the ChangeLog:

http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-14.0.2

Thank you for your continued support of Asterisk!

diffstat:

 comms/asterisk14/DESCR                                          |    19 +
 comms/asterisk14/Makefile                                       |   282 +
 comms/asterisk14/PLIST                                          |  4076 ++++++++++
 comms/asterisk14/distinfo                                       |    61 +
 comms/asterisk14/files/asterisk.sh                              |    43 +
 comms/asterisk14/files/smf/manifest.xml                         |    34 +
 comms/asterisk14/options.mk                                     |   123 +
 comms/asterisk14/patches/patch-Makefile                         |   122 +
 comms/asterisk14/patches/patch-addons_chan__ooh323.c            |    13 +
 comms/asterisk14/patches/patch-apps_app__dumpchan.c             |    22 +
 comms/asterisk14/patches/patch-apps_app__followme.c             |    22 +
 comms/asterisk14/patches/patch-apps_app__queue.c                |   117 +
 comms/asterisk14/patches/patch-apps_app__sms.c                  |    13 +
 comms/asterisk14/patches/patch-apps_app__voicemail.c            |    67 +
 comms/asterisk14/patches/patch-build__tools_mkpkgconfig         |    19 +
 comms/asterisk14/patches/patch-cdr_cdr__pgsql.c                 |    31 +
 comms/asterisk14/patches/patch-cel_cel__pgsql.c                 |    13 +
 comms/asterisk14/patches/patch-channels_chan__oss.c             |    31 +
 comms/asterisk14/patches/patch-channels_chan__sip.c             |    22 +
 comms/asterisk14/patches/patch-codecs_codec__dahdi.c            |    15 +
 comms/asterisk14/patches/patch-configure                        |   198 +
 comms/asterisk14/patches/patch-configure.ac                     |    53 +
 comms/asterisk14/patches/patch-contrib_scripts_vmail.cgi        |   187 +
 comms/asterisk14/patches/patch-funcs_func__cdr.c                |    13 +
 comms/asterisk14/patches/patch-funcs_func__env.c                |    13 +
 comms/asterisk14/patches/patch-include_asterisk_autoconfig.h.in |    27 +
 comms/asterisk14/patches/patch-include_asterisk_endian.h        |    16 +
 comms/asterisk14/patches/patch-include_asterisk_lock.h          |    76 +
 comms/asterisk14/patches/patch-include_asterisk_sha1.h          |   131 +
 comms/asterisk14/patches/patch-include_asterisk_strings.h       |    22 +
 comms/asterisk14/patches/patch-main_Makefile                    |    40 +
 comms/asterisk14/patches/patch-main_acl.c                       |    40 +
 comms/asterisk14/patches/patch-main_asterisk.c                  |    13 +
 comms/asterisk14/patches/patch-main_astmm.c                     |    13 +
 comms/asterisk14/patches/patch-main_cdr.c                       |    25 +
 comms/asterisk14/patches/patch-main_cel.c                       |    13 +
 comms/asterisk14/patches/patch-main_http.c                      |    13 +
 comms/asterisk14/patches/patch-main_logger.c                    |    22 +
 comms/asterisk14/patches/patch-main_manager.c                   |    65 +
 comms/asterisk14/patches/patch-main_netsock.c                   |    13 +
 comms/asterisk14/patches/patch-main_pbx.c                       |    13 +
 comms/asterisk14/patches/patch-main_pbx__builtins.c             |    24 +
 comms/asterisk14/patches/patch-main_sched.c                     |    27 +
 comms/asterisk14/patches/patch-main_stdtime_localtime.c         |   112 +
 comms/asterisk14/patches/patch-main_test.c                      |    13 +
 comms/asterisk14/patches/patch-main_utils.c                     |    42 +
 comms/asterisk14/patches/patch-pbx_pbx__dundi.c                 |    40 +
 comms/asterisk14/patches/patch-res_res__calendar.c              |    37 +
 comms/asterisk14/patches/patch-res_res__calendar__caldav.c      |    13 +
 comms/asterisk14/patches/patch-res_res__calendar__icalendar.c   |    13 +
 comms/asterisk14/patches/patch-sounds_Makefile                  |    25 +
 comms/asterisk14/patches/patch-tests_test__locale.c             |    13 +
 comms/asterisk14/patches/patch-tests_test__voicemail__api.c     |    13 +
 comms/asterisk14/patches/patch-utils_Makefile                   |    24 +
 comms/asterisk14/patches/patch-utils_db1-ast_include_db.h       |    13 +
 comms/asterisk14/patches/patch-utils_extconf.c                  |    67 +
 comms/asterisk14/patches/patch-utils_smsq.c                     |    13 +
 comms/asterisk14/patches/patch-utils_streamplayer.c             |    13 +
 58 files changed, 6653 insertions(+), 0 deletions(-)

diffs (truncated from 6885 to 300 lines):

diff -r aa15b14fb373 -r 74737221910d comms/asterisk14/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk14/DESCR    Tue Oct 25 08:16:31 2016 +0000
@@ -0,0 +1,19 @@
+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).
+
+This is a standard version.  It is scheduled to go to security
+fixes only on October 24th, 2017, and EOL on October 24th, 2018.
+See here for more information about Asterisk versions:
+https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
+
+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 aa15b14fb373 -r 74737221910d comms/asterisk14/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/asterisk14/Makefile Tue Oct 25 08:16:31 2016 +0000
@@ -0,0 +1,282 @@
+# $NetBSD: Makefile,v 1.1.1.1 2016/10/25 08:16:31 jnemeth Exp $
+#
+# NOTE: when updating this package, there are two places that sound
+#       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
+#       to find out the current sound file versions
+
+DISTNAME=      asterisk-14.0.2
+CATEGORIES=    comms net audio
+MASTER_SITES=  http://downloads.asterisk.org/pub/telephony/asterisk/ \
+               http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \
+               http://downloads.asterisk.org/pub/telephony/sounds/releases/
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+DISTFILES=     ${DEFAULT_DISTFILES}
+
+COMMENT=       The Asterisk Software PBX
+LICENSE=       gnu-gpl-v2
+
+EXTRACT_ONLY=  ${DISTNAME}.tar.gz
+OWNER=         jnemeth%NetBSD.org@localhost
+HOMEPAGE=      http://www.asterisk.org/
+
+MAKE_JOBS_SAFE=        NO
+
+# known to have issues on i386, block the package until the bug is fixed
+BROKEN_ON_PLATFORM=    NetBSD-*-i386
+
+CONFLICTS+=    asterisk-sounds-extra-[0-9]*
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_TOOLS+=            bison gmake perl:run pkg-config tar bash:run
+USE_LANGUAGES=         c c++
+REPLACE_BASH+=         contrib/scripts/astversion
+REPLACE_PERL+=         agi/DialAnMp3.agi agi/agi-test.agi
+REPLACE_PERL+=         agi/fastagi-test agi/jukebox.agi agi/numeralize
+REPLACE_PERL+=         contrib/scripts/vmail.cgi
+
+CHECK_INTERPRETER_SKIP+=       libdata/asterisk/scripts/refcounter.py
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --datarootdir=${PREFIX}/libdata
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --without-gtk2
+# XXX remove when lang/lua gets builtin.mk
+CONFIGURE_ARGS+=       --without-lua
+
+.if (${OPSYS} == "NetBSD" && \
+    (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+CONFIGURE_ARGS+=       --without-srtp
+.else
+CONFIGURE_ARGS+=       --with-srtp
+PLIST.srtp=            YES
+.include "../../comms/srtp/buildlink3.mk"
+.endif
+
+INSTALL_TARGET=                install samples
+INSTALLATION_DIRS+=    lib/pkgconfig share/doc/${PKGBASE}
+INSTALLATION_DIRS+=    share/examples/asterisk share/examples/rc.d
+INSTALLATION_DIRS+=    ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh
+
+BUILD_DEFS+=           VARBASE
+
+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}
+ASTDATADIR=            ${PREFIX}/libdata/asterisk
+MAKE_FLAGS+=           ASTLIBDIR=${PREFIX}/lib/asterisk
+MAKE_FLAGS+=           ASTVARLIBDIR=${ASTDATADIR}
+MAKE_FLAGS+=           ASTKEYDIR=${ASTDATADIR}
+MAKE_FLAGS+=           ASTDATADIR=${ASTDATADIR}
+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+=           LDOPTS=${LDFLAGS:M*:Q}
+MAKE_FLAGS+=           HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
+MAKE_FLAGS+=           HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
+MAKE_FLAGS+=           OPTIMIZE=-O3
+
+.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
+BUILDLINK_TRANSFORM+=  rm:-march=i386
+.endif
+
+PLIST_VARS+=   kqueue
+.if exists(/usr/include/sys/event.h)
+PLIST.kqueue=  yes
+.endif
+
+PLIST_VARS+=   mgcp
+# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
+# if the grep fails
+.for dir in ${COMPILER_INCLUDE_DIRS}
+.  if (exists(${dir}/sys/socket.h))
+NOSIGPIPE!=    ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo ""
+.    if ${NOSIGPIPE} != ""
+PLIST.mgcp=    yes
+.    endif
+.  endif
+.endfor
+
+.include "options.mk"
+
+# check sounds/Makefile for current version when upgrading package
+DISTFILES+=    asterisk-extra-sounds-en-gsm-1.5.tar.gz
+
+# Override default paths in config files
+SUBST_CLASSES+=                configs
+SUBST_STAGE.configs=   pre-configure
+SUBST_FILES.configs=   configs/samples/cli_aliases.conf.sample
+SUBST_FILES.configs+=  configs/samples/festival.conf.sample
+SUBST_FILES.configs+=  configs/samples/http.conf.sample
+SUBST_FILES.configs+=  configs/samples/iax.conf.sample
+SUBST_FILES.configs+=  configs/samples/musiconhold.conf.sample
+SUBST_FILES.configs+=  configs/samples/osp.conf.sample
+SUBST_FILES.configs+=  configs/samples/phoneprov.conf.sample
+SUBST_FILES.configs+=  configs/samples/res_config_sqlite.conf.sample
+SUBST_FILES.configs+=  configs/samples/sla.conf.sample
+SUBST_SED.configs+=    -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|'
+SUBST_SED.configs+=    -e 's|/etc/asterisk|${ASTETCDIR}|'
+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 item is fixed
+SUBST_CLASSES.NetBSD+= autoconfig
+SUBST_STAGE.autoconfig=        post-configure
+SUBST_FILES.autoconfig=        include/asterisk/autoconfig.h
+SUBST_SED.autoconfig=  -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
+SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
+
+# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
+SUBST_CLASSES.NetBSD+= pktinfo
+SUBST_STAGE.pktinfo=   post-configure
+SUBST_FILES.pktinfo=   include/asterisk/autoconfig.h
+SUBST_SED.pktinfo=     -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
+
+# XXX gross hack, gethostbyname_r on NETBSD is for internal use only
+SUBST_CLASSES.NetBSD+=         gethostbyname_r
+SUBST_STAGE.gethostbyname_r=   post-configure
+SUBST_FILES.gethostbyname_r=   include/asterisk/autoconfig.h
+SUBST_SED.gethostbyname_r=     -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|"
+SUBST_SED.gethostbyname_r+=    -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
+
+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}/outgoing ${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 !empty(PKG_OPTIONS:Masterisk-config)
+# if we put all the files in $CONF_FILES, the message is _way_ too long.
+.  for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf        \
+       amd.conf app_mysql.conf app_skel.conf ari.conf asterisk.adsi    \
+       calendar.conf ccss.conf cdr.conf cdr_adaptive_odbc.conf         \
+       cdr_custom.conf cdr_manager.conf cdr_mysql.conf cdr_odbc.conf   \
+       cdr_pgsql.conf cdr_sqlite3_custom.conf cdr_syslog.conf          \
+       cdr_tds.conf cel.conf cel_custom.conf cel_odbc.conf             \
+       cel_pgsql.conf cel_sqlite3_custom.conf cel_tds.conf             \
+       chan_dahdi.conf chan_mobile.conf cli.conf cli_aliases.conf      \
+       cli_permissions.conf codecs.conf confbridge.conf console.conf   \
+       dbsep.conf dnsmgr.conf dsp.conf dundi.conf enum.conf            \
+       extconfig.conf extensions.ael extensions.conf extensions.lua    \
+       extensions_minivm.conf features.conf festival.conf              \
+       followme.conf func_odbc.conf hep.conf http.conf iax.conf        \
+       iaxprov.conf indications.conf logger.conf manager.conf          \
+       meetme.conf mgcp.conf minivm.conf misdn.conf modules.conf       \
+       motif.conf musiconhold.conf muted.conf ooh323.conf osp.conf     \
+       oss.conf phone.conf phoneprov.conf pjproject.conf pjsip.conf    \
+       pjsip_notify.conf pjsip_wizard.conf queuerules.conf queues.conf \
+       res_config_mysql.conf res_config_sqlite.conf                    \
+       res_config_sqlite3.conf res_corosync.conf res_curl.conf         \
+       res_fax.conf res_ldap.conf res_odbc.conf res_parking.conf       \
+       res_pgsql.conf res_pktccops.conf res_snmp.conf                  \
+       res_stun_monitor.conf resolver_unbound.conf rtp.conf say.conf   \
+       sip.conf sip_notify.conf skinny.conf sla.conf smdi.conf         \
+       sorcery.conf ss7.timers stasis.conf statsd.conf                 \
+       telcordia-1.adsi udptl.conf unistim.conf users.conf             \
+       voicemail.conf vpb.conf xmpp.conf
+CONF_FILES_PERMS+=             ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.  endfor
+.endif
+
+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
+
+post-install:
+# check sounds directory for current versions when upgrading package
+       ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.5.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+       ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
+       ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+       ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.2.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.4.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.6.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.8.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-10.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-11.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-12.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-14-Reference.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-Admin-Guide.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/api-1.6.2-changes.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       cp -r ${WRKSRC}/doc/Asterisk-Admin-Guide ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/Asterisk-Admin-Guide
+
+.include "../../databases/sqlite3/buildlink3.mk"



Home | Main Index | Thread Index | Old Index