[asterisk-gui] hardcoded paths in scripts incompatible with macports
Stefan van der Eijk
stefan.van.der.eijk at gmail.com
Mon May 11 15:28:27 CDT 2009
Hi,
I'm working on making a macports version of asterisknow. Macports prefixes
the paths with /opt/local, so the regulart /var/lib/asterisk should then
become /opt/local/var/lib/asterisk. I've noticed that some of the scripts
contain paths hardcoded. Can this be changed so they can be prefixed?
Also some paths to binaries don't match up. On macosx tar is found in
/usr/bin/tar (instead of /bin/tar).
These are the issues I've found in the scripts directory:
scripts/detectdahdi.sh:
OUTPUTFILE="/etc/asterisk/dahdi_guiread.conf"
scripts/dldsoundpack:
SOUND_BASE="/var/lib/asterisk/sounds"
echo "DoneDoneDone" >>
/var/lib/asterisk/static-http/config/sysinfo_output.html
scripts/editmisdn.sh:
MISDNCONF="/etc/misdn-init.conf"
MISDNFILE="/etc/asterisk/applymisdn.conf"
scripts/editzap.sh:
ZAPCONF="/etc/zaptel.conf"
ZAPCONF="/etc/dahdi/system.conf"
FILENAME="/etc/asterisk/applyzap.conf"
scripts/listfiles:
SYSINFO_OUTPUT="/var/lib/asterisk/static-http/config/sysinfo_output.html"
scripts/mastercsvexists:
MASTERCSV="/var/log/asterisk/cdr-csv/Master.csv"
STATICHTTP="/var/lib/asterisk/static-http/"
if [ -f /var/log/asterisk/cdr-csv/Master.csv ]; then
ln -s $MASTERCSV /var/lib/asterisk/static-http/config/`basename $MASTERCSV`
scripts/registerg729.sh:
INPUTFILE="/etc/asterisk/g729reginfo.conf"
OUTPUTFILE="/etc/asterisk/g729reginfo_tabs.conf"
scripts/restorebackup:
rm /etc/config/dhcpcd*
scripts/takebackup:
/bin/tar -cf $1 /etc/asterisk /etc/localtime
/bin/tar -cf "${SF}"_sounds.tar /var/lib/asterisk/sounds/voicemail
/var/lib/asterisk/sounds/record
Would it be appropriate for me to file a bug report?
with kind regards,
Stefan van der Eijk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-gui/attachments/20090511/9cb3c294/attachment.htm
More information about the asterisk-gui
mailing list