diff options
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/terminfo.ucl | 22 |
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 |