blob: 896d5bacf0ee3f9d87fec40d095149240831a68d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
pkgname=asterisk
pkgver=10.9.0
pkgrel=1
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')
optdepends=('libpri' 'libss7' 'openr2' 'iksemel')
backup=(etc/asterisk/asterisk.conf)
source=(http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$pkgver.tar.gz \
asterisk \
asterisk.logrotated)
install=$pkgname.install
md5sums=('2fb85dc753584ac13692c27f9749c6cb'
'59146273738605f1e011d8e7bed3561a'
'486e07a0a1405ea25ec5b1736034653e')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package(){
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
make DESTDIR=${pkgdir} samples
(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
}
|