summaryrefslogtreecommitdiffstats
path: root/source/n/bind/bind.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-11-07 19:57:12 +0000
committer Eric Hameleers <alien@slackware.com>2023-11-07 21:28:19 +0100
commit69753b9a1da83d78dab7943e3fcdb428ee74a254 (patch)
tree9c58cf752080a6715fe80639e22491bbb8be31d2 /source/n/bind/bind.SlackBuild
parent16aecb6aa38eaab548b9aece32c6aa72f59e80b2 (diff)
downloadcurrent-69753b9a1da83d78dab7943e3fcdb428ee74a254.tar.gz
current-69753b9a1da83d78dab7943e3fcdb428ee74a254.tar.xz
Tue Nov 7 19:57:12 UTC 202320231107195712
ap/sudo-1.9.15-x86_64-1.txz: Upgraded. The sudoers plugin has been modified to make it more resilient to ROWHAMMER attacks on authentication and policy matching. The sudoers plugin now constructs the user time stamp file path name using the user-ID instead of the user name. This avoids a potential problem with user names that contain a path separator ('/') being interpreted as part of the path name. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-42465 https://www.cve.org/CVERecord?id=CVE-2023-42456 (* Security fix *) ap/vim-9.0.2092-x86_64-1.txz: Upgraded. l/libuv-1.47.0-x86_64-1.txz: Upgraded. l/xapian-core-1.4.24-x86_64-1.txz: Upgraded. n/bind-9.18.19-x86_64-2.txz: Rebuilt. Don't go automatically chowning files in /var/named, since some users may have special requirements. But in case anyone finds that behavior useful, you may set NAMED_CHOWN=YES in /etc/default/named to turn it back on. Unless anyone has a good objection to it, this change is considered pending for the next BIND upgrades in -stable. Thanks to Mig21. xap/vim-gvim-9.0.2092-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/n/bind/bind.SlackBuild')
-rwxr-xr-xsource/n/bind/bind.SlackBuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/source/n/bind/bind.SlackBuild b/source/n/bind/bind.SlackBuild
index 856c86504..e32294b1f 100755
--- a/source/n/bind/bind.SlackBuild
+++ b/source/n/bind/bind.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021, 2023 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=bind
VERSION=${VERSION:-$(echo ${PKGNAM}-[0-9]*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -163,13 +163,18 @@ fi
# Add sample config files for a simple caching nameserver:
mkdir -p $PKG/var/named/caching-example
-cat $CWD/caching-example/named.conf > $PKG/etc/named.conf.new
-cat $CWD/caching-example/localhost.zone > $PKG/var/named/caching-example/localhost.zone
-cat $CWD/caching-example/named.local > $PKG/var/named/caching-example/named.local
-cat $CWD/caching-example/named.root > $PKG/var/named/caching-example/named.root
+cp -a $CWD/caching-example/named.conf $PKG/etc/named.conf.new
+cp -a $CWD/caching-example/localhost.zone $PKG/var/named/caching-example/localhost.zone
+cp -a $CWD/caching-example/named.local $PKG/var/named/caching-example/named.local
+cp -a $CWD/caching-example/named.root $PKG/var/named/caching-example/named.root
# This name is deprecated, but having it here doesn't hurt in case
# an old configuration file wants it:
-cat $CWD/caching-example/named.root > $PKG/var/named/caching-example/named.ca
+cp -a $CWD/caching-example/named.root $PKG/var/named/caching-example/named.ca
+chown root:root $PKG/etc/named.conf.new
+chmod 644 $PKG/var/named/caching-example/*
+
+# Make sure that everything in /var/named is owned by named:named:
+chown -R named:named $PKG/var/named
mkdir -p $PKG/install
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
@@ -177,4 +182,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$(echo $VERSION | tr - _)-$ARCH-$BUILD.txz
-