aboutsummaryrefslogtreecommitdiff
path: root/network/unbound/unbound.SlackBuild
diff options
context:
space:
mode:
authorBadchay <badchay@protonmail.com>2022-08-31 03:14:49 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-03 17:58:41 +0700
commit3a4f6aafbfb5ac842d45f753803bd423c62b2b5d (patch)
treeded322d36cfb25dc84e2074fc27f03e15551699d /network/unbound/unbound.SlackBuild
parent5572cfe17669eed16a534edc03caeef5f250302a (diff)
network/unbound: Updated for version 1.16.2. New maintainer.
Old maintainer is AWOL. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/unbound/unbound.SlackBuild')
-rw-r--r--network/unbound/unbound.SlackBuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/network/unbound/unbound.SlackBuild b/network/unbound/unbound.SlackBuild
index ef9c2dbd3202b..6e7cf095a9068 100644
--- a/network/unbound/unbound.SlackBuild
+++ b/network/unbound/unbound.SlackBuild
@@ -1,7 +1,9 @@
#!/bin/bash
-# Slackware build script for unbound
+# Slackware build script for Unbound
+# Copyright 2022 Badchay <badchay@protonmail.com>
+# All rights reserved.
# Copyright 2020 Gerardo Zamudio <gerardo.zamudio@linux.com> Mexico City, Mexico
# All rights reserved.
#
@@ -25,8 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=unbound
-VERSION=${VERSION:-1.13.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.16.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -96,12 +98,6 @@ 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 \
@@ -113,14 +109,17 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-libevent \
--with-ssl \
+ --enable-dnscrypt \
+ --disable-static \
--with-username=$UB_USER \
--with-pidfile=/var/run/unbound/unbound.pid \
--build=$ARCH-slackware-linux \
- $DNSCRYPT
make
make install DESTDIR=$PKG
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libunbound.la
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -128,19 +127,21 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/CREDITS doc/FEATURES doc/LICENSE doc/README* $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -a doc/README* doc/FEATURES doc/CREDITS doc/TODO $PKG/usr/doc/$PRGNAM-$VERSION
+
+# Shorten the Changelog and restore its timestamp
+head -n 1000 doc/Changelog > $PKG/usr/doc/$PRGNAM-$VERSION/Changelog
+touch -r doc/Changelog $PKG/usr/doc/$PRGNAM-$VERSION/Changelog
mkdir -p $PKG/var/run/unbound
chown $USER:$GROUP $PKG/var/run/unbound/
mv $PKG/etc/unbound/unbound.conf $PKG/etc/unbound/unbound.conf.new
install -m 0644 -D $CWD/rc.unbound $PKG/etc/rc.d/rc.unbound.new
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE