2013-02-07 04:06:27 +00:00
|
|
|
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
|
2011-03-30 00:44:18 +00:00
|
|
|
|
2013-02-07 04:06:27 +00:00
|
|
|
#ALARM: moonman
|
|
|
|
# -based on asterisk-ltr in aur
|
|
|
|
# -added makeflags =-j1, otherwise it fails
|
|
|
|
# -added asterisk.service for systemd
|
|
|
|
# -removed dahdi, libpri from deps
|
|
|
|
# -changed default pid file location to
|
|
|
|
# /var/run/asterisk (as in asterisk (non ltr) in aur)
|
|
|
|
# -asterisk.logrotated was forgotten to be included in package - fixed
|
2011-03-30 00:44:18 +00:00
|
|
|
|
|
|
|
pkgname=asterisk
|
2013-03-30 19:14:20 +00:00
|
|
|
pkgver=11.3.0
|
2013-04-17 05:06:02 +00:00
|
|
|
pkgrel=3
|
2013-02-07 04:06:27 +00:00
|
|
|
pkgdesc="A complete PBX solution (Long Term Support)"
|
|
|
|
arch=('arm')
|
|
|
|
groups=()
|
2011-03-30 00:44:18 +00:00
|
|
|
url="http://www.asterisk.org"
|
2013-02-07 04:06:27 +00:00
|
|
|
license=('GPL2')
|
|
|
|
depends=('libusb' 'libxml2' 'openssl' 'curl' 'gmime' 'iksemel' 'libldap' 'net-snmp' 'postgresql-libs' 'speex' 'sqlite' 'libcap' 'libvorbis' 'unixodbc' 'libnewt' 'libresample' 'alsa-lib' 'popt' 'lua' 'neon' 'jack' 'sdl' 'gsm')
|
|
|
|
optdepends=('radiusclient-ng' 'libpri' 'dahdi' 'dahdi-tools')
|
|
|
|
makedepends=('linux-headers')
|
|
|
|
conflicts=('asterisk' 'asterisk16' 'asterisk18' 'asterisk10' 'asterisk-svn')
|
|
|
|
provides=('asterisk')
|
|
|
|
options=(makeflags)
|
|
|
|
MAKEFLAGS="-j1"
|
|
|
|
install=${pkgname}.install
|
|
|
|
source=(http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-${pkgver}.tar.gz
|
|
|
|
asterisk
|
|
|
|
asterisk.logrotated
|
|
|
|
asterisk.service)
|
2013-03-30 19:14:20 +00:00
|
|
|
sha1sums=('75b822fd57c45a150b2c0d33e7746ebf6497e59d'
|
2013-02-07 04:06:27 +00:00
|
|
|
'19ca30d5dde7ba90e56c21abfe4fb9fcf2529e98'
|
|
|
|
'38a772e20c9a1987faf433ca38c8536012fbada0'
|
2013-04-17 05:15:44 +00:00
|
|
|
'159af010477153d08839c73830526fc32e554940')
|
2011-03-30 00:44:18 +00:00
|
|
|
build() {
|
2013-02-07 04:06:27 +00:00
|
|
|
cd $srcdir/asterisk-${pkgver}
|
|
|
|
|
|
|
|
msg "Configuring..."
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
2011-05-17 21:27:59 +00:00
|
|
|
|
2013-02-07 04:06:27 +00:00
|
|
|
msg "Building..."
|
|
|
|
make
|
2011-03-30 00:44:18 +00:00
|
|
|
}
|
|
|
|
|
2013-02-07 04:06:27 +00:00
|
|
|
package() {
|
|
|
|
cd ${srcdir}/asterisk-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
make DESTDIR=${pkgdir} samples
|
2011-03-30 00:44:18 +00:00
|
|
|
|
2013-02-07 04:06:27 +00:00
|
|
|
(cd ${pkgdir}/etc/asterisk
|
|
|
|
# for i in `ls`; do [ $i = "asterisk.conf" ] || mv $i $i.default; done
|
|
|
|
ls -I asterisk.conf | xargs -I '{}' mv '{}' '{}.default')
|
|
|
|
# cp ${srcdir}/modules.conf modules.conf
|
2013-04-16 06:19:37 +00:00
|
|
|
sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $pkgdir/etc/asterisk/asterisk.conf
|
2013-02-07 04:06:27 +00:00
|
|
|
|
2013-04-17 05:08:42 +00:00
|
|
|
mkdir -p "$pkgdir/etc/tmpfiles.d"
|
2013-04-17 05:05:18 +00:00
|
|
|
echo "d /run/asterisk 0775 root asterisk" > $pkgdir/etc/tmpfiles.d/asterisk.conf
|
2013-03-08 04:20:56 +00:00
|
|
|
|
2013-02-07 04:06:27 +00:00
|
|
|
install -D "$srcdir/asterisk" "$pkgdir/etc/rc.d/asterisk"
|
|
|
|
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
|
|
|
install -Dm644 "$srcdir/asterisk.logrotated" "$pkgdir/etc/logrotate.d/asterisk"
|
2013-03-08 04:20:56 +00:00
|
|
|
|
2011-05-17 21:27:59 +00:00
|
|
|
}
|
2013-02-07 04:06:27 +00:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|