#! /bin/sh

# post-configure for dnews
# -andreas

# Make some changes to the main config file dnews.conf
# before dnews_setup uses it in the do-install target

TIMEZONE=`date | sed -e 's/.*:.*\ //'`

# configure suitable timezone
perl -pi -e "s|timezone NZST|timezone $TIMEZONE|" ${WRKSRC}/dnews.conf

# use df with absolute path
perl -pi -e "s|df -k|/bin/df -k|" ${WRKSRC}/dnews.conf

# correct sendmail's path
perl -pi -e "s|lib/sendmail|sbin/sendmail|" ${WRKSRC}/dnews.conf
