aboutsummaryrefslogtreecommitdiff
path: root/network/x2goserver/x2goserver.SlackBuild
diff options
context:
space:
mode:
authorMarcus Moeller <mmoeller@faircomputer.ch>2019-06-28 21:39:30 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-29 08:17:51 +0700
commit2a012d246e54d6a2f3b93c0ff66043b07b361334 (patch)
tree9d1f008e7d827a46597dc83e21b22fe1c4d60f84 /network/x2goserver/x2goserver.SlackBuild
parent8cfa72c3ed5b3b9e21b425c5dfe69a6c134bac8d (diff)
network/x2goserver: Updated for version 20190625_b3ec119.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/x2goserver/x2goserver.SlackBuild')
-rw-r--r--network/x2goserver/x2goserver.SlackBuild33
1 files changed, 13 insertions, 20 deletions
diff --git a/network/x2goserver/x2goserver.SlackBuild b/network/x2goserver/x2goserver.SlackBuild
index 2c68747476e6..ba823975471e 100644
--- a/network/x2goserver/x2goserver.SlackBuild
+++ b/network/x2goserver/x2goserver.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for x2goserver
-# Copyright 2014 Elvio "HelLViS69" Basello <hellvis69@gmail.com>
+# Copyright 2015-2018 Elvio "HelLViS69" Basello <hellvis69@gmail.com>
+# Copyright 2019 Marcus Moeller <mmoeller@faircomputer.ch>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=x2goserver
-VERSION=${VERSION:-4.0.1.19}
+VERSION=${VERSION:-20190625_b3ec119}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -60,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,27 +70,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make
-make install DESTDIR=$PKG
+# man2html hangs on some occasions and, BTW, html docs are not even installed
+sed -i "s|^MAN2HTML_BIN.*|MAN2HTML_BIN = |" */Makefile
-# There is no configure, so we have to move stuff out of /usr/local
-mv $PKG/usr/local/* $PKG/usr/
-rmdir $PKG/usr/local
-
-# Fix lib dir
-mkdir -p $PKG/usr/share/perl5/vendor_perl
-cp $PKG/usr/lib/x2go/*.pm $PKG/usr/share/perl5/vendor_perl
-if [ ! -z "$LIBDIRSUFFIX" ]; then
- mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
-fi
+make PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}/x2go SHAREDIR=/usr/share/x2go
+make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}/x2go SHAREDIR=/usr/share/x2go DESTDIR=$PKG
+# Move man pages in the proper place and compress them
mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Install init script
-mkdir $PKG/etc/rc.d
-cat $CWD/rc.x2goserver > $PKG/etc/rc.d/rc.x2goserver
+install -D -m 0755 $CWD/rc.x2goserver $PKG/etc/rc.d/rc.x2goserver
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true