<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>yes, please file a bug report and we'll address this issue when we can. Thanks for your participation!<br><br>-- <br>Ryan Brindley <br>Digium, Inc. | Software Developer <br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA <br>main: +1 256-428-6000 fax: +1 256-864-0464 <br>Check us out at: http://digium.com & http://asterisk.org<br><br>----- Original Message -----<br>From: "Stefan van der Eijk" <stefan.van.der.eijk@gmail.com><br>To: "Asterisk GUI project discussion" <asterisk-gui@lists.digium.com><br>Sent: Monday, May 11, 2009 3:28:27 PM GMT -06:00 US/Canada Central<br>Subject: [asterisk-gui] hardcoded paths in scripts incompatible with macports<br><br>Hi,<br><br>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?<br>
<br>Also some paths to binaries don't match up. On macosx tar is found in /usr/bin/tar (instead of /bin/tar).<br><br>These are the issues I've found in the scripts directory:<br><br>scripts/detectdahdi.sh:<br><div style="margin-left: 40px;">
OUTPUTFILE="/etc/asterisk/dahdi_guiread.conf"<br></div><br>scripts/dldsoundpack:<br><div style="margin-left: 40px;">SOUND_BASE="/var/lib/asterisk/sounds"<br>echo "DoneDoneDone" >> /var/lib/asterisk/static-http/config/sysinfo_output.html<br>
</div><br>scripts/editmisdn.sh:<br><div style="margin-left: 40px;">MISDNCONF="/etc/misdn-init.conf"<br>MISDNFILE="/etc/asterisk/applymisdn.conf"<br></div><br>scripts/editzap.sh:<br><div style="margin-left: 40px;">
ZAPCONF="/etc/zaptel.conf"<br>
ZAPCONF="/etc/dahdi/system.conf"<br>
FILENAME="/etc/asterisk/applyzap.conf"<br></div>
<br>scripts/listfiles:<br><div style="margin-left: 40px;">SYSINFO_OUTPUT="/var/lib/asterisk/static-http/config/sysinfo_output.html"<br></div><br>scripts/mastercsvexists:<br><div style="margin-left: 40px;">MASTERCSV="/var/log/asterisk/cdr-csv/Master.csv"<br>
STATICHTTP="/var/lib/asterisk/static-http/"<br>if [ -f /var/log/asterisk/cdr-csv/Master.csv ]; then<br>ln -s $MASTERCSV /var/lib/asterisk/static-http/config/`basename $MASTERCSV`<br></div><br>scripts/registerg729.sh:<br>
<div style="margin-left: 40px;">
INPUTFILE="/etc/asterisk/g729reginfo.conf"<br>
OUTPUTFILE="/etc/asterisk/g729reginfo_tabs.conf"<br></div>
<br>scripts/restorebackup:<br><div style="margin-left: 40px;">
rm /etc/config/dhcpcd*<br></div>
<br>
scripts/takebackup:<br><div style="margin-left: 40px;">
/bin/tar -cf $1 /etc/asterisk /etc/localtime<br>/bin/tar -cf "${SF}"_sounds.tar /var/lib/asterisk/sounds/voicemail /var/lib/asterisk/sounds/record<br></div><br>Would it be appropriate for me to file a bug report?<br>
<br>with kind regards,<br><br>Stefan van der Eijk<br><br>
<br>_______________________________________________
--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</div></body></html>