PKGBUILDs/aur/asterisk/PKGBUILD

156 lines
5 KiB
Bash
Raw Normal View History

2013-06-26 16:41:16 +00:00
# Maintainer : Xavier Devlamynck <magicrhesus@ouranos.be>
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
2013-08-29 23:53:38 +00:00
# Contributor: Maik Broemme <mbroemme@libmpq.org>
2011-03-30 00:44:18 +00:00
pkgname=asterisk
2015-12-03 05:32:20 +00:00
pkgver=13.6.0
pkgrel=1
2013-06-26 16:41:16 +00:00
pkgdesc="A complete PBX solution"
arch=('i686' 'x86_64')
2014-02-11 01:08:17 +00:00
backup=('etc/asterisk/acl.conf'
'etc/asterisk/adsi.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/agents.conf'
'etc/asterisk/alarmreceiver.conf'
'etc/asterisk/alsa.conf'
'etc/asterisk/amd.conf'
'etc/asterisk/app_mysql.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/app_skel.conf'
'etc/asterisk/ari.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/cdr_mysql.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/cel_odbc.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/cli_permissions.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/enum.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/extconfig.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/extensions.ael'
2014-11-09 05:23:08 +00:00
'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'
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/meetme.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/oss.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/phone.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/phoneprov.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/pjsip.conf'
'etc/asterisk/pjsip_notify.conf'
2015-11-05 02:30:19 +00:00
'etc/asterisk/pjsip_wizard.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/queuerules.conf'
'etc/asterisk/queues.conf'
'etc/asterisk/res_config_mysql.conf'
'etc/asterisk/res_config_sqlite.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/res_config_sqlite3.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/res_parking.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/res_pgsql.conf'
'etc/asterisk/res_pktccops.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/res_snmp.conf'
2014-11-09 05:23:08 +00:00
'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'
2014-02-11 01:08:17 +00:00
'etc/asterisk/sorcery.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/ss7.timers'
'etc/asterisk/stasis.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/statsd.conf'
'etc/asterisk/telcordia-1.adsi'
'etc/asterisk/test_sorcery.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/udptl.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/unistim.conf'
2014-11-09 05:23:08 +00:00
'etc/asterisk/users.conf'
'etc/asterisk/voicemail.conf'
'etc/asterisk/vpb.conf'
2014-02-11 01:08:17 +00:00
'etc/asterisk/xmpp.conf')
2011-03-30 00:44:18 +00:00
url="http://www.asterisk.org"
2013-06-26 16:41:16 +00:00
license=('GPL')
2014-07-18 05:13:10 +00:00
depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl' 'libxml2' 'jansson' 'libxslt' 'pjproject')
makedepends=('sqlite3' 'gsm')
2014-03-15 14:46:46 +00:00
optdepends=('lua51' 'libsrtp' 'postgresql' 'unixodbc' 'libpri' 'libss7' 'openr2' 'iksemel' 'radiusclient-ng' 'dahdi')
2013-06-26 16:41:16 +00:00
source=(http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${pkgver}.tar.gz \
${pkgname}.service \
2013-08-29 23:53:38 +00:00
${pkgname}.logrotated \
${pkgname}.tmpfile)
install=${pkgname}.install
2015-12-03 05:32:20 +00:00
sha256sums=('8a01b53c946d092ac561c11b404f68cd328306d0e3b434a7485a11d4b175005a'
2015-06-19 00:35:13 +00:00
'94acb6e68424195a12fd9d406b3fb586f264a550e75801f6e020a86e800dd42c'
2014-10-02 00:23:54 +00:00
'caa24cfec5c6b4f8cea385269e39557362acad7e2a552994c3bc24080e3bdd4e'
'673c0c55bce8068c297f9cdd389402c2d5d5a25e2cf84732cb071198bd6fa78a')
2013-06-26 16:41:16 +00:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin
make
2011-03-30 00:44:18 +00:00
}
2013-06-26 16:41:16 +00:00
package(){
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
make DESTDIR=${pkgdir} samples
2013-06-26 16:41:16 +00:00
sed -i -e "s/\/var\/run/\/run/" ${pkgdir}/etc/asterisk/asterisk.conf
mkdir -p ${pkgdir}/usr/share/doc/asterisk/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}/asterisk.logrotated ${pkgdir}/etc/logrotate.d/asterisk
install -D -m 644 ${srcdir}/asterisk.service ${pkgdir}/usr/lib/systemd/system/asterisk.service
2013-08-29 23:53:38 +00:00
install -D -m 644 ${srcdir}/asterisk.tmpfile ${pkgdir}/usr/lib/tmpfiles.d/asterisk.conf
2013-06-26 16:41:16 +00:00
}