[Lunar-commits] r17176 - moonbase/trunk/x11-apps/openoffice-bin

Moritz Heiber moe at lunar-linux.org
Fri Nov 4 16:54:47 UTC 2005


Author: moe
Date: 2005-11-04 16:54:46 +0000 (Fri, 04 Nov 2005)
New Revision: 17176

Removed:
   moonbase/trunk/x11-apps/openoffice-bin/CONFIGURE
   moonbase/trunk/x11-apps/openoffice-bin/response
Modified:
   moonbase/trunk/x11-apps/openoffice-bin/BUILD
   moonbase/trunk/x11-apps/openoffice-bin/DEPENDS
   moonbase/trunk/x11-apps/openoffice-bin/DETAILS
   moonbase/trunk/x11-apps/openoffice-bin/POST_REMOVE
Log:
Guess what? Yes, OpenOffice 2.0.0. Smells like RPM ..
I hate it.

* Restructured BUILD file to match the "new" OOo way
  of installing itself (huargh)
* Only rpmunpack and cpio are needed for that (gunzip
  comes from gzip which is sustained)
* Slight tweak applied to POST_REMOVE
* Adjusted the DETAILS file accordingly, reduced the
  number of available mirrors to a reasonable default
  (tested from the us/europe, all with reasonable
   bandwidth output)

Package is huge (~300MB) and takes some time to install
but it works!



Modified: moonbase/trunk/x11-apps/openoffice-bin/BUILD
===================================================================
--- moonbase/trunk/x11-apps/openoffice-bin/BUILD	2005-11-04 16:53:05 UTC (rev 17175)
+++ moonbase/trunk/x11-apps/openoffice-bin/BUILD	2005-11-04 16:54:46 UTC (rev 17176)
@@ -1,35 +1,26 @@
 (
+  OO_INSTALL_DIR="${SOURCE_DIRECTORY}/RPMS"
+  cd $OO_INSTALL_DIR			&&
 
-  message ""
-  message "To run the OO installer you must have access to your X server."
-  message "Please open a new xterm and type xhost +local: to give root access"
-  message ""
+  # I don't know what do with those. Hints anybody?
+  rm -rf desktop-integration		&&
 
-  query "Press enter to continue..." y
+  # Let the "magic" happen. Ugh, I hate rpm
+  message "${MESSAGE_COLOR}Unpacking RPMs...${DEFAULT_COLOR}" &&
+  for pack in ${OO_INSTALL_DIR}/*; do
+    rpmunpack $pack;
+  done &&
 
-  export DISPLAY=:0.0
+  # Now, lets get rid of the rpms
+  rm -rf ${OO_INSTALL_DIR}/*.rpm	&&
+  gunzip $OO_INSTALL_DIR/*		&&
+  
+  for pack in ${OO_INSTALL_DIR}/*; do
+    cpio -idm < $pack &> /dev/null;
+  done &&
+  
+  prepare_install &&
+  message "${MESSAGE_COLOR}Installing OpenOffice ${VERSION}...${DEFAULT_COLOR}" &&
+  cp -a "${OO_INSTALL_DIR}/opt/openoffice.org2.0" /opt/lunar/openoffice
 
-  prepare_install                                               &&
-  devoke_installwatch                                           &&
-  $SOURCE_DIRECTORY/setup -v -r:$SCRIPT_DIRECTORY/response      &&
-  invoke_installwatch                                           &&
-
-  #
-  # Shhhh! don't tell anyone I wrote this:
-  #
-  # OO registers so we cannot install and move it to somewhere else,
-  # so we fool ourselves here. Let's just move the entire tree to
-  # a fake install location and now that installwatch is enabled,
-  # do a cp -R so installwatch 'sees' the files being installed!
-
-  mv /opt/lunar/openoffice /opt/lunar/.OOo		&& # takes 1 sec
-  mkdir /opt/lunar/openoffice                           &&
-  cp -R /opt/lunar/.OOo/* /opt/lunar/openoffice/	&& # takes a while...
-  rm -rf /opt/lunar/.OOo				&&
-
-  cd /usr/share/applications                            &&
-  for i in /opt/lunar/openoffice/share/gnome/net/ooo*.desktop ; do
-   ln -sf $i
-  done
-
 ) > $C_FIFO 2>&1

Deleted: moonbase/trunk/x11-apps/openoffice-bin/CONFIGURE

Modified: moonbase/trunk/x11-apps/openoffice-bin/DEPENDS
===================================================================
--- moonbase/trunk/x11-apps/openoffice-bin/DEPENDS	2005-11-04 16:53:05 UTC (rev 17175)
+++ moonbase/trunk/x11-apps/openoffice-bin/DEPENDS	2005-11-04 16:54:46 UTC (rev 17176)
@@ -1,6 +1,2 @@
-depends zip    &&
-depends unzip  &&
-depends mktemp 
-
-#optional_depends "j2sdk" "" "" "For java support"
-
+depends rpmunpack &&
+depends cpio

Modified: moonbase/trunk/x11-apps/openoffice-bin/DETAILS
===================================================================
--- moonbase/trunk/x11-apps/openoffice-bin/DETAILS	2005-11-04 16:53:05 UTC (rev 17175)
+++ moonbase/trunk/x11-apps/openoffice-bin/DETAILS	2005-11-04 16:54:46 UTC (rev 17176)
@@ -1,41 +1,16 @@
           MODULE=openoffice-bin
-         VERSION=1.1.5
+         VERSION=2.0.0
           SOURCE=OOo_${VERSION}_LinuxIntel_install.tar.gz
-SOURCE_DIRECTORY=${BUILD_DIRECTORY}/OOo_${VERSION}_LinuxIntel_install
-   SOURCE_URL[0]=http://planetmirror.com/pub/openoffice/stable/$VERSION/
-   SOURCE_URL[1]=http://mirrors.sunsite.dk/openoffice/stable/$VERSION/
-   SOURCE_URL[2]=http://niihau.student.utwente.nl/openoffice/stable/$VERSION/
-   SOURCE_URL[3]=http://gd.tuwien.ac.at/office/openoffice/stable/$VERSION/
-   SOURCE_URL[5]=ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/$VERSION/
-   SOURCE_URL[6]=http://ftp.gwdg.de/pub/misc/openoffice/stable/$VERSION/
-   SOURCE_URL[7]=http://ftp.rhnet.is/pub/OpenOffice/stable/$VERSION/
-   SOURCE_URL[8]=http://ftp.rediris.es/ftp/mirror/openoffice.org/stable/$VERSION/
-   SOURCE_URL[9]=http://www.mirror.ac.uk/sites/sf1.mirror.openoffice.org/stable/$VERSION/
-  SOURCE_URL[10]=http://sapi.vlsm.org/openoffice/$VERSION/
-  SOURCE_URL[11]=ftp://mirrors.unam.mx/pub/OpenOffice/pub/OpenOffice.ORG/stable/$VERSION/
-  SOURCE_URL[12]=ftp://mirror.telentente.com/pub/OpenOffice/stable/$VERSION/
-  SOURCE_URL[13]=ftp://gd.tuwien.ac.at/office/openoffice/$VERSION/
-  SOURCE_URL[14]=ftp://sunsite.dk/mirrors/openoffice/stable/$VERSION/
-  SOURCE_URL[15]=ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/$VERSION/
-  SOURCE_URL[16]=ftp://ftp.gwdg.de/pub/misc/openoffice/stable/$VERSION/
-  SOURCE_URL[17]=ftp://sunsite.informatik.rwth-aachen.de/pub/packages/OpenOffice/stable/$VERSION/
-  SOURCE_URL[18]=ftp://openoffice.tu-bs.de/OpenOffice.org/stable/$VERSION/
-  SOURCE_URL[19]=ftp://ftp.stardiv.de/pub/OpenOffice.org/stable/$VERSION/
-  SOURCE_URL[20]=ftp://ftp.tu-chemnitz.de/pub/openoffice/stable/$VERSION/
-  SOURCE_URL[21]=ftp://ftp.rhnet.is/pub/OpenOffice/stable/$VERSION/
-  SOURCE_URL[22]=ftp://borft.student.utwente.nl/$VERSION/
-  SOURCE_URL[23]=ftp://ftp.openoffice.pl/OpenOffice.ORG/stable/$VERSION/
-  SOURCE_URL[24]=ftp://ftp.saix.net/pub/OpenOffice.org/stable/$VERSION/
-  SOURCE_URL[25]=ftp://ftp.cyberfenix.net/pub/openoffice/stable/$VERSION/
-  SOURCE_URL[26]=ftp://ftp.rediris.es/mirror/openoffice.org/stable/$VERSION/
-  SOURCE_URL[27]=http://ftp.sunet.se/pub/Office/OpenOffice.org/stable/$VERSION/
-  SOURCE_URL[28]=ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/stable/$VERSION/
-      SOURCE_VFY=sha1:2939217880d0ea63e760c89bfc456d27106c91ba
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/OOO680_m3_native_packed-2_en-US.8968
+   SOURCE_URL[0]=http://mirrors.sunsite.dk/openoffice/stable/$VERSION/
+   SOURCE_URL[1]=http://niihau.student.utwente.nl/openoffice/stable/$VERSION/
+   SOURCE_URL[2]=ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/$VERSION/
+      SOURCE_VFY=sha1:78dfbf9ae5c69272801e8c50a35a579ba94564cc
         WEB_SITE=http://www.openoffice.org/
          ENTERED=20020704
-         UPDATED=20050914
+         UPDATED=20051104
            SHORT="The open office suite for unix"
-LDD_CHECK=off
+       LDD_CHECK=off
 cat << EOF
 OpenOffice is the open source alternative to a full office suite. Derived
 from SUN's staroffice 5.2, this group of developers started to create

Modified: moonbase/trunk/x11-apps/openoffice-bin/POST_REMOVE
===================================================================
--- moonbase/trunk/x11-apps/openoffice-bin/POST_REMOVE	2005-11-04 16:53:05 UTC (rev 17175)
+++ moonbase/trunk/x11-apps/openoffice-bin/POST_REMOVE	2005-11-04 16:54:46 UTC (rev 17176)
@@ -1,3 +1 @@
-
 rm -rf /opt/lunar/openoffice
-

Deleted: moonbase/trunk/x11-apps/openoffice-bin/response



More information about the Lunar-commits mailing list