summaryrefslogtreecommitdiff
path: root/network/freenx/freenx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/freenx/freenx.SlackBuild')
-rw-r--r--network/freenx/freenx.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/network/freenx/freenx.SlackBuild b/network/freenx/freenx.SlackBuild
index 99d62a49ba..b337b2d6a6 100644
--- a/network/freenx/freenx.SlackBuild
+++ b/network/freenx/freenx.SlackBuild
@@ -21,12 +21,14 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-# 24/sep/2010 by ponce <matteo.bernardini@sns.it>
+# 24/sep/2010 by ponce <matteo.bernardini@gmail.com>
# * ported to SBo.
+# 22/feb/2011 by ponce <matteo.bernardini@gmail.com>
+# * setup server with nomachine key by default.
PRGNAM=freenx
VERSION=${VERSION:-0.7.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -57,7 +59,7 @@ else
fi
DOCS="AUTHORS COPYING ChangeLog CONTRIB nxcheckload.sample nxacl.sample \
- $CWD/nomachine.id_dsa.key"
+ $CWD/config/nomachine.id_dsa.key"
bailout() {
printf "\n\tYou must have an \"nx\" user and group to run this script.\n"
@@ -73,6 +75,9 @@ fi
set -e
+export CXXFLAGS="$SLKCFLAGS"
+export CFLAGS="$SLKCFLAGS"
+
mkdir -p $TMP/tmp-$PRGNAM $PKG $OUTPUT
rm -rf $TMP/tmp-$PRGNAM/* $PKG/*
@@ -116,7 +121,7 @@ cp -a $PKG/etc/nxserver/node.conf.{sample,new}
install -m 0755 init.d/freenx-server $PKG/etc/rc.d/rc.freenx.new
# Add a logrotate script:
-install -m 644 $CWD/freenx.logrotate $PKG/etc/logrotate.d/freenx-server.new
+install -m 644 $CWD/config/freenx.logrotate $PKG/etc/logrotate.d/freenx-server.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true