[asterisk-gui] hardcoded paths in scripts incompatible with macports
Ryan Brindley
rbrindley at digium.com
Mon May 11 15:46:44 CDT 2009
yes, please file a bug report and we'll address this issue when we can. Thanks for your participation!
--
Ryan Brindley
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
main: +1 256-428-6000 fax: +1 256-864-0464
Check us out at: http://digium.com & http://asterisk.org
----- Original Message -----
From: "Stefan van der Eijk" <stefan.van.der.eijk at gmail.com>
To: "Asterisk GUI project discussion" <asterisk-gui at lists.digium.com>
Sent: Monday, May 11, 2009 3:28:27 PM GMT -06:00 US/Canada Central
Subject: [asterisk-gui] hardcoded paths in scripts incompatible with macports
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
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-gui mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-gui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-gui/attachments/20090511/084c3f7f/attachment.htm
More information about the asterisk-gui
mailing list