summaryrefslogtreecommitdiffstats
path: root/network/corkscrew
diff options
context:
space:
mode:
Diffstat (limited to 'network/corkscrew')
-rw-r--r--network/corkscrew/README13
-rw-r--r--network/corkscrew/corkscrew.SlackBuild16
2 files changed, 19 insertions, 10 deletions
diff --git a/network/corkscrew/README b/network/corkscrew/README
index adc964e457..69959f4767 100644
--- a/network/corkscrew/README
+++ b/network/corkscrew/README
@@ -1,13 +1,12 @@
-Corkscrew is a tool for tunneling SSH through HTTP proxies.
-Setting up Corkscrew with SSH/OpenSSH is very simple. Adding
-the following line to your ~/.ssh/config file will usually do
-the trick (replace proxy.example.com and 8080 with correct values):
+Corkscrew is a tool for tunneling SSH through HTTP proxies. Setting
+up Corkscrew with SSH/OpenSSH is very simple. Adding the following
+line to your ~/.ssh/config file will usually do the trick (replace
+proxy.example.com and 8080 with correct values):
ProxyCommand /usr/bin/corkscrew proxy.example.com 8080 %h %p
-Basic HTTP authentication is also supported, you will need to create a file
-that contains your usename and password
-in the form of:
+Basic HTTP authentication is also supported, you will need to create a
+file that contains your usename and password in the form of:
username:password
diff --git a/network/corkscrew/corkscrew.SlackBuild b/network/corkscrew/corkscrew.SlackBuild
index fccad559bf..61b96cdd70 100644
--- a/network/corkscrew/corkscrew.SlackBuild
+++ b/network/corkscrew/corkscrew.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for corkscrew.
#
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=corkscrew
VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
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}
@@ -98,4 +108,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE