Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-03-2005, 08:11 AM
|
#92
|
Member
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354
Rep:
|
the default OO is en_us but it is possible to enable en_gb.
If you go to Tool --> Options a box appears. Look for Languages Settings on the left hand side and click on it. Click on Languages. You will see an heading "Default languages for documents" under which is the option "Western" that is set to English (USA). Click on English (USA), scroll up one place and select English (UK) and hey presto, spell check will now tell you that colour is correct.
|
|
|
08-03-2005, 08:21 AM
|
#93
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
That only changes the dictionary - it does not come with user interface and help menus in en-GB unless you install the language pack. (i.e. the menus will still say 'color' until you install the pack and switch over the user interface language).
Last edited by cathectic; 08-03-2005 at 08:24 AM.
|
|
|
09-12-2005, 06:12 AM
|
#94
|
Member
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265
Rep:
|
Just wondering...is the SlackBuild for beta 2 ready yet?
|
|
|
09-12-2005, 06:20 AM
|
#95
|
Member
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354
Rep:
|
take the SlackBuild script for version 122 and change the following:
Code:
VERSION=1.9.122
mv $PKG/SRC680_m122_native_packed-2_en-US.8941/* $PKG
to
Code:
VERSION=1.9.125
mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
and replace all instances of openofficeorg with openoffice.org
Once I did all that it worked for me but wouldn't incorporate the package descriptions. Probably something to do with the replacement of openofficeorg with openoffice.org. Ah well it works and that's all that matters.
|
|
|
09-12-2005, 12:47 PM
|
#96
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
Quote:
Probably something to do with the replacement of openofficeorg with openoffice.org. Ah well it works and that's all that matters.
|
Yes, all the descriptions have to be updated to match it.
Quote:
is the SlackBuild for beta 2 ready yet?
|
A new SlackBuild is now available here: http://slackbuild.strangeworlds.co.uk/ooo
(Either download ooo.tar.gz, or download the SlackBuild + the slack-desc directory and it's contents. *Do not* try to reuse your old slack-desc's, I've moved them around, renamed them and updated them.)
Please note that I have altered the script slightly for the 1.9.128 release (the build after 2.0beta2 aka 1.9.125). To use it with Beta 2, edit ooo.SlackBuild and edit the following details as such:
1. VERSION=1.9.125
2. INPUT=OOo_2.0beta2_LinuxIntel_install.tar.gz
3. Change
Code:
# Needed for >113 (Not 118)
# mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
mv SRC680_m128_native_packed-1_en-US.8951/* $PKG
to
Code:
# Needed for >113 (Not 118)
mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
# mv SRC680_m128_native_packed-1_en-US.8951/* $PKG
|
|
|
10-27-2005, 10:09 AM
|
#97
|
Member
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265
Rep:
|
cathectic: not sure if this has been suggested before, but what about using rpm2cpio and cpio in your script instead of rpm2tgz? That way you would avoid the pointless tar-ing and gzip-ing that rpm2tgz does, and therefore avoid having to re-unpack the tgzs it creates, thus saving (probably quite a bit of) time.
|
|
|
10-28-2005, 09:25 AM
|
#98
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
OOo 2 SlackBuild - "Need For Speed"(TM) Edition
Thanks to Nobber's help, a new version of the OOo SlackBuild has been uploaded. As it is now using rpm2cpio, it is significantly faster than the previous SlackBuilds. There are also a few minor updates regarding file ownership (files are all now properly owned by root.root).
There *shouldn't* be any problems with it (I already did the damage to my own system, so the nasty stuff should be fixed). But if you do find any problems, please report them back.
http://slackbuild.strangeworlds.co.uk/ooo - OOo
http://slackbuild.strangeworlds.co.uk/ooo-langpack - OOo Language Pack
|
|
|
10-29-2005, 09:19 AM
|
#99
|
LQ Newbie
Registered: Jun 2004
Location: The Netherlands
Distribution: Slackware
Posts: 17
Rep:
|
I found a small error in the latest script:
PKGNAME[9]=graphicfilter
should be:
PKGNAME[8]=graphicfilter
|
|
|
10-29-2005, 03:55 PM
|
#100
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
Fixed - thanks!
|
|
|
07-13-2006, 09:34 AM
|
#101
|
Member
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354
Rep:
|
Hi, I'm unsure if the openoffice.org slackbuild is still being maintained. Here is modified slackbuild I used to install the most up to date openoffice.org, version 2.0.3. Changes were to the the version (2.0.3), build number (7) and build_menu number (2). (I placed a k after the script version number so I knew which script I was editing.)
Code:
#!/bin/sh
# 2006 Carlos Corbacho <cathectic AT gmail DOT com>
#
# SlackBuild Script for OpenOffice.org 2.0
# Version: 0.6.5-k (2006-07-03)
#
# Installation:
# 1) Save this script to the same directory as the file you downloaded
# from OpenOffice.org
# 2) Update VERSION and INPUT if need be
# 3) Change 'FOLDALL' depending on if you want one large 'super package'
# or individual ones (packages can be excluded futher down in the script
# where marked to do so.) - the default is to provide you with lots of
# different packages, so you can choose which to install later.
# 4) Change to root (su, etc... if you use sudo, you must have /sbin in your path for makepkg)
# 6) Run: sh ooo.SlackBuild [--cleanup]
# 7) Sit back.
# 8) Your completed packages will be dumped to /tmp
#
# Slamd64 users: Disable Java in OOo, otherwise OOo will run horribly slow!
#
# Language notes:
# You can find an entire tar.gz with your local language in here:
# ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/OOA680_m1/Build-1/
# (It saves having to go and dig up the language packs seperately. Modify INPUT
# accordingly if you use one of their builds)
# Set initial variables:
CWD=`pwd`
PKG=/tmp/package-ooo
# Change to the version of OOo you are using this script with
VERSION=2.0.3
# 2.0 hack - directory versions don't match package name versions
S_VERSION=2.0
# Most of the packages are i586. Edit this only if that changes
ARCH=${ARCH:-i586}
# Most OOo packages are build 1 - edit this if that changes
BUILD=7
# Change to the name of the file you downloaded from OOo
# Usually in the form of: OOo_$VERSION_LinuxIntel_install.tar.gz
INPUT=OOo_${VERSION}_LinuxIntel_install.tar.gz
# Destination of outputted files
DESTINATION=/tmp
if [ ! -r $INPUT ]; then
echo "Cannot find $INPUT Terminating..."
echo "Check that VERSION and INPUT are correct, and that you are running this SlackBuild in the same \
directory as the input file."
exit
fi
# Say "yes" here if you want menus to be built
# Say "no" if you don't
MENU=yes
# Say "yes" here if you want descriptions to be added (say 'yes' here if you also want to fold any packages
# into another
# Say "no" if you don't (if you say 'yes' to FOLDALL, this is set to 'yes')
DESCRIPTION=yes
# Say "yes" here if you to fold all packages into one
# Say "no" if you don't
FOLDALL=yes
# Say "yes" here if you just want all core packages to be folded into one
# Say "no" if you don't
FOLDCORE=yes
# Say "yes" here if you want spellcheck folded into core01/core
# Say "no" if you don't
FOLDSPELL=yes
# Do *not* touch this - it sets the correct variables for 'FOLDALL'
if [ $FOLDALL = yes ]; then
FOLDCORE=no
FOLDSPELL=no
DESCRIPTION=yes
fi
# Prepare a package directory
function preparePackage
{
mkdir -p $PKG/package
cd $PKG/package
}
# Extract a package, and then delete the original RPM file
# Argument 1: Package Name
# Argument 2: Architecture
function extractPackage
{
RPM=openoffice.org-$1-$VERSION-$2-$BUILD.rpm
rpm2cpio $PKG/$RPM | cpio -imd -R 0:0 2> /dev/null
rm $PKG/$RPM
# Fix directory permissions problem
find . -type d -perm 700 -exec chmod 755 {} \;
}
# Build a package and cleanup
# Argument 1: Package Name
# Argument 2: Architecture
# Argument 3: slack-desc file name
function buildPackage
{
mkdir $PKG/package/install
cat $CWD/${3} > $PKG/package/install/slack-desc
makepkg -l y -c n $PKG/openoffice.org-$1-$VERSION-$2-$BUILD.tgz
cd $PKG
rm -rf $PKG/package
}
rm -rf $PKG
mkdir -p $PKG
cd $PKG
tar xzvf $CWD/$INPUT
# If we can't find the RPMS directory, find it and put it somewhere
# that it can be accessed
if [ ! -r RPMS ]; then
find . -name "RPMS" | xargs -i'{}' mv '{}' $PKG
fi
cd $PKG/RPMS
# Add desktop integration RPMS to the other RPMS
mv $PKG/RPMS/desktop-integration/* $PKG/RPMS
#sleep 30
# Delete the RedHat, Mandrake/ Mandriva and Free Desktop menus
# Do *not* add SuSE here - that package is needed later
rm $PKG/RPMS/openoffice.org-redhat*
rm $PKG/RPMS/openoffice.org-mandr*
rm $PKG/RPMS/openoffice.org-freedesktop*
rm $PKG/RPMS/openoffice.org-debian*
# Add any other packages you don't want here in the form
# rm $PKG/RPMS/openofficeorg-$PACKAGENAME*
# Rename the TGZs to match the Slackware format of
# $PROGRAM-$VERSION-$ARCH-$REVISION.tgz/rpm
echo "Renaming packages to match Slackware format"
rename -$BUILD.noarch -noarch-$BUILD $PKG/RPMS/*
rename -$BUILD.$ARCH -$ARCH-$BUILD $PKG/RPMS/*
mv $PKG/RPMS/*.rpm $PKG
cd $PKG
rm -rf $PKG/RPMS
# Build menus for Slackware
if [ $MENU = yes ]; then
# As of 2.0.2 the menus have a different build revision
BUILD_MENU=2
# Build Slackware menus for KDE & Gnome/ XFCE/ Free Desktop compliant
preparePackage
#extractPackage suse-menus noarch
# Dirty hack until I can find a nice way to fix the multiple build revisions problem
(
RPM=openoffice.org-suse-menus-$VERSION-${BUILD_MENU}.noarch.rpm
rpm2cpio $PKG/$RPM | cpio -imd -R 0:0 2> /dev/null
rm $PKG/$RPM
# Fix directory permissions problem
find . -type d -perm 700 -exec chmod 755 {} \;
)
mv $PKG/package/opt/gnome/share/* $PKG/package/usr/share
rm -rf $PKG/package/opt/gnome
mv $PKG/package/opt/kde3 $PKG/package/opt/kde
# Backwards compatibility with older beta candidates
rm -rf $PKG/package/opt/kde/share/applnk
mkdir -p $PKG/package/usr/share/applications
cd $PKG/package/usr/share/applications
# Remove all the incorrect symlinks
rm $PKG/package/usr/share/applications/*
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/printeradmin.desktop openoffice.org-${S_VERSION}-printeradmin.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/base.desktop openoffice.org-${S_VERSION}-base.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/calc.desktop openoffice.org-${S_VERSION}-calc.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/draw.desktop openoffice.org-${S_VERSION}-draw.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/math.desktop openoffice.org-${S_VERSION}-math.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/impress.desktop openoffice.org-${S_VERSION}-impress.desktop
ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/writer.desktop openoffice.org-${S_VERSION}-writer.desktop
# ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/printer.desktop openoffice.org-${S_VERSION}-printer.desktop
# Replace the binaries in /usr/bin - correct link to file
cd $PKG/package
rm $PKG/package/usr/bin/*
cat << _EOF_ > $PKG/package/usr/bin/openoffice.org-${S_VERSION}
#!/bin/sh
exec /opt/openoffice.org${S_VERSION}/program/soffice "\$@"
_EOF_
cat << _EOF_ > $PKG/package/usr/bin/openoffice.org-${S_VERSION}-printeradmin
#!/bin/sh
exec /opt/openoffice.org${S_VERSION}/program/spadmin
_EOF_
# GNOME concession - if I'm missing anything else here, please let me know
mkdir -p $PKG/package/install
cat << _EOF_ > $PKG/package/install/doinst.sh
( if which update-mime-database; then update-mime-database /usr/share/mime; fi ) &> /dev/null
( if which update-desktop-database; then update-desktop-database; fi ) &> /dev/null
_EOF_
chmod a+x $PKG/package/install/doinst.sh
chmod -R 755 $PKG/package/usr
chown -R root.bin $PKG/package/usr/bin
# If we're not creating a 'super package', then slackware-menus needs to be packaged seperately
if [ $FOLDALL = no ]; then
buildPackage slackware-menus noarch slack-desc/slack-desc.slackware-menus
fi
else
# Delete the SuSE menu package
rm $PKG/openoffice.org-suse*
fi
# Add package descriptions
if [ $DESCRIPTION = yes ]; then
echo "Adding package descriptions (hold on a little longer...)"
# If spelling is to be added to a core package, extract it so that we can do it transparently with the
# core packages
if [ $FOLDSPELL = yes ]; then
preparePackage
extractPackage spellcheck $ARCH
cd $PKG
fi
# Fold all core packages into one
if [ $FOLDCORE = yes ]; then
preparePackage
for CORE in `seq -w 1 10`
do
extractPackage core$CORE $ARCH
if [ -e $PKG/openoffice.org-core${CORE}u-$VERSION-$ARCH-$BUILD.rpm ]; then
extractPackage core${CORE}u $ARCH
fi
done
buildPackage core $ARCH slack-desc/slack-desc.core
# Fold all packages into one
elif [ $FOLDALL = yes ]; then
echo "Building super package (almost done!)"
preparePackage
for file in $PKG/openoffice.org*-$VERSION-*.rpm
do
# I don't know sed well enough to tidy up this line - any help would be appreciated here!
package=`echo ${file} | sed s%${PKG}/openoffice.org-%% | sed s/-${VERSION}-${ARCH}-${BUILD}.rpm//`
extractPackage $package $ARCH
done
# buildPackage
mkdir $PKG/package/install
rm $PKG/package/install/slack-desc
cat $CWD/slack-desc/slack-desc.ooo > $PKG/package/install/slack-desc
makepkg -l y -c n $PKG/openoffice.org-$VERSION-$ARCH-$BUILD.tgz
cd $PKG
rm -rf $PKG/package
else
# Core Packages
for CORE in `seq -w 1 10`
do
preparePackage
if [ -e $PKG/openoffice.org-core${CORE}u-$VERSION-$ARCH-$BUILD.rpm ]; then
extractPackage core${CORE}u $ARCH
fi
extractPackage core$CORE $ARCH
buildPackage core$CORE $ARCH slack-desc/slack-desc.core
done
# This is inefficent, bad code! It should be updated using something like the foldall
# code, that does not rely on pre-specifying the package names
PKGNAME[0]=writer
PKGNAME[1]=calc
PKGNAME[2]=math
PKGNAME[3]=base
PKGNAME[4]=impress
PKGNAME[5]=draw
PKGNAME[6]=testtool
PKGNAME[7]=gnome-integration
PKGNAME[8]=graphicfilter
PKGNAME[9]=javafilter
PKGNAME[10]=spellcheck
PKGNAME[11]=pyuno
PKGNAME[12]=xsltfilter
PKGNAME[13]=emailmerge
# core?
for i in `seq 0 13`
do
if [ -e $PKG/openoffice.org-${PKGNAME[i]}-$VERSION-$ARCH-$BUILD.rpm ]; then
preparePackage
extractPackage ${PKGNAME[i]} $ARCH
buildPackage ${PKGNAME[i]} $ARCH slack-desc/slack-desc.${PKGNAME[i]}
fi
done
fi
fi
# Move all the tgz files to $DESTINATION
mv $PKG/*.tgz $DESTINATION
# Clean up the extra stuff:
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG
fi
|
|
|
07-13-2006, 12:39 PM
|
#102
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
I'm on holiday and borrowing an unreliable wireless connection. When I get back, I'll update the SlackBuild.
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|