summaryrefslogtreecommitdiff
path: root/textproc/rarian
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-11-12 20:41:18 +0000
committerdrochner <drochner@pkgsrc.org>2007-11-12 20:41:18 +0000
commita371762cf663f779bd81db49cb2df8e0f3b2636e (patch)
tree7765fcb26ed2114f4b00ef052777eac44bf27eca /textproc/rarian
parent49b29fd5b925accc9680fdacc2e79bcb494f05c6 (diff)
downloadpkgsrc-a371762cf663f779bd81db49cb2df8e0f3b2636e.tar.gz
move the install/deinstall templates from scrollkeeper to rarian
to reflect where the work is done (call the backwards-compatible rarian version "install-scrollkeeper" to leave room for a future non-compatibility version)
Diffstat (limited to 'textproc/rarian')
-rw-r--r--textproc/rarian/files/install-scrollkeeper.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/rarian/files/install-scrollkeeper.tmpl b/textproc/rarian/files/install-scrollkeeper.tmpl
new file mode 100644
index 00000000000..f89e1c8c479
--- /dev/null
+++ b/textproc/rarian/files/install-scrollkeeper.tmpl
@@ -0,0 +1,14 @@
+# $NetBSD: install-scrollkeeper.tmpl,v 1.1 2007/11/12 20:41:18 drochner Exp $
+
+SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@"
+SCROLLKEEPER_REBUILDDB="@SCROLLKEEPER_REBUILDDB@"
+SCROLLKEEPER_UPDATEDB="@SCROLLKEEPER_UPDATEDB@"
+
+case ${STAGE} in
+POST-INSTALL)
+ ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db
+ ;;
+DEINSTALL)
+ ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db
+ ;;
+esac