# Maintainer : Michael Manley # Maintainer : Xavier Devlamynck # Contributor: Alessio Biancalana # Contributor: Maik Broemme pkgname=asterisk-cisco pkgver=11.21.2 pkgrel=1 pkgdesc="A complete PBX solution. Includes the Cisco Presence patch for use with Cisco IP Phones" provides=('asterisk') conflicts=('asterisk') arch=('i686' 'x86_64') backup=('etc/asterisk/acl.conf' 'etc/asterisk/adsi.conf' 'etc/asterisk/agents.conf' 'etc/asterisk/alarmreceiver.conf' 'etc/asterisk/alsa.conf' 'etc/asterisk/amd.conf' 'etc/asterisk/app_mysql.conf' 'etc/asterisk/app_skel.conf' 'etc/asterisk/ari.conf' 'etc/asterisk/asterisk.adsi' 'etc/asterisk/asterisk.conf' 'etc/asterisk/calendar.conf' 'etc/asterisk/ccss.conf' 'etc/asterisk/cdr.conf' 'etc/asterisk/cdr_adaptive_odbc.conf' 'etc/asterisk/cdr_custom.conf' 'etc/asterisk/cdr_manager.conf' 'etc/asterisk/cdr_mysql.conf' 'etc/asterisk/cdr_odbc.conf' 'etc/asterisk/cdr_pgsql.conf' 'etc/asterisk/cdr_sqlite3_custom.conf' 'etc/asterisk/cdr_syslog.conf' 'etc/asterisk/cdr_tds.conf' 'etc/asterisk/cel.conf' 'etc/asterisk/cel_custom.conf' 'etc/asterisk/cel_odbc.conf' 'etc/asterisk/cel_pgsql.conf' 'etc/asterisk/cel_sqlite3_custom.conf' 'etc/asterisk/cel_tds.conf' 'etc/asterisk/chan_dahdi.conf' 'etc/asterisk/chan_mobile.conf' 'etc/asterisk/cli.conf' 'etc/asterisk/cli_aliases.conf' 'etc/asterisk/cli_permissions.conf' 'etc/asterisk/codecs.conf' 'etc/asterisk/confbridge.conf' 'etc/asterisk/config_test.conf' 'etc/asterisk/console.conf' 'etc/asterisk/dbsep.conf' 'etc/asterisk/dnsmgr.conf' 'etc/asterisk/dsp.conf' 'etc/asterisk/dundi.conf' 'etc/asterisk/enum.conf' 'etc/asterisk/extconfig.conf' 'etc/asterisk/extensions.ael' 'etc/asterisk/extensions.conf' 'etc/asterisk/extensions.lua' 'etc/asterisk/extensions_minivm.conf' 'etc/asterisk/features.conf' 'etc/asterisk/festival.conf' 'etc/asterisk/followme.conf' 'etc/asterisk/func_odbc.conf'y 'etc/asterisk/hep.conf' 'etc/asterisk/http.conf' 'etc/asterisk/iax.conf' 'etc/asterisk/iaxprov.conf' 'etc/asterisk/indications.conf' 'etc/asterisk/logger.conf' 'etc/asterisk/manager.conf' 'etc/asterisk/meetme.conf' 'etc/asterisk/mgcp.conf' 'etc/asterisk/minivm.conf' 'etc/asterisk/misdn.conf' 'etc/asterisk/modules.conf' 'etc/asterisk/motif.conf' 'etc/asterisk/musiconhold.conf' 'etc/asterisk/muted.conf' 'etc/asterisk/ooh323.conf' 'etc/asterisk/osp.conf' 'etc/asterisk/oss.conf' 'etc/asterisk/phone.conf' 'etc/asterisk/phoneprov.conf' 'etc/asterisk/pjsip.conf' 'etc/asterisk/pjsip_notify.conf' 'etc/asterisk/pjsip_wizard.conf' 'etc/asterisk/queuerules.conf' 'etc/asterisk/queues.conf' 'etc/asterisk/res_config_mysql.conf' 'etc/asterisk/res_config_sqlite.conf' 'etc/asterisk/res_config_sqlite3.conf' 'etc/asterisk/res_corosync.conf' 'etc/asterisk/res_curl.conf' 'etc/asterisk/res_fax.conf' 'etc/asterisk/res_ldap.conf' 'etc/asterisk/res_odbc.conf' 'etc/asterisk/res_parking.conf' 'etc/asterisk/res_pgsql.conf' 'etc/asterisk/res_pktccops.conf' 'etc/asterisk/res_snmp.conf' 'etc/asterisk/res_stun_monitor.conf' 'etc/asterisk/rtp.conf' 'etc/asterisk/say.conf' 'etc/asterisk/sip.conf' 'etc/asterisk/sip_notify.conf' 'etc/asterisk/skinny.conf' 'etc/asterisk/sla.conf' 'etc/asterisk/smdi.conf' 'etc/asterisk/sorcery.conf' 'etc/asterisk/ss7.timers' 'etc/asterisk/stasis.conf' 'etc/asterisk/statsd.conf' 'etc/asterisk/telcordia-1.adsi' 'etc/asterisk/test_sorcery.conf' 'etc/asterisk/udptl.conf' 'etc/asterisk/unistim.conf' 'etc/asterisk/users.conf' 'etc/asterisk/voicemail.conf' 'etc/asterisk/vpb.conf' 'etc/asterisk/xmpp.conf') url="http://www.asterisk.org" license=('GPL') depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl' 'libxml2' 'jansson' 'libxslt' 'pjproject') makedepends=('sqlite3' 'gsm') optdepends=('lua51' 'libsrtp' 'postgresql' 'unixodbc' 'libpri' 'libss7' 'openr2' 'iksemel' 'radiusclient-ng' 'dahdi') source=(http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${pkgver}.tar.gz \ https://issues.asterisk.org/jira/secure/attachment/53565/cisco-usecallmanager-${pkgver}.patch \ https://issues.asterisk.org/jira/secure/attachment/52325/dialtemplate.xml \ https://issues.asterisk.org/jira/secure/attachment/52326/featurepolicy.xml \ https://issues.asterisk.org/jira/secure/attachment/52822/SEP000000000000.cnf.xml \ https://issues.asterisk.org/jira/secure/attachment/52328/softkeys.xml \ asterisk.service \ asterisk.logrotated \ asterisk.tmpfile) install=asterisk.install sha256sums=('9f4408ecda81efccbc0ce6728a7c53fa1528c527ea65d81a165e830c9f91bcac' '5999961c61e23f0f34ee1a70101b4b11f780d08c3a453c4b03d03b50fd89a66e' 'e355411c770537143ec258dae932e823df3ca8e7d6c9905b0993c02e60679ab2' 'e1d552e9fed66f210571176a1ee8c00f6d6321d9e05f484f21ecacd40641ae4a' '56632ded9379583684e21cbbc2ee7eb71a7a58ff7577e42ff59b469b51d10eac' 'f75707ccd176ae1223f80a1c02fdebafbd0bce3e5ec12667e6e061b0427bb075' '94acb6e68424195a12fd9d406b3fb586f264a550e75801f6e020a86e800dd42c' 'caa24cfec5c6b4f8cea385269e39557362acad7e2a552994c3bc24080e3bdd4e' '673c0c55bce8068c297f9cdd389402c2d5d5a25e2cf84732cb071198bd6fa78a') prepare() { cd ${srcdir}/asterisk-${pkgver} patch -p1 -i "${srcdir}/cisco-usecallmanager-${pkgver}.patch" } build() { cd ${srcdir}/asterisk-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin make } package(){ cd ${srcdir}/asterisk-${pkgver} make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} samples sed -i -e "s/\/var\/run/\/run/" ${pkgdir}/etc/asterisk/asterisk.conf mkdir -p ${pkgdir}/usr/share/doc/asterisk/examples mkdir -p ${pkgdir}/usr/share/doc/asterisk/cisco/examples for i in ${pkgdir}/etc/asterisk/*; do install -D -m 644 $i ${pkgdir}/usr/share/doc/asterisk/examples/; done mv ${pkgdir}/var/run ${pkgdir} install -D -m 644 ${srcdir}/dialtemplate.xml ${pkgdir}/usr/share/doc/asterisk/cisco/examples/dialtemplate.xml install -D -m 644 ${srcdir}/featurepolicy.xml ${pkgdir}/usr/share/doc/asterisk/cisco/examples/featurepolicy.xml install -D -m 644 ${srcdir}/SEP000000000000.cnf.xml ${pkgdir}/usr/share/doc/asterisk/cisco/examples/SEP000000000000.cnf.xml install -D -m 644 ${srcdir}/softkeys.xml ${pkgdir}/usr/share/doc/asterisk/cisco/examples/softkeys.xml install -D -m 644 ${srcdir}/asterisk.logrotated ${pkgdir}/etc/logrotate.d/asterisk install -D -m 644 ${srcdir}/asterisk.service ${pkgdir}/usr/lib/systemd/system/asterisk.service install -D -m 644 ${srcdir}/asterisk.tmpfile ${pkgdir}/usr/lib/tmpfiles.d/asterisk.conf }