6 # echo Command after installing
7 # searching for the PRODUCTINSTALLLOCATION for the different platforms
11 BASISPACKAGE=openofficeorg-core01
12 BASISDIR=`pkginfo -r $$BASISPACKAGE`
13 PRODUCTINSTALLLOCATION="$$BASEDIR"
16 BASISPACKAGE=openoffice.org-core01
17 BASISDIR=`rpm -q --queryformat "%{INSTALLPREFIX}" $$BASISPACKAGE`
18 PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
21 PRODUCTINSTALLLOCATION="$$BASEDIR"
25 # creating link to basis layer
26 if [ -d $$BASISDIR/openoffice.org/basisBASISDIRECTORYVERSION ]
28 ln -s $$BASISDIR/openoffice.org/basisBASISDIRECTORYVERSION $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link >/dev/null 2>&1
30 ln -s ../openoffice.org/basisBASISDIRECTORYVERSION $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link >/dev/null 2>&1
40 # echo Command after removing
42 LASTUNINSTALL=1 # important for RPM deinstallation
44 # searching for the PRODUCTINSTALLLOCATION for the different platforms
48 PRODUCTINSTALLLOCATION="$$BASEDIR"
51 PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
52 if [ "$$1" = 1 ] # one package left after deinstallation -> update
58 PRODUCTINSTALLLOCATION="$$BASEDIR"
62 if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link -a $$LASTUNINSTALL -eq 1 ]
64 rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link 2>/dev/null
65 rmdir $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME 2>/dev/null