path: root/package/asterisk
diff options
authorPhil Sutter <>2010-04-12 21:19:08 (GMT)
committerPhil Sutter <>2010-06-20 14:17:30 (GMT)
commite1e56a0d326e753654a224e012d2d38142107cbc (patch)
tree3efeeaef393bcf5185bf8422dd181ab0de971f0b /package/asterisk
parent1f75542012f665a5ee9659fa78574977266b900d (diff)
asterisk: default astdatadir to /usr/lib/asterisk
This is needed in order for asterisk to find the sound files we provide (and I found adding a symlink from the sounds dir to /var/lib/asterisk/ being just too ugly). As it changes only the default configuration, I guess this is fine without increasing PKG_RELEASE.
Diffstat (limited to 'package/asterisk')
1 files changed, 1 insertions, 0 deletions
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index c35e686..c7ec0c0 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -174,6 +174,7 @@ do-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
rm -f gtalk.conf ; \
rm -f skinny.conf ; \
rm -f dundi.conf ; \
+ echo -e '/^astdatadir =/s/var/usr/\nwq\n' | ed asterisk.conf ; \
${INSTALL_DATA} ./files/modules.conf $(IDIR_ASTERISK)/etc/asterisk/
$(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' \