summaryrefslogtreecommitdiffstats
path: root/network/hamachi
diff options
context:
space:
mode:
Diffstat (limited to 'network/hamachi')
-rw-r--r--network/hamachi/README39
-rw-r--r--network/hamachi/hamachi.SlackBuild18
2 files changed, 35 insertions, 22 deletions
diff --git a/network/hamachi/README b/network/hamachi/README
index cc32ec2016..60bf132bce 100644
--- a/network/hamachi/README
+++ b/network/hamachi/README
@@ -1,15 +1,17 @@
-LogMeIn Hamachi2 is a hosted VPN service that securely connects devices and
-networks, extending LAN-like network connectivity to mobile users,
-distributed teams and business applications. You can easily create secure
-virtual networks on demand, across public and private networks.
+LogMeIn Hamachi2 is a hosted VPN service that securely connects
+devices and networks, extending LAN-like network connectivity to
+mobile users, distributed teams and business applications. You can
+easily create secure virtual networks on demand, across public and
+private networks.
Linux beta binary blob from https://secure.logmein.com/US/labs/
-This requires the "tun" driver to be built into the kernel or available as
-a module- not a problem for Slackware (indeed, most) kernels.
+This requires the "tun" driver to be built into the kernel or
+available as a module- not a problem for Slackware (indeed, most)
+kernels.
-Provided is a sample rc.d script, /etc/rc.d/rc.d/rc.hamachi, to start the
-Hamachi2 daemon. To run it on boot, make it executable with
+Provided is a sample rc.d script, /etc/rc.d/rc.d/rc.hamachi, to start
+the Hamachi2 daemon. To run it on boot, make it executable with
chmod +x /etc/rc.d/rc.hamachi
@@ -19,12 +21,12 @@ and add the following to /etc/rc.d/rc.local:
. /etc/rc.d/rc.hamachi start
fi
-Hamachi2 writes its configuration information to /var/lib/logmein-hamachi.
-To modify the server configuration, add your parameters to
-/var/lib/logmein-hamachi/h2-engine-override.cfg and restart the daemon with
-/etc/rc.d/rc.hamachi restart. Parameters you can change (in fact, the
-daemon's current configuration) are listed in h2-engine.cfg in this
-directory.
+Hamachi2 writes its configuration information to
+/var/lib/logmein-hamachi. To modify the server configuration, add
+your parameters to /var/lib/logmein-hamachi/h2-engine-override.cfg and
+restart the daemon with /etc/rc.d/rc.hamachi restart. Parameters you
+can change (in fact, the daemon's current configuration) are listed in
+h2-engine.cfg in this directory.
Example /var/lib/logmein-hamachi/h2-engine-override.cfg:
@@ -35,10 +37,11 @@ Example /var/lib/logmein-hamachi/h2-engine-override.cfg:
Sock.UdpAddr 192.168.1.33
Sock.UdpPort 51232
-This config allows the user vike to use the hamachi command for controlling
-the vpn. It also disables UPnP for negotiation of the hamachi listen socket
-and forces it to the address and port listed. This is useful when you are
-willing to do a port forward yourself, because UPnP can be unreliable.
+This config allows the user vike to use the hamachi command for
+controlling the vpn. It also disables UPnP for negotiation of
+the hamachi listen socket and forces it to the address and port
+listed. This is useful when you are willing to do a port forward
+yourself, because UPnP can be unreliable.
For more information run the hamachi command without parameters and see
/usr/doc/hamachi-<version>/README.
diff --git a/network/hamachi/hamachi.SlackBuild b/network/hamachi/hamachi.SlackBuild
index b65be724e4..31604ae221 100644
--- a/network/hamachi/hamachi.SlackBuild
+++ b/network/hamachi/hamachi.SlackBuild
@@ -1,24 +1,34 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for hamachi
# Written by Adam Swift vikepack@omnitude.net
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=hamachi
SRCPKGNAM=logmein-$PRGNAM
VERSION=${VERSION:-2.0.1.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -61,5 +71,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE