summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-07-18 20:42:47 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-07-18 20:53:02 +0300
commit6e8faaad077caf9048e2c5a132ddade0b0b316aa (patch)
treef9b2b4ab84688e2dbd17d9152d8363a27b88f224 /net-dns
parentsys-apps/file: fix seccomp build failure with musl (diff)
downloadgentoo-6e8faaad077caf9048e2c5a132ddade0b0b316aa.tar.gz
gentoo-6e8faaad077caf9048e2c5a132ddade0b0b316aa.tar.bz2
gentoo-6e8faaad077caf9048e2c5a132ddade0b0b316aa.zip
net-dns/bind: create /dev/urandom again
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/bind/bind-9.16.15-r2.ebuild (renamed from net-dns/bind/bind-9.16.15-r1.ebuild)5
-rw-r--r--net-dns/bind/files/named.init-r14 (renamed from net-dns/bind/files/named.init-r13)2
2 files changed, 5 insertions, 2 deletions
diff --git a/net-dns/bind/bind-9.16.15-r1.ebuild b/net-dns/bind/bind-9.16.15-r2.ebuild
index 35e114e47df0..9beac1bb8860 100644
--- a/net-dns/bind/bind-9.16.15-r1.ebuild
+++ b/net-dns/bind/bind-9.16.15-r2.ebuild
@@ -222,7 +222,7 @@ src_install() {
insinto /var/bind/pri
newins "${FILESDIR}"/localhost.zone-r3 localhost.zone
- newinitd "${FILESDIR}"/named.init-r13 named
+ newinitd "${FILESDIR}"/named.init-r14 named
newconfd "${FILESDIR}"/named.confd-r7 named
newenvd "${FILESDIR}"/10bind.env 10bind
@@ -355,6 +355,9 @@ pkg_config() {
mknod ${CHROOT}/dev/zero c 1 5 || die
chmod 0666 ${CHROOT}/dev/zero || die
+ mknod ${CHROOT}/dev/urandom c 1 9 || die
+ chmod 0666 ${CHROOT}/dev/urandom || die
+
if [ "${CHROOT_NOMOUNT:-0}" -ne 0 ]; then
cp -a /etc/bind ${CHROOT}/etc/ || die
cp -a /var/bind ${CHROOT}/var/ || die
diff --git a/net-dns/bind/files/named.init-r13 b/net-dns/bind/files/named.init-r14
index 4240a09176b8..ff6ab216abc1 100644
--- a/net-dns/bind/files/named.init-r13
+++ b/net-dns/bind/files/named.init-r14
@@ -77,7 +77,7 @@ check_chroot() {
[ ! -d "${CHROOT}/etc/bind" ] || [ ! -d "${CHROOT}/var/bind" ] && return 1
[ ! -d "${CHROOT}/var/log/named" ] && return 1
[ ! -c "${CHROOT}/dev/null" ] || [ ! -c "${CHROOT}/dev/zero" ] && return 1
- [ ! -c "${CHROOT}/dev/random" ] && [ ! -c "${CHROOT}/dev/urandom" ] && return 1
+ [ ! -c "${CHROOT}/dev/urandom" ] && return 1
[ "${CHROOT_GEOIP:-0}" -eq 1 ] && [ ! -d "${CHROOT}/usr/share/GeoIP" ] && return 1
if [ ${OPENSSL_LIBGOST:-0} -eq 1 ]; then
if [ -d "/usr/lib64" ]; then