import orca-2.18.1, a screen magnifier/reader for the gnome desktop
[pkgsrcv2.git] / misc / openoffice2-bin / INSTALL
1 # $NetBSD$
2
3 # This file contains the contents of the OOo rpm 
4 # pre-install, post-install, pre-uninstall and post-uninstall scripts
5
6 PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
7
8 case ${STAGE} in
9 PRE-INSTALL)
10         # nothing to do
11         ;;
12
13 POST-INSTALL)
14         if [ ! -f $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
15         then
16           if [ -f $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 ]
17           then
18             ${LN} -s $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
19           fi
20         fi
21
22         if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
23         then
24           ${LN} -s $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
25         fi
26
27         if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
28         then
29           ${LN} -s $PRODUCTINSTALLLOCATION/program/python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
30         fi
31
32         if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
33         then
34           chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
35         fi
36         ;;
37
38 DEINSTALL)
39         if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
40         then
41           ${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
42         fi
43
44         if [ -h $PRODUCTINSTALLLOCATION/program/python-core ]
45         then
46           ${RM} $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
47         fi
48
49         if [ -h $PRODUCTINSTALLLOCATION/program/python ]
50         then
51           ${RM} $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
52         fi
53         ;;
54
55 esac