summaryrefslogtreecommitdiff
path: root/extra/pkgfile/pkgfile.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pkgfile/pkgfile.install')
-rw-r--r--extra/pkgfile/pkgfile.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/pkgfile/pkgfile.install b/extra/pkgfile/pkgfile.install
new file mode 100644
index 000000000..5545a3d39
--- /dev/null
+++ b/extra/pkgfile/pkgfile.install
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+post_install() {
+ printf "==> Run 'pkgfile --update' to initialize the database\n"
+}
+
+post_remove() {
+ # the cache dir might not be removed, notify the user
+ if [ -d var/cache/pkgfile ]; then
+ printf "==> /var/cache/pkgfile has not been removed\n"
+ fi
+}
+
+post_upgrade() {
+ if [ "$(vercmp 5 "$2")" -eq 1 ]; then
+ printf "==> DB format has changed. Please run pkgfile -uu\n"
+ fi
+}