aboutsummaryrefslogblamecommitdiff
path: root/Keywords/terminfo.ucl
blob: cb02ea023547301faf3e7dc982b2dd4abdf36a5b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                 






                                                       
                                                                






                                                       
                                                                



                       
# MAINTAINER: portmgr@FreeBSD.org

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