diff --git a/asterisk/Pkgfile b/asterisk/Pkgfile index 18459e751..1a749fd88 100644 --- a/asterisk/Pkgfile +++ b/asterisk/Pkgfile @@ -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}