I got some advice from the qa mailing list on how to hack an install on my Gentoo- it is not going to be easy, but it might work.

For the benefit of those who might want to try a similar thing themselvs, I am attaching the relavent messages.


Shosh

--

http://www.xslf.com

--- Begin Message ---
Hi Shoshannah,

exactly beginning in src680 m54 there are scripts available that offer for QA and for development reasons the installation of Linux RPMs without root privileges. You find this scripts in the solver in the directory bin/userscripts (install and uninstall) for Linux and Solaris.
I added the Linux scripts for a src680m54 also to this mail.


  Ingo

Shoshannah Forbes wrote:
Philipp Lohmann - Sun Germany wrote:

Alternatively at

http://packages.gentoo.org/search/?sstring=rpm

you can get rpm for gentoo.


Thanks- I'm checking it it. Does anyone know if it is possible to install this OOo build as a user and not system-wide?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


#!/bin/bash

# Linux deinstallation
# No parameter required, all RPMs listed in $HOME/.RPM_OFFICEDATABASE
# will be removed.

if [ $# -ne 0 ]
then
  echo "No parameters required"
  echo "All RPMs listed in $HOME/.RPM_OFFICEDATABASE will be removed"
  exit 2
fi

USER_DIR=~/.StarOffice8
RPM_DB_PATH=$HOME/.RPM_OFFICEDATABASE

# Output ...
clear
echo "###################################################################"
echo "#     Deinstallation of StarOffice RPMs                           #"
echo "###################################################################"
echo
echo "Path to the RPM database: " $RPM_DB_PATH
echo "RPMs to deinstall:"
echo "`rpm --dbpath $RPM_DB_PATH --query --all`"
echo "===================================================================="
echo
rpm --dbpath $RPM_DB_PATH --erase `rpm --dbpath $RPM_DB_PATH --query --all`

echo
echo "Deleting directories"
rm -rf $RPM_DB_PATH
rm -rf $USER_DIR

echo
echo "Deinstallation done ..."

exit 0
#!/bin/bash

# First parameter: Path to the RPM packages
# Second parameter: Path to the installation
# MY_OFFICE=/home/abc/opt/staroffice8-ea
# PACKAGE_PATH=/cws/instset_native/unxlngi5.pro/StarOffice/install/en-US/RPMS/

if [ \( $# -ne 2 -a $# -ne 3 \) -o -z "$1" -o -z "$2" ]
then
  echo "Two (optional three) parameters required"
  echo "Usage:"
  echo "1. parameter: Path to the RPM packages"
  echo "2. parameter: Path to the installation"
  echo "3. parameter (optional): \"-l\" (Creates a link \"soffice\" in $HOME)"
  exit 2
fi

PACKAGE_PATH=$1
MY_OFFICE=$2

LINK="nolink"
if [ $# -eq 3 ]
then
  LINK=$3
fi

if [ ! -d $PACKAGE_PATH ]
then
  echo "$PACKAGE_PATH is not a valid directory"
  echo "Usage:"
  echo "1. parameter: Path to the RPM packages"
  echo "2. parameter: Path to the installation"
  echo "3. parameter (optional): \"-l\" (Creates a link \"soffice\" in $HOME)"
  exit 2
fi

RPM_DB_PATH=$HOME/.RPM_OFFICEDATABASE 

# Removing old directories
rm -rf $MY_OFFICE
rm -rf $RPM_DB_PATH

# Output ...
clear
echo "####################################################################"
echo "#     Installation of StarOffice RPMs                              #"
echo "####################################################################"
echo
echo "Path to the RPM database:       " $RPM_DB_PATH
echo "Path to the RPM packages:       " $PACKAGE_PATH
echo "Path to the installation:       " $MY_OFFICE

# Creating directories
mkdir $RPM_DB_PATH
chmod 700 $RPM_DB_PATH

# Creating RPM database and initializing
rpm --initdb --dbpath $RPM_DB_PATH

RPMLIST=`find $PACKAGE_PATH -type f -name "*.rpm" ! -name "*-core-*" ! -name 
"*-menus-*" ! -name "adabas*" ! -name "j2re*" -print`
CORERPM=`find $PACKAGE_PATH -type f -name "*.rpm" -name "*-core-*" -print`
PREFIX=`rpm -qlp $CORERPM | head -n1`

if [ -z "$CORERPM" ]
then
  echo "No core RPM found in $PACKAGE_PATH"
  echo "Usage:"
  echo "1. parameter: Path to the RPM packages"
  echo "2. parameter: Path to the installation"
  echo "3. parameter (optional): \"-l\" \(Creates a link \"soffice\" in $HOME\)"
  exit 2
fi

echo "Installing the RPMs"
for i in $CORERPM; do
  echo `basename $i`
done
for i in $RPMLIST; do
  echo `basename $i`
done

rpm --install --nodeps -vh --relocate $PREFIX=$MY_OFFICE --dbpath $RPM_DB_PATH $CORERPM
rpm --install --nodeps -vh --relocate $PREFIX=$MY_OFFICE --dbpath $RPM_DB_PATH $RPMLIST

# creating a link into the user home directory

if [ $LINK = "-l" ]
then
  echo
  echo rm -f $HOME/soffice
  rm -f $HOME/soffice
  echo ln -s $MY_OFFICE/program/soffice $HOME/soffice
  ln -s $MY_OFFICE/program/soffice $HOME/soffice
fi

#clear
echo
echo "Installation done ..."

exit 0
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hi  *,

On Mon, Sep 20, 2004 at 06:07:14PM +0300, Shoshannah Forbes wrote:
> Philipp Lohmann - Sun Germany wrote:
> 
> >Alternatively at
> >
> >http://packages.gentoo.org/search/?sstring=rpm
> >
> >you can get rpm for gentoo.
> 
> Thanks- I'm checking it it. Does anyone know if it is possible to 
> install this OOo build as a user and not system-wide?

It is possible to install into a "private" location, but still this
will be a mutli-user install (there is no local installation anymore).

The RPMs are relocateable, so you can use 

"rpm -Uhv --prefix <your destination> --noscripts package.rpm" 

use --noscripts since this creates links to the executables in /usr/bin
WHen using noscripts, you have to run <oodir>/program/pkgchk --shared
manually after having installed the desired packages.

(write access to  rpm's database needs special privileges, so if you
have to install this as a regular user, you need to use another database
(use --dbpath, see "man rpm"))

HTH,
ciao
Christian
-- 
NP: Donots - My Stereo's A Liar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--- End Message ---

Reply via email to