PREUN
/bin/sh
/usr/share/rpm-helper/del-service denyhosts $1 denyhosts
POSTIN
/bin/sh
# Note that we do not automaticaly run --migrate, because we can't be
# sure that all of the hosts.deny entries were created by denyhosts
/usr/share/rpm-helper/add-service denyhosts $1 denyhosts
touch /var/log/denyhosts
touch /var/lib/denyhosts/allowed-warned-hosts
touch /var/lib/denyhosts/hosts
touch /var/lib/denyhosts/hosts-restricted
touch /var/lib/denyhosts/hosts-root
touch /var/lib/denyhosts/hosts-valid
touch /var/lib/denyhosts/suspicious-logins
touch /var/lib/denyhosts/sync-hosts
touch /var/lib/denyhosts/users-hosts
touch /var/lib/denyhosts/users-invalid
touch /var/lib/denyhosts/users-valid
POSTUN
/bin/sh
if [ $1 -ge 1 ] ; then
service denyhosts condrestart >/dev/null 2>&1
fi