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>