PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/install-info --delete /usr/share/info/accounting.info.bz2 /usr/share/info/dir
#--entry="* accounting: (accounting). The GNU Process Accounting Suite."
fi
/usr/share/rpm-helper/del-service psacct $1 psacct
POSTIN
/bin/sh
# Create initial log files so that logrotate doesn't complain
if [ $1 = 1 ]; then # first install
for i in usracct savacct pacct; do
/usr/share/rpm-helper/create-file psacct $1 /var/log/$i root root 644
done
fi
# we need this hack to get rid of an old, incorrect accounting info entry.
if [ $1 = 0 ]; then
grep -v '* accounting: (psacct)' < /etc/info-dir > /etc/info-dir.new
mv -f /etc/info-dir.new /etc/info-dir
fi
/sbin/install-info /usr/share/info/accounting.info.bz2 /usr/share/info/dir --entry="* accounting: (accounting). The GNU Process Accounting Suite."
/usr/share/rpm-helper/add-service psacct $1 psacct