aboutsummaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-08 14:12:53 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-08 14:12:53 +0000
commit0521b2fe8e60d2415a9f1cca7ce57d786bba9e28 (patch)
tree66218542f316f42721fe6db22016d2f70b18dc81 /Keywords
parente12f77294208b750e016fc951df2f514cdbbabc2 (diff)
Notes
Diffstat (limited to 'Keywords')
-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