2920a32c71
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
43 lines
649 B
Text
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
|