aboutsummaryrefslogtreecommitdiff
path: root/Keywords/terminfo.ucl
diff options
context:
space:
mode:
Diffstat (limited to 'Keywords/terminfo.ucl')
-rw-r--r--Keywords/terminfo.ucl22
1 files changed, 22 insertions, 0 deletions
diff --git a/Keywords/terminfo.ucl b/Keywords/terminfo.ucl
new file mode 100644
index 000000000000..870a03296268
--- /dev/null
+++ b/Keywords/terminfo.ucl
@@ -0,0 +1,22 @@
+# $FreeBSD$
+#
+
+actions: []
+post-install: <<EOD
+ terminfodir=%D/share/misc
+ terminfodb=${terminfodir}/terminfo.db
+ if [ -e ${terminfodb}.default ] && which -s tic; then
+ cp ${terminfodb}.default ${terminfodb}
+ find -s ${terminfodir} -name "*.terminfo" -exec tic {} \;
+ fi
+EOD
+post-deinstall: <<EOD
+ terminfodir=%D/share/misc
+ terminfodb=${terminfodir}/terminfo.db
+ if [ -e ${terminfodb}.default ] && which -s tic; then
+ cp ${terminfodb}.default ${terminfodb}
+ find -s ${terminfodir} -name "*.terminfo" -exec tic {} \;
+ else
+ rm -f ${terminfodb}
+ fi
+EOD