From 6a642c093f29814cdd0fdefeee3ab9400eae490f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Nov 2011 23:14:55 +0000 Subject: Fri Nov 25 23:14:55 UTC 2011 --- testing/man-db/man-db.install | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 testing/man-db/man-db.install (limited to 'testing/man-db/man-db.install') diff --git a/testing/man-db/man-db.install b/testing/man-db/man-db.install new file mode 100644 index 000000000..f6f0f27a6 --- /dev/null +++ b/testing/man-db/man-db.install @@ -0,0 +1,22 @@ +post_install() { + echo "it's recommended to create an initial" + echo "database running as root:" + echo "\"/usr/bin/mandb --quiet\"" +} + +post_upgrade() { + if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then + echo "systemuser \"man\" is no more required" + echo "run \"userdel man\". please also" + echo "chown root:root /var/cache/man" + fi + # 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 +} -- cgit v1.2.3-54-g00ecf