27 lines
776 B
Plaintext
27 lines
776 B
Plaintext
|
# Description: PBX Software implementation
|
||
|
# URL: http://www.asterisk.org
|
||
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
||
|
# Depends on: openssl, ncurses
|
||
|
|
||
|
name=asterisk
|
||
|
version=1.4.11
|
||
|
release=1
|
||
|
source=(http://ftp.digium.com/pub/$name/$name-$version.tar.gz asterisk.rc asterisk-mmx.patch)
|
||
|
|
||
|
build () {
|
||
|
cd $name-$version
|
||
|
# Check if this processor supports MMX instruction set
|
||
|
if [ -n "`grep '^flags.*mmx' /proc/cpuinfo`" ]; then
|
||
|
patch -p1 < $SRC/asterisk-mmx.patch
|
||
|
fi
|
||
|
./configure --prefix=/usr --with-ncurses --with-ssl
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
make DESTDIR=$PKG samples
|
||
|
mv $PKG/usr/share/man $PKG/usr
|
||
|
install -m 755 -D $SRC/asterisk.rc $PKG/etc/rc.d/asterisk
|
||
|
rmdir $PKG/usr/{share,bin}
|
||
|
mkdir -p $PKG/var/run/asterisk
|
||
|
chown -R root:root $PKG
|
||
|
}
|