1 # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
6 pkgdesc="A complete PBX solution"
9 url="http://www.asterisk.org"
11 depends=('libusb' 'libxml2' 'openssl' 'curl' 'gmime' 'iksemel' 'libldap' 'net-snmp' 'postgresql-libs' 'speex' 'sqlite3' 'libcap' 'libvorbis' 'libcap' 'unixodbc' 'libnewt' 'libresample' 'alsa-lib' 'popt' 'net-snmp')
12 optdepends=('radiusclient-ng' 'libpri' 'dahdi')
14 conflicts=('asterisk' 'asterisk16' 'asterisk18')
19 backup=('etc/asterisk/adsi.conftru' 'etc/asterisk/agents.conf' 'etc/asterisk/ais.conf'
20 'etc/asterisk/alarmreceiver.conf' 'etc/asterisk/alsa.conf' 'etc/asterisk/amd.conf'
21 'etc/asterisk/app_mysql.conf' 'etc/asterisk/asterisk.conf' 'etc/asterisk/calendar.conf'
22 'etc/asterisk/ccss.conf' 'etc/asterisk/cdr_adaptive_odbc.conf' 'etc/asterisk/cdr.conf'
23 'etc/asterisk/cdr_custom.conf' 'etc/asterisk/cdr_manager.conf' 'etc/asterisk/cdr_mysql.conf'
24 'etc/asterisk/cdr_odbc.conf' 'etc/asterisk/cdr_pgsql.conf' 'etc/asterisk/cdr_sqlite3_custom.conf'
25 'etc/asterisk/cdr_syslog.conf' 'etc/asterisk/cdr_tds.conf' 'etc/asterisk/cel_adaptive_odbc.conf'
26 'etc/asterisk/cel.conf' 'etc/asterisk/cel_custom.conf' 'etc/asterisk/cel_pgsql.conf'
27 'etc/asterisk/cel_sqlite3_custom.conf' 'etc/asterisk/cel_tds.conf' 'etc/asterisk/chan_dahdi.conf'
28 'etc/asterisk/chan_mobile.conf' 'etc/asterisk/chan_ooh323.conf' 'etc/asterisk/cli_aliases.conf'
29 'etc/asterisk/cli.conf' 'etc/asterisk/cli_permissions.conf' 'etc/asterisk/codecs.conf'
30 'etc/asterisk/console.conf' 'etc/asterisk/dbsep.conf' 'etc/asterisk/dnsmgr.conf'
31 'etc/asterisk/dsp.conf' 'etc/asterisk/dundi.conf' 'etc/asterisk/enum.conf'
32 'etc/asterisk/extconfig.conf' 'etc/asterisk/extensions.conf' 'etc/asterisk/extensions_minivm.conf'
33 'etc/asterisk/features.conf' 'etc/asterisk/festival.conf' 'etc/asterisk/followme.conf'
34 'etc/asterisk/func_odbc.conf' 'etc/asterisk/gtalk.conf' 'etc/asterisk/h323.conf'
35 'etc/asterisk/http.conf' 'etc/asterisk/iax.conf' 'etc/asterisk/iaxprov.conf'
36 'etc/asterisk/indications.conf' 'etc/asterisk/jabber.conf' 'etc/asterisk/jingle.conf'
37 'etc/asterisk/logger.conf' 'etc/asterisk/manager.conf' 'etc/asterisk/meetme.conf'
38 'etc/asterisk/mgcp.conf' 'etc/asterisk/minivm.conf' 'etc/asterisk/misdn.conf'
39 'etc/asterisk/modules.conf' 'etc/asterisk/musiconhold.conf' 'etc/asterisk/muted.conf'
40 'etc/asterisk/osp.conf' 'etc/asterisk/oss.conf' 'etc/asterisk/phone.conf'
41 'etc/asterisk/phoneprov.conf' 'etc/asterisk/queuerules.conf' 'etc/asterisk/queues.conf'
42 'etc/asterisk/res_config_mysql.conf' 'etc/asterisk/res_config_sqlite.conf' 'etc/asterisk/res_fax.conf'
43 'etc/asterisk/res_ldap.conf' 'etc/asterisk/res_odbc.conf' 'etc/asterisk/res_pgsql.conf'
44 'etc/asterisk/res_pktccops.conf' 'etc/asterisk/res_snmp.conf' 'etc/asterisk/rpt.conf'
45 'etc/asterisk/rtp.conf' 'etc/asterisk/say.conf' 'etc/asterisk/sip.conf' 'etc/asterisk/sip_notify.conf'
46 'etc/asterisk/skinny.conf' 'etc/asterisk/sla.conf' 'etc/asterisk/smdi.conf' 'etc/asterisk/udptl.conf'
47 'etc/asterisk/unistim.conf' 'etc/asterisk/usbradio.conf' 'etc/asterisk/users.conf'
48 'etc/asterisk/voicemail.conf' 'etc/asterisk/vpb.conf')
50 _svntrunk="http://svn.asterisk.org/svn/asterisk/trunk"
56 msg "Connecting to $_svntrunk..."
57 svn checkout $_svntrunk $_svnmod
58 msg "SVN checkout done..."
60 cp -r $_svnmod $_svnmod-build
64 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
71 make DESTDIR=$pkgdir install
73 msg "Installing samples..."
74 make DESTDIR=$pkgdir samples
76 # Cleaning build directory
77 rm -r $srcdir/$_svnmod-build
80 # vim:set ts=2 sw=2 et: