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