blob: a591f12dd6f8356342395b0d00e029120d0418fc (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: INSTALL,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
# This file contains the contents of the OOo rpm
# pre-install, post-install, pre-uninstall and post-uninstall scripts
PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
case ${STAGE} in
PRE-INSTALL)
# nothing to do
;;
POST-INSTALL)
if [ ! -f $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
then
if [ -f $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 ]
then
${LN} -s $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
fi
fi
if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
then
${LN} -s $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
fi
if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
then
${LN} -s $PRODUCTINSTALLLOCATION/program/python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
fi
if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
then
chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
fi
;;
DEINSTALL)
if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
then
${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
fi
if [ -h $PRODUCTINSTALLLOCATION/program/python-core ]
then
${RM} $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
fi
if [ -h $PRODUCTINSTALLLOCATION/program/python ]
then
${RM} $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
fi
;;
esac
|