blob: f711bd4d216265627dfbc7374f42722eb7e32c6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.4 2004/05/14 11:34:28 grant Exp $
PKGNAME=$1
STAGE=$2
CONFLICTS="bin/resize bin/xterm lib/app-defaults/XTerm man/man1/resize.1 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
|