post_install() {
  echo "it's recommended to create an initial"
  echo "database running as root:"
  echo "\"/usr/bin/mandb --quiet\""
}

post_upgrade() {
  # force database rebuild to get rid off badly imported pages
  if [ "`vercmp $2 2.6.0.2`" -lt 0 ]; then
     echo "(re)building database..."
     mandb -c --quiet
  fi
}

post_remove() {
  rm -rf /var/cache/man
}
