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.e...@gmail.com> 
To: "Asterisk GUI project discussion" <asterisk-gui@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 
_______________________________________________
--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

Reply via email to