summaryrefslogtreecommitdiffstats
path: root/abs/core/man-db/man-db.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-12-03 03:26:25 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-12-03 03:26:25 (GMT)
commit9e1bbb32ae25fef6111d95205614a612ed9f70ec (patch)
treeed42f7b1c991416b177e9fa6f6b852f48812b7ad /abs/core/man-db/man-db.install
parent4004c7c21e83a7f90db802b5f603fd510304e81e (diff)
downloadlinhes_pkgbuild-9e1bbb32ae25fef6111d95205614a612ed9f70ec.zip
linhes_pkgbuild-9e1bbb32ae25fef6111d95205614a612ed9f70ec.tar.gz
linhes_pkgbuild-9e1bbb32ae25fef6111d95205614a612ed9f70ec.tar.bz2
man-db: upgrade
Diffstat (limited to 'abs/core/man-db/man-db.install')
-rw-r--r--abs/core/man-db/man-db.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/core/man-db/man-db.install b/abs/core/man-db/man-db.install
new file mode 100644
index 0000000..6a0f36b
--- /dev/null
+++ b/abs/core/man-db/man-db.install
@@ -0,0 +1,18 @@
+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
+}
+
+post_remove() {
+ rm -rf /var/cache/man
+}
+