summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Zamudio <gerardo.zamudio@linux.com>2017-06-19 08:59:44 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:33:05 +0700
commit9f315c18f9849f37ac0dc404384d6df0447fa763 (patch)
treede80345ba31a5f6b09d2903ada0b173b5a7365a9
parent452370524dac6bafd6032fda2d475cde8d844022 (diff)
downloadslackbuilds-9f315c18f9849f37ac0dc404384d6df0447fa763.tar.gz
network/unbound: Updated for version 1.6.3
-rw-r--r--network/unbound/README13
-rw-r--r--network/unbound/unbound.SlackBuild23
-rw-r--r--network/unbound/unbound.info6
3 files changed, 31 insertions, 11 deletions
diff --git a/network/unbound/README b/network/unbound/README
index cf1304b520..96200ae268 100644
--- a/network/unbound/README
+++ b/network/unbound/README
@@ -6,3 +6,16 @@ prototype developed by Verisign labs, Nominet, Kirei and ep.net.
Unbound is designed as a set of modular components, so that also DNSSEC
(secure DNS) validation and stub-resolvers (that do not run as a server,
but are linked into an application) are easily possible.
+
+A user and group are recommended to run Unbound. The following should
+not conflict with anything else on SlackBuilds:
+
+ groupadd -g 304 unbound
+ useradd -r -u 304 -g unbound -d /etc/unbound/ -s /sbin/nologin -c \
+ 'Unbound DNS resolver' unbound
+
+Optional DNSCrypt support is provided. To enable:
+
+ DNSCRYPT=yes ./unbound.SlackBuild
+
+This will require libsodium which is available at SlackBuilds
diff --git a/network/unbound/unbound.SlackBuild b/network/unbound/unbound.SlackBuild
index 60eb1bcad0..a841d41dbf 100644
--- a/network/unbound/unbound.SlackBuild
+++ b/network/unbound/unbound.SlackBuild
@@ -54,20 +54,20 @@ else
LIBDIRSUFFIX=""
fi
-USER=${USER:-unbound}
-GROUP=${GROUP:-unbound}
+UB_USER=${UB_USER:-unbound}
+UB_GROUP=${UB_GROUP:-unbound}
# Check the system user and group for unbound:
-if ! grep -q ^"$GROUP": /etc/group ; then
+if ! grep -q ^"$UB_GROUP": /etc/group ; then
echo " You will need a dedicated group to run unbound"
- echo " # groupadd -g 304 $GROUP"
+ echo " # groupadd -g 304 $UB_GROUP"
echo " should do the job."
exit 1
fi
-if ! grep -q ^"$USER": /etc/passwd ; then
+if ! grep -q ^"$UB_USER": /etc/passwd ; then
echo " You will need a dedicated user to run unbound, something like"
- echo " # useradd -r -u 304 -g $GROUP -d /etc/unbound/ -s /sbin/nologin -c 'Unbound DNS resolver' $USER"
+ echo " # useradd -r -u 304 -g $UB_GROUP -d /etc/unbound/ -s /sbin/nologin -c 'Unbound DNS resolver' $UB_USER"
exit 1
fi
@@ -86,6 +86,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+if [ "${DNSCRYPT:-no}" == "yes" ]; then
+ DNSCRYPT="--enable-dnscrypt"
+else
+ DNSCRYPT=""
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -97,9 +103,10 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-libevent \
--with-ssl \
- --with-username=$USER \
+ --with-username=$UB_USER \
--with-pidfile=/var/run/unbound/unbound.pid \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ $DNSCRYPT
make
make install DESTDIR=$PKG
diff --git a/network/unbound/unbound.info b/network/unbound/unbound.info
index ff8677ddce..0c0c0085d9 100644
--- a/network/unbound/unbound.info
+++ b/network/unbound/unbound.info
@@ -1,8 +1,8 @@
PRGNAM="unbound"
-VERSION="1.5.10"
+VERSION="1.6.3"
HOMEPAGE="https://unbound.net"
-DOWNLOAD="https://unbound.net/downloads/unbound-1.5.10.tar.gz"
-MD5SUM="0a3a236811f1ab5c1dc31974fa74e047"
+DOWNLOAD="https://unbound.net/downloads/unbound-1.6.3.tar.gz"
+MD5SUM="d964d04c8d2b25f3271ac60fc630b654"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="ldns"