summaryrefslogtreecommitdiff
path: root/asterisk
diff options
context:
space:
mode:
authorAlan Mizrahi <alan+crux@mizrahi.com.ve>2010-05-20 15:15:54 +0900
committerAlan Mizrahi <alan+crux@mizrahi.com.ve>2010-05-20 15:15:54 +0900
commit1ac8886d96e5f602ef37348d79db6a8a383c3cd4 (patch)
tree47db84aa49fbfa44c2ff0950732fdcbb81826989 /asterisk
parentcb9d783a13b9cf6f290f2480c423a11b2a2bceea (diff)
downloadcontrib-1ac8886d96e5f602ef37348d79db6a8a383c3cd4.tar.gz
contrib-1ac8886d96e5f602ef37348d79db6a8a383c3cd4.tar.xz
asterisk: Fixed runtime directory
Diffstat (limited to 'asterisk')
-rw-r--r--asterisk/Pkgfile5
1 files changed, 4 insertions, 1 deletions
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}

Generated by cgit