# $FreeBSD: head/Keywords/terminfo.ucl 398827 2015-10-08 14:12:53Z amdmi3 $
#

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
