summaryrefslogtreecommitdiff
path: root/inputmethod/uim/files/modules.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/uim/files/modules.tmpl')
-rw-r--r--inputmethod/uim/files/modules.tmpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/inputmethod/uim/files/modules.tmpl b/inputmethod/uim/files/modules.tmpl
new file mode 100644
index 00000000000..2d9058eb9a5
--- /dev/null
+++ b/inputmethod/uim/files/modules.tmpl
@@ -0,0 +1,22 @@
+# $NetBSD: modules.tmpl,v 1.1 2014/05/31 14:22:38 obache Exp $
+#
+# Manager UIM modules
+#
+
+case ${STAGE} in
+POST-INSTALL)
+ if [ "${PKGBASE}" = "uim" ]; then
+ cd @UIM_MODULE_LIST_DIR@ && \
+ @UIM_MODULE_MANAGER@ --register *
+ else
+ @UIM_MODULE_MANAGER@ --register @UIM_MODULES@
+ fi
+ ;;
+DEINSTALL)
+ if [ "${PKGBASE}" = "uim" ]; then
+ @UIM_MODULE_MANAGER@ --unregister-all
+ else
+ @UIM_MODULE_MANAGER@ --unregister @UIM_MODULES@
+ fi
+ ;;
+esac