ports/Keywords/terminfo.ucl
2021-02-26 08:08:35 +00:00

23 lines
582 B
Plaintext

# $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 -x {} \;
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 -x {} \;
else
rm -f ${terminfodb}
fi
EOD