2011-03-30 00:44:18 +00:00
|
|
|
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
|
|
|
|
|
|
|
|
# PlugApps: pepe le dog
|
|
|
|
# - added --build option to configure
|
|
|
|
|
2011-03-30 15:57:49 +00:00
|
|
|
plugrel=2
|
2011-03-30 00:44:18 +00:00
|
|
|
|
|
|
|
pkgname=asterisk
|
|
|
|
pkgver=1.8.2.3
|
2011-03-30 15:57:49 +00:00
|
|
|
pkgrel=1.${plugrel}
|
2011-03-30 00:44:18 +00:00
|
|
|
pkgdesc="A complete PBX solution"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.asterisk.org"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl')
|
|
|
|
makedepends=('postgresql' 'unixodbc' 'sqlite3')
|
|
|
|
backup=(etc/asterisk/asterisk.conf)
|
|
|
|
source=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$pkgver.tar.gz \
|
|
|
|
asterisk \
|
|
|
|
asterisk.logrotated)
|
|
|
|
install=$pkgname.install
|
|
|
|
md5sums=('e394b63dd71c07497620dc12883e0b80'
|
2011-03-30 15:57:49 +00:00
|
|
|
'59146273738605f1e011d8e7bed3561a'
|
2011-03-30 00:44:18 +00:00
|
|
|
'486e07a0a1405ea25ec5b1736034653e')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=arm-unknown-linux-gnueabi
|
|
|
|
make || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
package(){
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
make DESTDIR=${pkgdir} samples || return 1
|
|
|
|
|
|
|
|
(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
|
|
|
|
sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $startdir/pkg/etc/asterisk/asterisk.conf
|
|
|
|
|
|
|
|
install -D -m 755 ${srcdir}/asterisk ${pkgdir}/etc/rc.d/asterisk
|
|
|
|
install -D -m 644 ${srcdir}/asterisk.logrotated ${pkgdir}/etc/logrotate.d/asterisk
|
|
|
|
}
|