summaryrefslogtreecommitdiff
path: root/net-dns/unbound
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
commit290aebdea65a02557706eaeda477fef0437b6a48 (patch)
treef87a939169a508a2e943570501b64cc16b411cda /net-dns/unbound
parent6783ddcd4b73d9ce586a71770caed352bec93b16 (diff)
downloadbaldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip
Adding metadata
Diffstat (limited to 'net-dns/unbound')
-rw-r--r--net-dns/unbound/Manifest4
-rw-r--r--net-dns/unbound/files/unbound-1.10.1-find-ar.patch11
-rw-r--r--net-dns/unbound/files/unbound-1.5.7-trust-anchor-file.patch18
-rw-r--r--net-dns/unbound/files/unbound-1.6.3-pkg-config.patch11
-rw-r--r--net-dns/unbound/files/unbound-anchor.service13
-rw-r--r--net-dns/unbound/files/unbound-r1.confd36
-rw-r--r--net-dns/unbound/files/unbound-r1.initd137
-rw-r--r--net-dns/unbound/files/unbound.service12
-rw-r--r--net-dns/unbound/files/unbound.socket5
-rw-r--r--net-dns/unbound/files/unbound_at.service13
-rw-r--r--net-dns/unbound/metadata.xml46
-rw-r--r--net-dns/unbound/unbound-1.25.0.ebuild214
-rw-r--r--net-dns/unbound/unbound-1.25.1.ebuild214
13 files changed, 0 insertions, 734 deletions
diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest
deleted file mode 100644
index 226da442a1f7..000000000000
--- a/net-dns/unbound/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST unbound-1.25.0.tar.gz 6818581 BLAKE2B 4c22e198c2257c251505f6845c42e67481edce2c5e8dc0c475584ef6b8e85907c322f32bd7ecfcb06243ba36fb3d91c63d8c1edd67dca66d374c6a242206e548 SHA512 5b11cb06d768461dc390da989d412e8724403a9cce36e95f7b401d0b512bc81ee5a68d4cd6504c89de9a11cce69b90f09e01ae72e2ddd05130b7c459691d4f85
-DIST unbound-1.25.0.tar.gz.asc 659 BLAKE2B e1bc87ba89383da4b0e9ea084e4ea974040488a827f3407501df11cd6245c74cbff19f81c9ad6475b3db73b8f34f1a69a6c23e9c17c807bf18eaa23621915905 SHA512 2f56b626d21a69e2d55c122f49c9e329a6a97652b7e59604dd516288a558f24b9edf86762bba98181fb4a09c43820254e3c416e499e7c2cadad00c39c43ff0a8
-DIST unbound-1.25.1.tar.gz 6832247 BLAKE2B da9818a14a540bf2d674f504a38da711cfead20af2c6f987aab74094b441ef31586f28608432d2369b2223b3287290f450218466654c71626e33df74da557f18 SHA512 a536ff1d9b637e4ffa46ab498919ddf089b4498e65c748748c4920a6da52e1f5bacfbba9ac1dc47798d168e2ea64a7ae7ea2a581464d1fcabae241a6e38c8d13
-DIST unbound-1.25.1.tar.gz.asc 659 BLAKE2B c629e2ba167e867c49c4ca420b3801e7380a0f35224d8ba5c2c8226c096b53b16f38615cc202492966865d347526f979bc7a146502e5c592d60fdd76a6dc91c4 SHA512 307ce54a35c47e19dda75154424fe8e35382605cb3541ab2c16f567e28c44cfcace5aa14ca8c18d272647b8ef70cfc75f51c27cb0587bc51bd82d074380825aa
diff --git a/net-dns/unbound/files/unbound-1.10.1-find-ar.patch b/net-dns/unbound/files/unbound-1.10.1-find-ar.patch
deleted file mode 100644
index c840e30f1ea7..000000000000
--- a/net-dns/unbound/files/unbound-1.10.1-find-ar.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/acx_nlnetlabs.m4
-+++ b/acx_nlnetlabs.m4
-@@ -535,7 +535,7 @@ AC_CANONICAL_HOST
- if echo "$host_os" | grep "sunos4" >/dev/null; then
- lt_cv_sys_max_cmd_len=32750;
- fi
--AC_PATH_TOOL(AR, ar, [false])
-+AC_CHECK_TOOL(AR, ar, [false])
- if test $AR = false; then
- AC_MSG_ERROR([Cannot find 'ar', please extend PATH to include it])
- fi
diff --git a/net-dns/unbound/files/unbound-1.5.7-trust-anchor-file.patch b/net-dns/unbound/files/unbound-1.5.7-trust-anchor-file.patch
deleted file mode 100644
index 85879db3cf28..000000000000
--- a/net-dns/unbound/files/unbound-1.5.7-trust-anchor-file.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-To avoid below error messages like
-
- [23109:0] error: Could not open autotrust file for writing, /etc/dnssec/root-anchors.txt: Permission denied
-
-set 'trust-anchor-file' to same value in 'auto-trust-anchor-file'.
-
-diff -ur unbound-1.5.7.orig/doc/example.conf.in unbound-1.5.7/doc/example.conf.in
---- unbound-1.5.7.orig/doc/example.conf.in 2015-12-10 08:59:18.000000000 +0100
-+++ unbound-1.5.7/doc/example.conf.in 2016-01-05 04:08:01.666760015 +0100
-@@ -378,7 +378,7 @@
- # with several entries, one file per entry.
- # Zone file format, with DS and DNSKEY entries.
- # Note this gets out of date, use auto-trust-anchor-file please.
-- # trust-anchor-file: ""
-+ # trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
-
- # Trusted key for validation. DS or DNSKEY. specify the RR on a
- # single line, surrounded by "". TTL is ignored. class is IN default.
diff --git a/net-dns/unbound/files/unbound-1.6.3-pkg-config.patch b/net-dns/unbound/files/unbound-1.6.3-pkg-config.patch
deleted file mode 100644
index 36adac8dc112..000000000000
--- a/net-dns/unbound/files/unbound-1.6.3-pkg-config.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -95,6 +95,8 @@ AC_SUBST(LIBUNBOUND_CURRENT)
- AC_SUBST(LIBUNBOUND_REVISION)
- AC_SUBST(LIBUNBOUND_AGE)
-
-+PKG_PROG_PKG_CONFIG
-+
- CFLAGS="$CFLAGS"
- AC_AIX
- if test "$ac_cv_header_minix_config_h" = "yes"; then
diff --git a/net-dns/unbound/files/unbound-anchor.service b/net-dns/unbound/files/unbound-anchor.service
deleted file mode 100644
index f55cf9db5d1e..000000000000
--- a/net-dns/unbound/files/unbound-anchor.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Update of the root trust anchor for DNSSEC validation
-After=network.target
-Before=nss-lookup.target
-Wants=nss-lookup.target
-Before=unbound.service
-
-[Service]
-Type=oneshot
-ExecStart=/usr/sbin/unbound-anchor
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-dns/unbound/files/unbound-r1.confd b/net-dns/unbound/files/unbound-r1.confd
deleted file mode 100644
index c86c65c64962..000000000000
--- a/net-dns/unbound/files/unbound-r1.confd
+++ /dev/null
@@ -1,36 +0,0 @@
-# /etc/conf.d/unbound
-
-# Configuration file
-#UNBOUND_CONFFILE="/etc/unbound/unbound.conf"
-
-# PID file
-# This is a fallback value which should NOT be changed. If you ever need
-# to change PID file, please change value in configuration file instead!
-#UNBOUND_PIDFILE="/run/unbound.pid"
-
-# You can use this configuration option to pass additional options to the
-# start-stop-daemon, see start-stop-daemon(8) for more details.
-# Per default we wait 1000ms after we have started the service to ensure
-# that the daemon is really up and running.
-#UNBOUND_SSDARGS="--wait 1000"
-
-# The termination timeout (start-stop-daemon parameter "retry") ensures
-# that the service will be terminated within a given time (25 + 5 seconds
-# per default) when you are stopping the service.
-#UNBOUND_TERMTIMEOUT="TERM/25/KILL/5"
-
-# Options to unbound
-# See unbound(8) for more details
-# Notes:
-# * Do not specify another CONFIGFILE but use the variable above to change the location
-#UNBOUND_OPTS=""
-
-# If you want to preserve unbound's cache, set the following variable to
-# a non-zero value. In this case unbound's cache will be dumped to disk
-# before shutdown and loaded right after start.
-# To be able to dump and load cache you have to set up keys (use `unbound-control-setup`)
-# and need to set 'control-enable: yes' in your configuration!
-# WARNING: If you don't know what you are doing you should NOT use this
-# feature. Loading the cache with old or wrong data can result in
-# old or wrong data being returned to clients.
-#UNBOUND_PRESERVE_CACHE=""
diff --git a/net-dns/unbound/files/unbound-r1.initd b/net-dns/unbound/files/unbound-r1.initd
deleted file mode 100644
index 54886d1f47ad..000000000000
--- a/net-dns/unbound/files/unbound-r1.initd
+++ /dev/null
@@ -1,137 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-UNBOUND_BINARY=${UNBOUND_BINARY:-"/usr/sbin/unbound"}
-UNBOUND_CACHEFILE=${UNBOUND_CACHEFILE:-"/var/lib/unbound/${SVCNAME}.cache"}
-UNBOUND_CHECKCONF=${UNBOUND_CHECKCONF:-"/usr/sbin/unbound-checkconf"}
-UNBOUND_CONFFILE=${UNBOUND_CONFFILE:-"/etc/unbound/${SVCNAME}.conf"}
-UNBOUND_CONTROL=${UNBOUND_CONTROL:-"/usr/sbin/unbound-control"}
-UNBOUND_PIDFILE=${UNBOUND_PIDFILE:-"/run/unbound.pid"}
-UNBOUND_SSDARGS=${UNBOUND_SSDARGS:-"--wait 1000"}
-UNBOUND_TERMTIMEOUT=${UNBOUND_TERMTIMEOUT:-"TERM/25/KILL/5"}
-UNBOUND_OPTS=${UNBOUND_OPTS:-""}
-UNBOUND_LOAD_CACHE_TIMEOUT=${UNBOUND_LOAD_CACHE_TIMEOUT:-"30"}
-
-getconfig() {
- local key="$1"
- local value_default="$2"
- local value=
-
- if service_started ; then
- value="$(service_get_value "${key}")"
- fi
-
- if [ -z "${value}" ] && [ -n "${UNBOUND_CONFFILE}" ] && [ -r "${UNBOUND_CONFFILE}" ] ; then
- value=$("${UNBOUND_CHECKCONF}" -o ${key} "${UNBOUND_CONFFILE}")
- fi
-
- if [ -z "${value}" ] ; then
- # Value not explicitly set in the configfile or configfile does not exist
- # or is not readable
- echo "${value_default}"
- else
- echo "${value}"
- fi
-
- return 0
-}
-
-command=${UNBOUND_BINARY}
-command_args="${UNBOUND_OPTS} -c \"${UNBOUND_CONFFILE}\""
-start_stop_daemon_args="${UNBOUND_SSDARGS}"
-pidfile="$(getconfig pidfile /run/unbound.pid)"
-retry="${UNBOUND_TERMTIMEOUT}"
-
-required_files="${UNBOUND_CONFFILE}"
-
-name="unbound daemon"
-extra_commands="configtest"
-extra_started_commands="reload save_cache"
-description="unbound is a Domain Name Server (DNS) that is used to resolve host names to IP address."
-description_configtest="Run syntax tests for configuration files only."
-description_reload="Kills all children and reloads the configuration."
-description_save_cache="Saves the current cache to disk."
-
-depend() {
- use net logger
- provide dns
- after auth-dns
-}
-
-configtest() {
- local _config_status=
-
- ebegin "Checking ${SVCNAME} configuration"
- "${UNBOUND_CHECKCONF}" "${UNBOUND_CONFFILE}" 1>/dev/null 2>&1
- _config_status=$?
-
- if [ ${_config_status} -ne 0 ] ; then
- # Run command again but this time we will show the output
- # Ugly, but ...
- "${UNBOUND_CHECKCONF}" "${UNBOUND_CONFFILE}"
- else
- if [ -n "${UNBOUND_PRESERVE_CACHE}" ] ; then
- local _is_control_enabled=$(getconfig control-enable no)
- if [ "${_is_control_enabled}" != "yes" ] ; then
- eerror "Cannot preserve cache: control-enable is 'no' in the config file!"
- _config_status=2
- fi
- fi
- fi
-
- eend ${_config_status} "failed, please correct errors above"
-}
-
-save_cache() {
- if [ "${RC_CMD}" != "restart" ] ; then
- UNBOUND_PRESERVE_CACHE=1 configtest || return 1
- fi
-
- ebegin "Saving cache to '${UNBOUND_CACHEFILE}'"
- ${UNBOUND_CONTROL} -c "${UNBOUND_CONFFILE}" dump_cache > "${UNBOUND_CACHEFILE}"
- eend $?
-}
-
-start_pre() {
- if [ "${RC_CMD}" != "restart" ] ; then
- configtest || return 1
- fi
-}
-
-start_post() {
- if [ -n "${UNBOUND_PRESERVE_CACHE}" ] ; then
- if [ -s "${UNBOUND_CACHEFILE}" ] ; then
- ebegin "Loading cache from '${UNBOUND_CACHEFILE}'"
- # Loading cache can fail which would block this runscript.
- # Using `timeout` from coreutils will be our safeguard ...
- timeout -k 5 ${UNBOUND_LOAD_CACHE_TIMEOUT} ${UNBOUND_CONTROL} -q -c "${UNBOUND_CONFFILE}" load_cache < "${UNBOUND_CACHEFILE}"
- eend $?
- else
- ewarn "Loading cache from '${UNBOUND_CACHEFILE}' skipped: File does not exists or is empty!"
- fi
- fi
-
- # It is not a fatal error if preserved cache could not be loaded
- return 0
-}
-
-stop_pre() {
- if [ "${RC_CMD}" = "restart" ] ; then
- configtest || return 1
- fi
-
- if [ -n "${UNBOUND_PRESERVE_CACHE}" ] ; then
- save_cache
- fi
-
- # It is not a fatal error if cache cannot be preserved
- return 0
-}
-
-reload() {
- configtest || return 1
- ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --signal HUP --pidfile "${pidfile}"
- eend $?
-}
diff --git a/net-dns/unbound/files/unbound.service b/net-dns/unbound/files/unbound.service
deleted file mode 100644
index 41dd6fabd290..000000000000
--- a/net-dns/unbound/files/unbound.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Unbound recursive Domain Name Server
-After=network.target
-Before=nss-lookup.target
-Wants=nss-lookup.target
-
-[Service]
-ExecStartPre=/usr/sbin/unbound-checkconf
-ExecStart=/usr/sbin/unbound -d
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-dns/unbound/files/unbound.socket b/net-dns/unbound/files/unbound.socket
deleted file mode 100644
index 0628064a4a5e..000000000000
--- a/net-dns/unbound/files/unbound.socket
+++ /dev/null
@@ -1,5 +0,0 @@
-[Socket]
-ListenDatagram=127.0.0.1:1153
-ListenStream=127.0.0.1:1153
-[Install]
-WantedBy=sockets.target
diff --git a/net-dns/unbound/files/unbound_at.service b/net-dns/unbound/files/unbound_at.service
deleted file mode 100644
index 84b34af45446..000000000000
--- a/net-dns/unbound/files/unbound_at.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Unbound recursive Domain Name Server
-After=network.target
-Before=nss-lookup.target
-Wants=nss-lookup.target
-
-[Service]
-Type=simple
-ExecStartPre=/usr/sbin/unbound-checkconf /etc/unbound/%i.conf
-ExecStart=/usr/sbin/unbound -d -c /etc/unbound/%i.conf
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-dns/unbound/metadata.xml b/net-dns/unbound/metadata.xml
deleted file mode 100644
index 101e58b7ddf3..000000000000
--- a/net-dns/unbound/metadata.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>dev@liguros.net</email>
- <name>Development</name>
- </maintainer>
- <maintainer type="person">
- <email>mschiff@gentoo.org</email>
- <name>Marc Schiffbauer</name>
- </maintainer>
- <maintainer type="person">
- <email>whissi@gentoo.org</email>
- <name>Thomas Deutschmann</name>
- </maintainer>
- <longdescription lang="en">
- Unbound is a validating, recursive, and caching DNS resolver.
-
- The C implementation of Unbound is developed and maintained by NLnet
- Labs. It is based on ideas and algorithms taken from a java 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.
- </longdescription>
- <upstream>
- <remote-id type="cpe">cpe:/a:unbound:unbound</remote-id>
- </upstream>
- <use>
- <flag name="dnscrypt">Enable DNSCrypt support</flag>
- <flag name="dnstap">Enable dnstap support</flag>
- <flag name="ecdsa">Enable ECDSA support</flag>
- <flag name="ecs">Enable EDNS client subnet support</flag>
- <flag name="gost">Enable GOST support</flag>
- <flag name="http2">Enable HTTP/2 support for DoH<pkg>net-libs/nghttp2</pkg>
- </flag>
- <flag name="redis">Enable cache db backend which uses <pkg>dev-libs/hiredis</pkg>
- </flag>
- <flag name="tfo">Enable TCP Fast Open client+server</flag>
- </use>
- <origin>baldeagleos-repo</origin>
- <slots>
- <subslots>Reflect ABI of libunbound.so.</subslots>
- </slots>
-</pkgmetadata>
diff --git a/net-dns/unbound/unbound-1.25.0.ebuild b/net-dns/unbound/unbound-1.25.0.ebuild
deleted file mode 100644
index 9232c8efeff9..000000000000
--- a/net-dns/unbound/unbound-1.25.0.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 2021-2026 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd verify-sig
-
-MY_P=${PN}-${PV/_/}
-DESCRIPTION="A validating, recursive and caching DNS resolver"
-HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/"
-SRC_URI="
- https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz
- verify-sig? ( https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz.asc )
-"
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/unbound.net.asc
-
-LICENSE="BSD GPL-2"
-SLOT="0/8" # ABI version of libunbound.so
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86"
-IUSE="debug dnscrypt dnstap +ecdsa ecs gost +http2 python redis selinux static-libs systemd test +tfo threads"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RESTRICT="!test? ( test )"
-
-# Note: expat is needed by executable only but the Makefile is custom
-# and doesn't make it possible to easily install the library without
-# the executables. MULTILIB_USEDEP may be dropped once build system
-# is fixed.
-
-CDEPEND="acct-group/unbound
- acct-user/unbound
- >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
- >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}]
-
- >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}]
- dnscrypt? ( dev-libs/libsodium:=[${MULTILIB_USEDEP}] )
- dnstap? (
- dev-libs/fstrm[${MULTILIB_USEDEP}]
- >=dev-libs/protobuf-c-1.0.2-r1:=[${MULTILIB_USEDEP}]
- )
- ecdsa? (
- dev-libs/openssl:0[-bindist(-)]
- )
- http2? ( net-libs/nghttp2:=[${MULTILIB_USEDEP}] )
- python? ( ${PYTHON_DEPS} )
- redis? ( dev-libs/hiredis:= )
-"
-
-BDEPEND="virtual/pkgconfig"
-
-DEPEND="${CDEPEND}
- python? ( dev-lang/swig )
- test? (
- || (
- net-libs/ldns[examples(-)]
- net-dns/ldns-utils[examples(-)]
- )
- dev-util/splint
- app-text/wdiff
- )
- verify-sig? ( sec-keys/openpgp-keys-unbound )
- systemd? ( sys-apps/systemd )"
-
-RDEPEND="${CDEPEND}
- net-dns/dnssec-root
- selinux? ( sec-policy/selinux-bind )"
-
-# bug #347415
-RDEPEND="${RDEPEND}
- net-dns/dnssec-root"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch
- "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch
- "${FILESDIR}"/${PN}-1.10.1-find-ar.patch
-)
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
- default
-
- eautoreconf
-
- # required for the python part
- multilib_copy_sources
-}
-
-src_configure() {
- [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
- multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
- econf \
- $(multilib_native_use_enable debug) \
- $(multilib_native_use_enable gost) \
- $(multilib_native_use_enable dnscrypt) \
- $(multilib_native_use_enable dnstap) \
- $(multilib_native_use_enable ecdsa) \
- $(multilib_native_use_enable ecs subnet) \
- $(multilib_native_use_enable redis cachedb) \
- $(multilib_native_use_enable static-libs static) \
- $(multilib_native_use_enable systemd) \
- $(multilib_native_use_with python pythonmodule) \
- $(multilib_native_use_with python pyunbound) \
- $(multilib_native_use_with threads pthreads) \
- $(multilib_native_use_with http2 libnghttp2) \
- $(multilib_native_use_enable tfo tfo-client) \
- $(multilib_native_use_enable tfo tfo-server) \
- --disable-flto \
- --disable-rpath \
- --enable-event-api \
- --enable-ipsecmod \
- --with-libevent="${ESYSROOT}"/usr \
- $(multilib_native_usex redis --with-libhiredis="${ESYSROOT}/usr" --without-libhiredis) \
- --with-pidfile="${EPREFIX}"/run/unbound.pid \
- --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
- --with-ssl="${ESYSROOT}"/usr \
- --with-libexpat="${ESYSROOT}"/usr
-
- # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
- # $(use_enable debug lock-checks) \
- # $(use_enable debug alloc-checks) \
- # $(use_enable debug alloc-lite) \
- # $(use_enable debug alloc-nonregional) \
-}
-
-multilib_src_install() {
- emake DESTDIR="${D}" install
- systemd_dounit contrib/unbound.service
- systemd_dounit contrib/unbound.socket
-}
-
-multilib_src_install_all() {
- use python && python_optimize
-
- newinitd "${FILESDIR}"/unbound-r1.initd unbound
- newconfd "${FILESDIR}"/unbound-r1.confd unbound
-
- systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
- systemd_dounit "${FILESDIR}"/unbound-anchor.service
-
- dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
-
- # bug #315519
- dodoc contrib/unbound_munin_
-
- docinto selinux
- dodoc contrib/selinux/*
-
- exeinto /usr/share/${PN}
- doexe contrib/update-anchor.sh
-
- # create space for auto-trust-anchor-file...
- keepdir /etc/unbound/var
- fowners root:unbound /etc/unbound/var
- fperms 0770 /etc/unbound/var
- # ... and point example config to it
- sed -i \
- -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \
- "${ED}/etc/unbound/unbound.conf" \
- || die
-
- # Used to store cache data
- keepdir /var/lib/${PN}
- fowners root:unbound /var/lib/${PN}
- fperms 0770 /var/lib/${PN}
-
- find "${ED}" -name '*.la' -delete || die
- if ! use static-libs ; then
- find "${ED}" -name "*.a" -delete || die
- fi
-}
-
-pkg_postinst() {
- if [[ ! -f "${EROOT}/etc/unbound/unbound_control.key" ]] ; then
- einfo "Trying to create unbound control key ..."
- if ! unbound-control-setup &>/dev/null ; then
- ewarn "Failed to create unbound control key!"
- fi
- fi
-
- if [[ ! -f "${EROOT}/etc/unbound/var/root-anchors.txt" ]] ; then
- einfo ""
- einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation"
- einfo "set 'auto-trust-anchor-file: ${EROOT}/etc/unbound/var/root-anchors.txt' in ${EROOT}/etc/unbound/unbound.conf"
- einfo "and run"
- einfo ""
- einfo " su -s /bin/sh -c '${EROOT}/usr/sbin/unbound-anchor -a ${EROOT}/etc/unbound/var/root-anchors.txt' unbound"
- einfo ""
- einfo "as root to create it initially before starting unbound for the first time after enabling this."
- einfo ""
- fi
-
- # Our user is not available on prefix
- use prefix && return
-
- local _perm_check_testfile=$(mktemp --dry-run "${EPREFIX}"/etc/unbound/var/.pkg_postinst-perm-check.XXXXXXXXX)
- su -s /bin/sh -c "touch ${_perm_check_testfile}" unbound &>/dev/null
- if [ $? -ne 0 ] ; then
- ewarn "WARNING: unbound user cannot write to \"${EPREFIX}/etc/unbound/var\"!"
- ewarn "Run the following commands to restore default permission:"
- ewarn ""
- ewarn " chown root:unbound ${EPREFIX}/etc/unbound/var"
- ewarn " chmod 0770 ${EPREFIX}/etc/unbound/var"
- else
- # Cleanup -- no reason to die here!
- rm -f "${_perm_check_testfile}"
- fi
-}
diff --git a/net-dns/unbound/unbound-1.25.1.ebuild b/net-dns/unbound/unbound-1.25.1.ebuild
deleted file mode 100644
index 9232c8efeff9..000000000000
--- a/net-dns/unbound/unbound-1.25.1.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 2021-2026 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd verify-sig
-
-MY_P=${PN}-${PV/_/}
-DESCRIPTION="A validating, recursive and caching DNS resolver"
-HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/"
-SRC_URI="
- https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz
- verify-sig? ( https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz.asc )
-"
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/unbound.net.asc
-
-LICENSE="BSD GPL-2"
-SLOT="0/8" # ABI version of libunbound.so
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86"
-IUSE="debug dnscrypt dnstap +ecdsa ecs gost +http2 python redis selinux static-libs systemd test +tfo threads"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RESTRICT="!test? ( test )"
-
-# Note: expat is needed by executable only but the Makefile is custom
-# and doesn't make it possible to easily install the library without
-# the executables. MULTILIB_USEDEP may be dropped once build system
-# is fixed.
-
-CDEPEND="acct-group/unbound
- acct-user/unbound
- >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
- >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}]
-
- >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}]
- dnscrypt? ( dev-libs/libsodium:=[${MULTILIB_USEDEP}] )
- dnstap? (
- dev-libs/fstrm[${MULTILIB_USEDEP}]
- >=dev-libs/protobuf-c-1.0.2-r1:=[${MULTILIB_USEDEP}]
- )
- ecdsa? (
- dev-libs/openssl:0[-bindist(-)]
- )
- http2? ( net-libs/nghttp2:=[${MULTILIB_USEDEP}] )
- python? ( ${PYTHON_DEPS} )
- redis? ( dev-libs/hiredis:= )
-"
-
-BDEPEND="virtual/pkgconfig"
-
-DEPEND="${CDEPEND}
- python? ( dev-lang/swig )
- test? (
- || (
- net-libs/ldns[examples(-)]
- net-dns/ldns-utils[examples(-)]
- )
- dev-util/splint
- app-text/wdiff
- )
- verify-sig? ( sec-keys/openpgp-keys-unbound )
- systemd? ( sys-apps/systemd )"
-
-RDEPEND="${CDEPEND}
- net-dns/dnssec-root
- selinux? ( sec-policy/selinux-bind )"
-
-# bug #347415
-RDEPEND="${RDEPEND}
- net-dns/dnssec-root"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch
- "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch
- "${FILESDIR}"/${PN}-1.10.1-find-ar.patch
-)
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
- default
-
- eautoreconf
-
- # required for the python part
- multilib_copy_sources
-}
-
-src_configure() {
- [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
- multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
- econf \
- $(multilib_native_use_enable debug) \
- $(multilib_native_use_enable gost) \
- $(multilib_native_use_enable dnscrypt) \
- $(multilib_native_use_enable dnstap) \
- $(multilib_native_use_enable ecdsa) \
- $(multilib_native_use_enable ecs subnet) \
- $(multilib_native_use_enable redis cachedb) \
- $(multilib_native_use_enable static-libs static) \
- $(multilib_native_use_enable systemd) \
- $(multilib_native_use_with python pythonmodule) \
- $(multilib_native_use_with python pyunbound) \
- $(multilib_native_use_with threads pthreads) \
- $(multilib_native_use_with http2 libnghttp2) \
- $(multilib_native_use_enable tfo tfo-client) \
- $(multilib_native_use_enable tfo tfo-server) \
- --disable-flto \
- --disable-rpath \
- --enable-event-api \
- --enable-ipsecmod \
- --with-libevent="${ESYSROOT}"/usr \
- $(multilib_native_usex redis --with-libhiredis="${ESYSROOT}/usr" --without-libhiredis) \
- --with-pidfile="${EPREFIX}"/run/unbound.pid \
- --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
- --with-ssl="${ESYSROOT}"/usr \
- --with-libexpat="${ESYSROOT}"/usr
-
- # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
- # $(use_enable debug lock-checks) \
- # $(use_enable debug alloc-checks) \
- # $(use_enable debug alloc-lite) \
- # $(use_enable debug alloc-nonregional) \
-}
-
-multilib_src_install() {
- emake DESTDIR="${D}" install
- systemd_dounit contrib/unbound.service
- systemd_dounit contrib/unbound.socket
-}
-
-multilib_src_install_all() {
- use python && python_optimize
-
- newinitd "${FILESDIR}"/unbound-r1.initd unbound
- newconfd "${FILESDIR}"/unbound-r1.confd unbound
-
- systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
- systemd_dounit "${FILESDIR}"/unbound-anchor.service
-
- dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
-
- # bug #315519
- dodoc contrib/unbound_munin_
-
- docinto selinux
- dodoc contrib/selinux/*
-
- exeinto /usr/share/${PN}
- doexe contrib/update-anchor.sh
-
- # create space for auto-trust-anchor-file...
- keepdir /etc/unbound/var
- fowners root:unbound /etc/unbound/var
- fperms 0770 /etc/unbound/var
- # ... and point example config to it
- sed -i \
- -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \
- "${ED}/etc/unbound/unbound.conf" \
- || die
-
- # Used to store cache data
- keepdir /var/lib/${PN}
- fowners root:unbound /var/lib/${PN}
- fperms 0770 /var/lib/${PN}
-
- find "${ED}" -name '*.la' -delete || die
- if ! use static-libs ; then
- find "${ED}" -name "*.a" -delete || die
- fi
-}
-
-pkg_postinst() {
- if [[ ! -f "${EROOT}/etc/unbound/unbound_control.key" ]] ; then
- einfo "Trying to create unbound control key ..."
- if ! unbound-control-setup &>/dev/null ; then
- ewarn "Failed to create unbound control key!"
- fi
- fi
-
- if [[ ! -f "${EROOT}/etc/unbound/var/root-anchors.txt" ]] ; then
- einfo ""
- einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation"
- einfo "set 'auto-trust-anchor-file: ${EROOT}/etc/unbound/var/root-anchors.txt' in ${EROOT}/etc/unbound/unbound.conf"
- einfo "and run"
- einfo ""
- einfo " su -s /bin/sh -c '${EROOT}/usr/sbin/unbound-anchor -a ${EROOT}/etc/unbound/var/root-anchors.txt' unbound"
- einfo ""
- einfo "as root to create it initially before starting unbound for the first time after enabling this."
- einfo ""
- fi
-
- # Our user is not available on prefix
- use prefix && return
-
- local _perm_check_testfile=$(mktemp --dry-run "${EPREFIX}"/etc/unbound/var/.pkg_postinst-perm-check.XXXXXXXXX)
- su -s /bin/sh -c "touch ${_perm_check_testfile}" unbound &>/dev/null
- if [ $? -ne 0 ] ; then
- ewarn "WARNING: unbound user cannot write to \"${EPREFIX}/etc/unbound/var\"!"
- ewarn "Run the following commands to restore default permission:"
- ewarn ""
- ewarn " chown root:unbound ${EPREFIX}/etc/unbound/var"
- ewarn " chmod 0770 ${EPREFIX}/etc/unbound/var"
- else
- # Cleanup -- no reason to die here!
- rm -f "${_perm_check_testfile}"
- fi
-}