blob: 18459e7511ed6abda682c1196468c35d733c5c16 (
plain)
1 # Description: PBX Software implementation
2 # URL: http://www.asterisk.org
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: openssl, ncurses
5
6 name=asterisk
7 version=1.4.29.1
8 release=1
9 source=(http://downloads.digium.com/pub/$name/releases/$name-$version.tar.gz asterisk.rc asterisk-mmx.patch 1.4-gsm-gcc4.2.patch voicemail.patch)
10
11 build () {
12 cd $name-$version
13
14 # Fixes choppy gsm transcoding when using gcc 4.2
15 patch -p1 < $SRC/1.4-gsm-gcc4.2.patch
16
17 # patch -p0 < $SRC/voicemail.patch
18
19 # Check if this processor supports MMX instruction set
20 # if [ -n "`grep '^flags.*mmx' /proc/cpuinfo`" ]; then
21 # patch -p1 < $SRC/asterisk-mmx.patch
22 # fi
23
24 ./configure --prefix=/usr --with-ncurses --with-ssl
25 make
26 make DESTDIR=$PKG install
27 make DESTDIR=$PKG samples
28 mv $PKG/usr/share/man $PKG/usr
29 install -m 755 -D $SRC/asterisk.rc $PKG/etc/rc.d/asterisk
30 rmdir $PKG/usr/{share,bin}
31 rm -rf $PKG/var/spool/asterisk/voicemail/default/1234
32
33 # Remove default sounds, they are in asterisk-sounds-core-en-*
34 rm -rf $PKG/var/lib/asterisk/sounds/{.asterisk*,*}
35
36 mkdir -p $PKG/var/run/asterisk
37 chown -R root:root $PKG
38 chown -R asterisk:asterisk $PKG/var/{lib,log,run,spool}/asterisk
39 }
|