<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: OpenOffice.org2 and Ubuntu</title>
	<atom:link href="http://stateless.geek.nz/2005/06/27/openofficeorg2-and-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://stateless.geek.nz/2005/06/27/openofficeorg2-and-ubuntu/</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 07:26:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mre0281</title>
		<link>http://stateless.geek.nz/2005/06/27/openofficeorg2-and-ubuntu/comment-page-1/#comment-308</link>
		<dc:creator>mre0281</dc:creator>
		<pubDate>Fri, 12 Aug 2005 10:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://stateless.geek.nz/2005/06/27/openofficeorg2-and-ubuntu/#comment-308</guid>
		<description>&lt;verbatim&gt;
&lt;code&gt;
\#!/bin/sh

\# Download and debianize OpenOffice 2 beta
\# 
\# ----- Alberto Piai, april 2005
\# ----- Marc Rodriguez, july 2005
\# Released under GNU GPL license
\#
\# Credits:
\# Based on
\# http://nathanvi.it/openoffice/index.php?page=DeBianizza by Peo e no0tic

\# Requirements:

\# -a Java Runtime Environment is needed by OOo for full functionality
\# -OOo 1.x COMPLETELY uninstalled from the system
\# 
\# 

VERSIONE=&quot;1.9.122&quot;
HOME=~
WORKDIR=$HOME/.OOotemp3323
CURDIR=`pwd`
FILE_NAME=&quot;OOo_1.9.122_LinuxIntel_install.tar.gz&quot;
DOWNLOAD_PATH=&quot;http://ftp.rediris.es/ftp/mirror/openoffice.org/developer/680_m122/OOo_1.9.122_LinuxIntel_install.tar.gz&quot;

test ! -x $WORKDIR &#124;&#124; (
	echo &quot;* There&#039;s already a $WORKDIR directory...&quot;
		echo &quot;* Rename it or remove it before going on&quot;
			echo &quot;* Or just change the WORKDIR variable in this script!&quot;
				)
				test ! -x $WORKDIR &#124;&#124; exit 0

				if [ -f $CURDIR/$FILE_NAME ];
				then
				  echo &quot;* Found the tar.gz in this directory!&quot;
				    echo &quot;* Not going to download it again&quot;
				    else
				      echo &quot;* Download the tar.gz......&quot;
				        wget $DOWNLOAD_PATH
					fi  

					mkdir $WORKDIR 
					cd $WORKDIR
					ln -s $CURDIR/$FILE_NAME $WORKDIR/$FILE_NAME

					echo &quot;* Extracting tar.gz package.....&quot;
					tar zxf $FILE_NAME
					cd SRC*
					mv * ..
					cd ..

					touch debian-binary
					echo &quot;2.0&quot; &gt; debian-binary

					echo &quot;* Adapting it to Debian / Ubuntu:&quot;
					echo &quot;*    --&gt; removing unnecessary files&quot;

					rm -f RPMS/desktop-integration/openofficeorg-redhat-menus-$VERSIONE-1.noarch.rpm
					rm -f RPMS/desktop-integration/openofficeorg-suse-menus-$VERSIONE-1.noarch.rpm
					rm -f RPMS/desktop-integration/openofficeorg-mandriva-menus-$VERSIONE-1.noarch.rpm

					echo &quot;*    --&gt; extracting RPMs.........&quot; 
					mv RPMS/desktop-integration/openofficeorg-freedesktop-menus-$VERSIONE-1.noarch.rpm RPMS/
					for file in `ls RPMS/*.rpm` ;
						do rpm2cpio $file&#124;cpio -idm &amp;&gt; /dev/null;
						done

						rm -f RPMS -R

						# Crea la directory etc e fai i link necessari
						echo &quot;*    --&gt; preparing /etc directory and its links&quot;
						mkdir etc
						mkdir etc/openoffice.org-1.9
						cd etc/openoffice.org-1.9
						ln -s ../../opt/openoffice.org$VERSIONE/share .
						ln -s ../../opt/openoffice.org$VERSIONE/program .
						cd ../..

						echo &quot;* Packaging data...&quot;
						tar zcf data.tar.gz opt usr etc
						rm -f opt -R
						rm -f usr -R
						rm -f etc -R

						echo -n &quot;* Packaging .deb file........&quot;

						echo &quot;Package: openoffice-snapshot&quot;&gt; control
						echo &quot;Version: $VERSIONE&quot; &gt;&gt; control
						echo &quot;Architecture: i386&quot; &gt;&gt; control
						echo &quot;Description: Snapshot of openoffice m680&quot; &gt;&gt; control

						tar zcf control.tar.gz control
						rm -f control

						ar r openoffice-snapshot_$VERSIONE.deb debian-binary &amp;&gt; /dev/null
						rm -f debian-binary
						ar r openoffice-snapshot_$VERSIONE.deb control.tar.gz
						rm -f control.tar.gz
						ar r openoffice-snapshot_$VERSIONE.deb data.tar.gz
						rm -f data.tar.gz

						echo &quot; OK&quot;

						echo &quot;* Cleaning up...&quot;
						cp $WORKDIR/*.deb $CURDIR
						cd $CURDIR
						rm -rf $WORKDIR

						echo &quot;* Done!!!&quot;
						echo &quot;* If you already uninstalled OpenOffice 1.x&quot;
						echo &quot;* install the .deb file with:&quot;
						echo &quot;* 	sudo dpkg -i openoffice-snapshot_$VERSIONE.deb&quot;
&lt;/code&gt;
&lt;/verbatim&gt;</description>
		<content:encoded><![CDATA[<p><verbatim><br />
<code><br />
\#!/bin/sh</p>
<p>\# Download and debianize OpenOffice 2 beta<br />
\#<br />
\# ----- Alberto Piai, april 2005<br />
\# ----- Marc Rodriguez, july 2005<br />
\# Released under GNU GPL license<br />
\#<br />
\# Credits:<br />
\# Based on<br />
\# <a href="http://nathanvi.it/openoffice/index.php?page=DeBianizza" rel="nofollow">http://nathanvi.it/openoffice/index.php?page=DeBianizza</a> by Peo e no0tic</p>
<p>\# Requirements:</p>
<p>\# -a Java Runtime Environment is needed by OOo for full functionality<br />
\# -OOo 1.x COMPLETELY uninstalled from the system<br />
\#<br />
\# </p>
<p>VERSIONE="1.9.122"<br />
HOME=~<br />
WORKDIR=$HOME/.OOotemp3323<br />
CURDIR=`pwd`<br />
FILE_NAME="OOo_1.9.122_LinuxIntel_install.tar.gz"<br />
DOWNLOAD_PATH="http://ftp.rediris.es/ftp/mirror/openoffice.org/developer/680_m122/OOo_1.9.122_LinuxIntel_install.tar.gz"</p>
<p>test ! -x $WORKDIR || (<br />
	echo "* There's already a $WORKDIR directory..."<br />
		echo "* Rename it or remove it before going on"<br />
			echo "* Or just change the WORKDIR variable in this script!"<br />
				)<br />
				test ! -x $WORKDIR || exit 0</p>
<p>				if [ -f $CURDIR/$FILE_NAME ];<br />
				then<br />
				  echo "* Found the tar.gz in this directory!"<br />
				    echo "* Not going to download it again"<br />
				    else<br />
				      echo "* Download the tar.gz......"<br />
				        wget $DOWNLOAD_PATH<br />
					fi  </p>
<p>					mkdir $WORKDIR<br />
					cd $WORKDIR<br />
					ln -s $CURDIR/$FILE_NAME $WORKDIR/$FILE_NAME</p>
<p>					echo "* Extracting tar.gz package....."<br />
					tar zxf $FILE_NAME<br />
					cd SRC*<br />
					mv * ..<br />
					cd ..</p>
<p>					touch debian-binary<br />
					echo "2.0" &gt; debian-binary</p>
<p>					echo "* Adapting it to Debian / Ubuntu:"<br />
					echo "*    --&gt; removing unnecessary files"</p>
<p>					rm -f RPMS/desktop-integration/openofficeorg-redhat-menus-$VERSIONE-1.noarch.rpm<br />
					rm -f RPMS/desktop-integration/openofficeorg-suse-menus-$VERSIONE-1.noarch.rpm<br />
					rm -f RPMS/desktop-integration/openofficeorg-mandriva-menus-$VERSIONE-1.noarch.rpm</p>
<p>					echo "*    --&gt; extracting RPMs........."<br />
					mv RPMS/desktop-integration/openofficeorg-freedesktop-menus-$VERSIONE-1.noarch.rpm RPMS/<br />
					for file in `ls RPMS/*.rpm` ;<br />
						do rpm2cpio $file|cpio -idm &amp;&gt; /dev/null;<br />
						done</p>
<p>						rm -f RPMS -R</p>
<p>						# Crea la directory etc e fai i link necessari<br />
						echo "*    --&gt; preparing /etc directory and its links"<br />
						mkdir etc<br />
						mkdir etc/openoffice.org-1.9<br />
						cd etc/openoffice.org-1.9<br />
						ln -s ../../opt/openoffice.org$VERSIONE/share .<br />
						ln -s ../../opt/openoffice.org$VERSIONE/program .<br />
						cd ../..</p>
<p>						echo "* Packaging data..."<br />
						tar zcf data.tar.gz opt usr etc<br />
						rm -f opt -R<br />
						rm -f usr -R<br />
						rm -f etc -R</p>
<p>						echo -n "* Packaging .deb file........"</p>
<p>						echo "Package: openoffice-snapshot"&gt; control<br />
						echo "Version: $VERSIONE" &gt;&gt; control<br />
						echo "Architecture: i386" &gt;&gt; control<br />
						echo "Description: Snapshot of openoffice m680" &gt;&gt; control</p>
<p>						tar zcf control.tar.gz control<br />
						rm -f control</p>
<p>						ar r openoffice-snapshot_$VERSIONE.deb debian-binary &amp;&gt; /dev/null<br />
						rm -f debian-binary<br />
						ar r openoffice-snapshot_$VERSIONE.deb control.tar.gz<br />
						rm -f control.tar.gz<br />
						ar r openoffice-snapshot_$VERSIONE.deb data.tar.gz<br />
						rm -f data.tar.gz</p>
<p>						echo " OK"</p>
<p>						echo "* Cleaning up..."<br />
						cp $WORKDIR/*.deb $CURDIR<br />
						cd $CURDIR<br />
						rm -rf $WORKDIR</p>
<p>						echo "* Done!!!"<br />
						echo "* If you already uninstalled OpenOffice 1.x"<br />
						echo "* install the .deb file with:"<br />
						echo "* 	sudo dpkg -i openoffice-snapshot_$VERSIONE.deb"<br />
</code><br />
</verbatim></p>
]]></content:encoded>
	</item>
</channel>
</rss>

