asterisk: Fixed runtime directory

This commit is contained in:
Alan Mizrahi 2010-05-20 15:15:54 +09:00
parent cb9d783a13
commit 1ac8886d96

View File

@ -5,7 +5,7 @@
name=asterisk
version=1.4.29.1
release=1
release=2
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)
build () {
@ -25,6 +25,9 @@ build () {
make
make DESTDIR=$PKG install
make DESTDIR=$PKG samples
sed -i -e 's|^astrundir => .*|astrundir => /var/run/asterisk|' $PKG/etc/asterisk/asterisk.conf
mv $PKG/usr/share/man $PKG/usr
install -m 755 -D $SRC/asterisk.rc $PKG/etc/rc.d/asterisk
rmdir $PKG/usr/{share,bin}