summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/nx/README5
-rw-r--r--network/nx/nx.SlackBuild227
-rw-r--r--network/nx/nx.info32
-rw-r--r--network/nx/slack-desc19
4 files changed, 283 insertions, 0 deletions
diff --git a/network/nx/README b/network/nx/README
new file mode 100644
index 0000000000..dcec514598
--- /dev/null
+++ b/network/nx/README
@@ -0,0 +1,5 @@
+nx (Nomachine NX)
+
+NX provides a proxy system for the X Window System.
+
+You will need to run "nxsetup --install" after installtion.
diff --git a/network/nx/nx.SlackBuild b/network/nx/nx.SlackBuild
new file mode 100644
index 0000000000..463f46efed
--- /dev/null
+++ b/network/nx/nx.SlackBuild
@@ -0,0 +1,227 @@
+#!/bin/bash
+
+# $Id: nx.SlackBuild,v 1.8 2009/01/27 20:22:47 root Exp root $
+# Copyright (c) 2008, 2009 Eric Hameleers, Eindhoven, The Netherlands
+# All rights reserved.
+#
+# Permission to use, copy, modify, and distribute this software for
+# any purpose with or without fee is hereby granted, provided that
+# the above copyright notice and this permission notice appear in all
+# copies.
+#
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+
+# 3.4.0-1: 23/sep/2010 by ponce <matteo.bernardini@sns.it>
+# * 3.4.0 updates and adaptations for slackbuilds.org
+
+PRGNAM=nx
+VERSION=${VERSION:-3.4.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+SOURCE[0]="$CWD/nxproxy-${VERSION}-2.tar.gz"
+SOURCE[1]="$CWD/nxcomp-${VERSION}-7.tar.gz"
+SOURCE[2]="$CWD/nxcompext-${VERSION}-1.tar.gz"
+SOURCE[3]="$CWD/nxssh-${VERSION}-2.tar.gz"
+SOURCE[4]="$CWD/nx-X11-${VERSION}-4.tar.gz"
+SOURCE[5]="$CWD/nxwin-${VERSION}-5.tar.gz"
+SOURCE[6]="$CWD/nxauth-${VERSION}-3.tar.gz"
+SOURCE[7]="$CWD/nxagent-${VERSION}-11.tar.gz"
+SOURCE[8]="$CWD/nxesd-${VERSION}-2.tar.gz"
+SOURCE[9]="$CWD/nxcompshad-${VERSION}-3.tar.gz"
+SOURCE[10]="$CWD/nxscripts-${VERSION}-1.tar.gz"
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $TMP/tmp-$PRGNAM $PKG
+mkdir -p $TMP/tmp-$PRGNAM $PKG $OUTPUT
+
+cd $TMP/tmp-$PRGNAM
+for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do tar xvf ${SOURCE[$i]} ; done
+
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+export CXXFLAGS="$SLKCFLAGS"
+export CFLAGS="$SLKCFLAGS"
+
+cat >> nx-X11/config/cf/host.def << EOF
+#ifdef i386Architecture
+#undef DefaultGcc2i386Opt
+#define DefaultGcc2i386Opt $SLKCFLAGS -fno-strict-aliasing
+#endif
+#ifdef MipsArchitecture
+#undef DefaultGcc2MipsOpt
+#define DefaultGcc2MipsOpt $SLKCFLAGS -fno-strict-aliasing
+#endif
+#ifdef s390xArchitecture
+#undef OptimizedCDebugFlags
+#define OptimizedCDebugFlags $SLKCFLAGS -fno-strict-aliasing
+#endif
+#ifdef AMD64Architecture
+#undef DefaultGcc2AMD64Opt
+#define DefaultGcc2AMD64Opt $SLKCFLAGS -fno-strict-aliasing
+#endif
+EOF
+
+sed -i -e "s|CXXFLAGS=.-O.*|CXXFLAGS=\"$CXXFLAGS\"|" */configure
+
+# Build Compression Library and Proxy
+for i in nxcomp nxproxy nxcompshad; do
+ cd $i
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --build=$ARCH-slackware-linux
+ make
+ cd ..
+done
+
+# Build X11 Support Libraries and Agents
+cd nx-X11 ; make World ; cd ..
+
+# Build Extended Compression Library
+cd nxcompext
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --build=$ARCH-slackware-linux
+ make
+cd ..
+
+# Build nxssh
+cd nxssh
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --without-zlib-version-check \
+ --build=$ARCH-slackware-linux
+ make
+cd ..
+
+# Build nxesd
+cd nxesd
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --build=$ARCH-slackware-linux
+ make
+cd ..
+
+# Install all the needed stuff to the package dir
+mkdir -p $PKG/usr/bin
+cat <<EOT > $PKG/usr/bin/nxagent
+#!/bin/sh
+NXCOMMAND=\$(basename \$0)
+export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}/NX/lib:\$LD_LIBRARY_PATH
+exec /usr/lib${LIBDIRSUFFIX}/NX/\$NXCOMMAND \${1+"\$@"}
+EOT
+chmod 0755 $PKG/usr/bin/nxagent
+ln -snf nxagent $PKG/usr/bin/nxproxy
+ln -snf nxagent $PKG/usr/bin/nxssh
+ln -snf nxagent $PKG/usr/bin/nxesd
+
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/NX/lib
+cp -a nx-X11/lib/X11/libX11.so.* \
+ nx-X11/lib/Xext/libXext.so.* \
+ nx-X11/lib/Xrender/libXrender.so.* \
+ $PKG/usr/lib${LIBDIRSUFFIX}/NX/lib
+install -m 0755 nx-X11/programs/Xserver/nxagent \
+ $PKG/usr/lib${LIBDIRSUFFIX}/NX
+
+cp -a nxcomp/libXcomp.so.* $PKG/usr/lib${LIBDIRSUFFIX}/NX/lib
+cp -a nxcompext/libXcompext.so.* $PKG/usr/lib${LIBDIRSUFFIX}/NX/lib
+cp -a nxcompshad/libXcompshad.so.* $PKG/usr/lib${LIBDIRSUFFIX}/NX/lib
+cp -a nxssh/nxssh $PKG/usr/lib${LIBDIRSUFFIX}/NX
+cp -a nxesd/nxesd $PKG/usr/lib${LIBDIRSUFFIX}/NX
+install -m 0755 nxproxy/nxproxy $PKG/usr/lib${LIBDIRSUFFIX}/NX
+
+# Add documentation:
+mkdir -p \
+ $PKG/usr/doc/$PRGNAM-$VERSION/{nx-X11,nxcomp,nxcompext,nxesd,nxproxy,nxssh}
+cd nx-X11
+ cp -a \
+ BUILD CHANGELOG* COPYING ChangeLog.X.org LABEL LICENSE README* RELNOTES \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nx-X11
+cd ../nxcomp
+ cp -a \
+ COPYING LICENSE README* VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nxcomp
+cd ../nxcompext
+ cp -a \
+ CHANGELOG COPYING LICENSE README* VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nxcompext
+cd ../nxesd
+ cp -a \
+ AUTHORS CHANGELOG COPYING COPYRIGHT ChangeLog.ESD.original \
+ LICENSE MAINTAINERS NEWS README TIPS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nxesd
+cd ../nxproxy
+ cp -a \
+ CHANGELOG COPYING LICENSE README* VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nxproxy
+cd ../nxssh
+ cp -a \
+ CHANGELOG* CREDITS ChangeLog.SSH.orginal \
+ LICENCE OVERVIEW README* RFC.nroff TODO WARNING.RNG \
+ $PKG/usr/doc/$PRGNAM-$VERSION/nxssh
+cd ..
+cp -a nxscripts $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc -type f -exec chmod 644 {} \;
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" \
+ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/nx/nx.info b/network/nx/nx.info
new file mode 100644
index 0000000000..485edba36f
--- /dev/null
+++ b/network/nx/nx.info
@@ -0,0 +1,32 @@
+PRGNAM="nx"
+VERSION="3.4.0"
+HOMEPAGE="http://www.nomachine.com"
+DOWNLOAD="\
+ http://64.34.161.181/download/3.4.0/sources/nxproxy-3.4.0-2.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxcomp-3.4.0-7.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxcompext-3.4.0-1.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxssh-3.4.0-2.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nx-X11-3.4.0-4.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxwin-3.4.0-5.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxauth-3.4.0-3.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxagent-3.4.0-11.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxesd-3.4.0-2.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxcompshad-3.4.0-3.tar.gz \
+ http://64.34.161.181/download/3.4.0/sources/nxscripts-3.4.0-1.tar.gz"
+MD5SUM="\
+ 95ce93520d463a3d18cdd5d19c321e85 \
+ cba926f2b855231a8fc3e0dabff52855 \
+ 605a8e2a136f89477f0059a0d2af4582 \
+ 18b81d850223ea84de244f8a9509c4b1 \
+ 38a84d4521a41e5ff988a84181ddcaf5 \
+ 88538694d4a0dce157bec0dd8da9f9d3 \
+ bfb758edd51271b31aa6b902557fa0cc \
+ 1ede9d6a7f2782c18d489ac089c5b885 \
+ 65d55f2a86baa59343432261cabd52ec \
+ 15deba68e12e13b524a723b49e7ec813 \
+ 2cd7bf4256182f376bcda8bd67a6dcb1"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="ponce"
+EMAIL="matteo.bernardini@sns.it"
+APPROVED="rworkman"
diff --git a/network/nx/slack-desc b/network/nx/slack-desc
new file mode 100644
index 0000000000..55865dd1a7
--- /dev/null
+++ b/network/nx/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+nx: nx (Nomachine NX)
+nx:
+nx: NX provides a proxy system for the X Window System.
+nx:
+nx: NX homepage - http://www.nomachine.com/
+nx:
+nx:
+nx:
+nx:
+nx:
+nx: