pkgsrc/x11/xterm/INSTALL
jlam 2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00

43 lines
649 B
Text

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.3 2003/08/30 20:23:08 jlam Exp $
PKGNAME=$1
STAGE=$2
CONFLICTS="bin/resize bin/xterm lib/app-defaults/XTerm share/man/man1/resize.1 share/man/man1/xterm.1"
case ${STAGE} in
PRE-INSTALL)
cd ${PKG_PREFIX}
for FILE in $CONFLICTS
do
if [ -f $FILE ]
then
@MV@ $FILE ${FILE}.openwin
fi
done
;;
POST-INSTALL)
cd ${PKG_PREFIX}/lib/X11/etc
TERMINFO=@LOCALBASE@/share/lib/terminfo
export TERMINFO
/usr/5bin/tic xterm.terminfo
;;
DEINSTALL)
;;
POST-DEINSTALL)
cd ${PKG_PREFIX}
for FILE in $CONFLICTS
do
if [ -f ${FILE}.openwin ]
then
@MV@ ${FILE}.openwin $FILE
fi
done
;;
esac
exit 0