aboutsummaryrefslogtreecommitdiff
path: root/office/openoffice.org/openoffice.org.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2016-09-05 17:16:50 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-11 08:53:39 +0700
commit8da0e9b0e953ec2aec82b9c08cb2b41acc157c12 (patch)
tree3845f867f17f34fe0cad21394cb4a2fe2fd54aaa /office/openoffice.org/openoffice.org.SlackBuild
parent0738c5b1961ac8934cf0b24dddc0b7ad2121b429 (diff)
office/openoffice.org: Add security hotfix patch.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'office/openoffice.org/openoffice.org.SlackBuild')
-rw-r--r--office/openoffice.org/openoffice.org.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/office/openoffice.org/openoffice.org.SlackBuild b/office/openoffice.org/openoffice.org.SlackBuild
index 1ecb73fb47d92..87677a767695c 100644
--- a/office/openoffice.org/openoffice.org.SlackBuild
+++ b/office/openoffice.org/openoffice.org.SlackBuild
@@ -28,13 +28,13 @@
PRGNAM=openoffice.org
SRCNAM=openoffice
VERSION=${VERSION:-4.1.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCSHORT=$(echo $VERSION | cut -f1 -d.)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -80,8 +80,8 @@ mkdir -p $PKG/usr/bin/
mkdir -p $PKG/usr/share/applications/
rm -rf $TMP/$SOURCEDIR
-# Extract tarball
tar xvf $CWD/$TARNAME -C $TMP
+unzip -f $CWD/apache-${SRCNAM}-${VERSION}-patch1-apply-Linux`getconf LONG_BIT`.zip libtl.so -d $TMP
cd $TMP/$SOURCEDIR/RPMS
chown -R root:root .
@@ -99,11 +99,10 @@ for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
rm -rf desktop-integration *.rpm
mv opt $PKG
+## Apply security patch:
+mv $TMP/libtl.so $PKG/opt/${SRCNAM}${SRCSHORT}/program/libtl.so
cd $PKG
-## Remove DejaVu fonts - these are included in other packages
-#rm -f $PKG/opt/${SRCNAM}${SRCSHORT}/share/fonts/truetype/DejaVu*.ttf
-
## Create symlinks in /usr/bin to actual binaries
cd $PKG/usr/bin/
for FILE in \