summaryrefslogtreecommitdiffstats
path: root/network/dnscrypt-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'network/dnscrypt-wrapper')
-rw-r--r--network/dnscrypt-wrapper/README4
-rw-r--r--network/dnscrypt-wrapper/dnscrypt-wrapper.SlackBuild16
-rw-r--r--network/dnscrypt-wrapper/dnscrypt-wrapper.info2
3 files changed, 16 insertions, 6 deletions
diff --git a/network/dnscrypt-wrapper/README b/network/dnscrypt-wrapper/README
index b21182469a..076c9951d2 100644
--- a/network/dnscrypt-wrapper/README
+++ b/network/dnscrypt-wrapper/README
@@ -1,5 +1,5 @@
-dnscrypt-wrapper is a server-side DNSCrypt proxy that adds DNSCrypt support to
-any name resolver.
+dnscrypt-wrapper is a server-side DNSCrypt proxy that adds DNSCrypt
+support to any name resolver.
Be sure to read README.Slackware for information on configuring/running
dnscrypt-wrapper as a daemon!
diff --git a/network/dnscrypt-wrapper/dnscrypt-wrapper.SlackBuild b/network/dnscrypt-wrapper/dnscrypt-wrapper.SlackBuild
index 3d22ceec49..2f1a8b277f 100644
--- a/network/dnscrypt-wrapper/dnscrypt-wrapper.SlackBuild
+++ b/network/dnscrypt-wrapper/dnscrypt-wrapper.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for dnscrypt-wrapper
@@ -24,10 +24,13 @@
# Thanks to Larry Hajali for the logrotate configuration
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=dnscrypt-wrapper
VERSION=${VERSION:-0.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +40,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}
@@ -110,4 +120,4 @@ 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
diff --git a/network/dnscrypt-wrapper/dnscrypt-wrapper.info b/network/dnscrypt-wrapper/dnscrypt-wrapper.info
index 4375be0958..64f000800f 100644
--- a/network/dnscrypt-wrapper/dnscrypt-wrapper.info
+++ b/network/dnscrypt-wrapper/dnscrypt-wrapper.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/cofyc/dnscrypt-wrapper/archive/v0.4.2/dnscrypt-wrap
MD5SUM="f384a825eb3ecdbdd960842f3c6e3f85"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libsodium"
+REQUIRES=""
MAINTAINER="T3slider"
EMAIL="t3slider@gmail.com"