summaryrefslogtreecommitdiff
path: root/net-dns
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-09 03:04:33 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-09 03:04:33 -0500
commita96a971c845e2cd3ffad3b8f63558c6408897f0a (patch)
tree9431452ee7738105e3d34fdaa7a4ac405c646c8b /net-dns
parent897a58deb079b5691d4424cc15517aea6e422808 (diff)
downloadbaldeagleos-repo-a96a971c845e2cd3ffad3b8f63558c6408897f0a.tar.gz
baldeagleos-repo-a96a971c845e2cd3ffad3b8f63558c6408897f0a.tar.xz
baldeagleos-repo-a96a971c845e2cd3ffad3b8f63558c6408897f0a.zip
Adding metadata
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/c-ares/Manifest2
-rw-r--r--net-dns/c-ares/c-ares-1.34.8.ebuild110
-rw-r--r--net-dns/dnsdist/Manifest4
-rw-r--r--net-dns/dnsdist/dnsdist-2.0.5.ebuild182
-rw-r--r--net-dns/dnsdist/dnsdist-2.0.6.ebuild182
5 files changed, 112 insertions, 368 deletions
diff --git a/net-dns/c-ares/Manifest b/net-dns/c-ares/Manifest
index 0897ed5a4965..d7c992871d50 100644
--- a/net-dns/c-ares/Manifest
+++ b/net-dns/c-ares/Manifest
@@ -1,2 +1,4 @@
DIST c-ares-1.34.6.tar.gz 1017864 BLAKE2B 3a348cfaf4c992ba1712be73907599fd9d3e7b6d1b5498fa86259bbd8c9e102d530e89eee0f668b5b0b8164034047c187be7f8d40016d012c9e451dbf56bfbde SHA512 826eecdb40942caf75da982b9ca57fbe7c3e7c23af43a908683c7c1523c46b06ebac68405c26db8bf4c8b0774ca415666866249a3bde663a71c278f4ec7b1827
DIST c-ares-1.34.6.tar.gz.asc 228 BLAKE2B 047ed363c58840914ec6fe6f81fe51ce6aca1293b91cf48c9f476a013f2267cd728a97d600e172ef51267f4ade63c4c4ed381ed5c37c83d541df1d4dc41f0e44 SHA512 864e9bb1703729db1554f68e07432de6e1f364f9bf565e1dc51dfbd4a87ae8751d9e4b1a5c607455457dc2c1054ba687f33365909d8a4888644d99c5e518bbce
+DIST c-ares-1.34.8.tar.gz 1036098 BLAKE2B b5a88811d8ee6a0c06737746a356bc1fc7c13416b11a0af3a2e6cab092d97adebb93234cf73b97a12b06b764f8562272a793961dc3367024c4322d923ac43f9f SHA512 d5997a57fda9b3a3385b1685e6b2f9292c3a1d39bd27579acaabf3d2d33aa5e91bfec5d41c5e51ca6b50dbc1f4346d75e9bfbccf44a494fbd4bc7613b167143c
+DIST c-ares-1.34.8.tar.gz.asc 265 BLAKE2B 5981f7509e6236dc7b3f3c181fbb1f717b880a20ee03730e54ffa51a3660e9b29210699454e4f7f0388ce837826044a6e0a7f722d87ff42954f093ab4514829c SHA512 bef786b9dcf23cdcddf2d07c4aa56564869c44fa34732c49d612184297b48b98d5b591cda13d52060a3b9db396b4348f022222eb13a4283b929ed905c7c5d412
diff --git a/net-dns/c-ares/c-ares-1.34.8.ebuild b/net-dns/c-ares/c-ares-1.34.8.ebuild
new file mode 100644
index 000000000000..45ceaf471ef7
--- /dev/null
+++ b/net-dns/c-ares/c-ares-1.34.8.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Both Daniel and Brad are listed as possible signers on the homepage
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
+inherit edo libtool multilib-minimal verify-sig
+
+DESCRIPTION="C library that resolves names asynchronously"
+HOMEPAGE="https://c-ares.org/"
+SRC_URI="
+ https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
+ verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz.asc )
+"
+
+# ISC for lib/{bitncmp.c,inet_ntop.c,inet_net_pton.c} (bug #912405)
+LICENSE="MIT ISC"
+# Subslot = SONAME of libcares.so.2
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? ( dev-cpp/gtest )
+ verify-sig? ( sec-keys/openpgp-keys-bradhouse )
+"
+
+DOCS=( AUTHORS README.md RELEASE-NOTES.md )
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/ares_build.h
+)
+
+A__QA_CONFIG_IMPL_DECL_SKIP=(
+ # Checking for obsolete headers
+ malloc
+ calloc
+ free
+
+ # Non-existent on Linux
+ closesocket
+ CloseSocket
+ ioctlsocket
+ bitncmp
+ ConvertInterfaceIndexToLuid
+ ConvertInterfaceLuidToNameA
+)
+
+src_prepare() {
+ default
+ elibtoolize
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # warnings are default, but enable -std=c90 which doesn't define
+ # 'bool' which is a type used/assumed in macOS system headers
+ sed -i -e 's/-std=c90/& -Dbool=int/' configure{.ac,} || die
+ # sysconfig integration requires deep framework compatibility
+ # and is not really desired in Prefix
+ sed -i -e 's/__APPLE__/__DISABLED__/' \
+ src/lib/ares_sysconfig_mac.c || die
+ sed -i -e '/elif defined(__APPLE__)/s/__APPLE__/__DISABLED__/' \
+ src/lib/ares_sysconfig.c || die
+ fi
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-symbol-hiding
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ )
+
+ # Needed for running unit tests only
+ # Violates sandbox and tests pass fine without
+ export ares_cv_user_namespace=no
+ export ares_cv_uts_namespace=no
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+ cd "${BUILD_DIR}"/test || die
+
+ # We're skipping the "real" network tests with the filter
+ # see https://github.com/c-ares/c-ares/tree/main/test
+ local network_tests=(
+ # Most live tests have Live in the name
+ *Live*
+ # These don't but are still in ares-test-live.cc => live
+ *GetTCPSock*
+ *TimeoutValue*
+ *GetSock*
+ *GetSock_virtualized*
+ *VerifySocketFunctionCallback*
+ # Seems flaky, even run manually
+ # https://github.com/c-ares/c-ares/commit/9e542a8839f81c990bb0dff14beeaf9aa6bcc18d
+ *MockUDPMaxQueriesTest.GetHostByNameParallelLookups*
+ )
+
+ # The format for disabling test1, test2, and test3 looks like:
+ # -test1:test2:test3
+ edo ./arestest --gtest_filter=-$(echo $(IFS=:; echo "${network_tests[*]}"))
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ find "${ED}" -name "*.la" -delete || die
+}
diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 1ddf2d089c51..6f060b5c7906 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,9 +1,5 @@
-DIST dnsdist-2.0.5.tar.xz 2289448 BLAKE2B e00273f837d24b07c3d424c507fff8fea6f0c579014ad20a24dbd75a86c8c24a9a3d3477b3e044999303b34fa02ffa2e28d22dade967fdc1cca540b91c135015 SHA512 82eb29c378ac05e1a029a8bd04ca4144a9636ac777020c97090ce0bea3ad215cd7a6fde9218ec4bcb8a4d773730f34ba9f476484f42e7fea34e84717a43f9286
-DIST dnsdist-2.0.6.tar.xz 2293488 BLAKE2B 5584784ae29553659e7c6b6001adf0c616fa4107ec77829fe70ef3107fed88b78d45dcc849526e58f1600ad529c0fa086258de422c6ce57497599ee28046697d SHA512 fe8ebb819d73eea8344c56108264f00f1d185a2ffed2a64c5f13997a159bb93b0384fba7c49ee562b3d42f6d091dd34a0e792402e1bec0b47f5988a5dd30c2bd
DIST dnsdist-2.0.7.tar.xz 2294560 BLAKE2B b1b4abfc418c58919b970ca2f670dd0ad2ffb4a8178dace00c0f52289287ae94d5c65e3e26763e14f24d894b842eafeb23aa8ba1e075340f13cd6ecdbcb45925 SHA512 709f8fde8a5e7d40ed7588cd95aa7ae0f65b4b71f964a6c0bd8b3836ca37ee9b4cd4a94d2ed7fdb7368c1337421693050475c0ece13f4efd4158954c3f0e6c60
DIST dnsdist-2.1.0.tar.xz 2369224 BLAKE2B ae4abaea64f4ae0eb2615e649dd7f39997483d2376d063451d13c4089f6218b6d66dc206a5fae7a2245c6cddf392961047386b54bdbcaf90dd922a8c330e1034 SHA512 862d3bc0b01e2222dea63e48756ef5eff3d7f22a5c5dc38412f11f7937eeb5ae754bb1ae402d581ea72be9d9ef95ae381ed8d2d9d6588631a0aa895067135b45
-DIST dnsdist-rust-2.0.5-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116
-DIST dnsdist-rust-2.0.6-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116
DIST dnsdist-rust-2.0.7-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116
DIST dnsdist-rust-2.1.0-crates.tar.xz 3275568 BLAKE2B 1185b4c96fb0ec94e96333fea49b1bfee20384cf6515acc9dc95056ae7a759933cbe885175766c2239f2d86524af0df264a92256f7853a6b16c01e257267ad1b SHA512 10221f627bf6733c03882f3f050c2fa40b5d601c6744672d4f2903d863dfa6378b9582feaaa11cdc10b6ca3900db2805bccd84e3bc69a5623eaa24c5d4569047
DIST dnsdist-rust-9999-630a017b-crates.tar.xz 3275568 BLAKE2B 1185b4c96fb0ec94e96333fea49b1bfee20384cf6515acc9dc95056ae7a759933cbe885175766c2239f2d86524af0df264a92256f7853a6b16c01e257267ad1b SHA512 10221f627bf6733c03882f3f050c2fa40b5d601c6744672d4f2903d863dfa6378b9582feaaa11cdc10b6ca3900db2805bccd84e3bc69a5623eaa24c5d4569047
diff --git a/net-dns/dnsdist/dnsdist-2.0.5.ebuild b/net-dns/dnsdist/dnsdist-2.0.5.ebuild
deleted file mode 100644
index 3e05a2fd6420..000000000000
--- a/net-dns/dnsdist/dnsdist-2.0.5.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-{1,3,4} luajit )
-PYTHON_COMPAT=( python3_{13..14} )
-RUST_MIN_VER="1.85.0"
-RUST_OPTIONAL=1
-
-inherit cargo flag-o-matic lua-single meson python-any-r1 toolchain-funcs
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://www.dnsdist.org/index.html"
-
-if [[ ${PV} == *9999* ]] ; then
- EGIT_REPO_URI="https://github.com/PowerDNS/pdns"
- EGIT_BRANCH="master"
- inherit git-r3
-else
- SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.xz"
- KEYWORDS="amd64 ~x86"
-fi
-
-SRC_URI+="
- yaml? ( https://www.applied-asynchrony.com/distfiles/${PN}-rust-${PV}-crates.tar.xz )
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl systemd test web xdp yaml"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${LUA_REQUIRED_USE}
- dnscrypt? ( ssl )
- doh? ( ssl )
- doh3? ( ssl quic )
- ipcipher? ( ssl )
- quic? ( ssl )"
-
-RDEPEND="acct-group/dnsdist
- acct-user/dnsdist
- bpf? ( dev-libs/libbpf:= )
- cdb? ( dev-db/tinycdb:= )
- sys-libs/libcap
- dev-libs/libedit
- dev-libs/libsodium:=
- dnstap? ( dev-libs/fstrm )
- doh? ( net-libs/nghttp2:= )
- doh3? ( net-libs/quiche:= )
- lmdb? ( dev-db/lmdb:= )
- quic? ( net-libs/quiche )
- regex? ( dev-libs/re2:= )
- snmp? ( net-analyzer/net-snmp:= )
- ssl? ( dev-libs/openssl:= )
- systemd? ( sys-apps/systemd:0= )
- xdp? ( net-libs/xdp-tools )
- ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}
- dev-libs/boost:=
-"
-BDEPEND="$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
- virtual/pkgconfig
- yaml? ( ${RUST_DEPEND} )
-"
-
-# special requirements for live
-if [[ ${PV} == *9999* ]] ; then
- BDEPEND+=" dev-util/ragel"
- S="${S}/pdns/dnsdistdist"
-fi
-
-PATCHES=(
- "${FILESDIR}"/2.0.2-roundrobin-fast-path.patch
- "${FILESDIR}"/2.0.2-speed-up-cache-hits.patch
-)
-
-pkg_setup() {
- lua-single_pkg_setup
- python-any-r1_pkg_setup
- use yaml && rust_pkg_setup
-}
-
-python_check_deps() {
- python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
-}
-
-# git-r3 overrides automatic SRC_URI unpacking
-src_unpack() {
- default
-
- if [[ ${PV} == *9999* ]] ; then
- git-r3_src_unpack
- fi
-}
-
-src_prepare() {
- default
-
- # clean up duplicate file
- rm -f README.md
-}
-
-src_configure() {
- # bug #822855
- append-lfs-flags
-
- # There is currently no reliable way to handle mixed C++/Rust + LTO
- # correctly: https://bugs.gentoo.org/963128
- if use yaml && tc-is-lto ; then
- ewarn "Disabling LTO because of mixed C++/Rust toolchains."
- filter-lto
- fi
-
- # some things can only be enabled/disabled by defines
- ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
- ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
-
- local emesonargs=(
- --sysconfdir="${EPREFIX}/etc/dnsdist"
- # always use libsodium
- -Dlibsodium=enabled
- -Dlua=${ELUA}
- # never try to build man pages (virtualenv)
- -Dman-pages=false
- # never use gnutls (openssl only)
- -Dtls-gnutls=disabled
- $(meson_feature bpf ebpf)
- $(meson_feature cdb)
- $(meson_feature dnscrypt)
- $(meson_feature dnstap)
- $(meson_feature doh dns-over-https)
- $(meson_feature doh nghttp2)
- $(meson_feature doh3 dns-over-http3)
- $(meson_feature ipcipher)
- $(meson_feature lmdb)
- $(meson_feature quic dns-over-quic)
- $(meson_feature regex re2)
- $(meson_feature snmp)
- $(meson_feature ssl libcrypto)
- $(meson_feature ssl tls-libssl)
- $(meson_feature ssl dns-over-tls)
- $(meson_feature systemd systemd-service)
- $(meson_use test unit-tests)
- $(meson_feature xdp xsk)
- $(meson_feature yaml)
- )
-
- meson_src_configure
-}
-
-# explicitly implement src_compile/test to override the
-# otherwise automagic cargo_src_compile/test phases
-
-src_compile() {
- cargo_gen_config
- cargo_env meson_src_compile
-}
-
-src_test() {
- meson_src_test
-}
-
-src_install() {
- meson_src_install
-
- insinto /etc/dnsdist
- doins "${FILESDIR}"/dnsdist.conf.example
-
- newconfd "${FILESDIR}"/dnsdist.confd ${PN}
- newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-
-pkg_postinst() {
- elog "dnsdist provides multiple instances support. You can create more instances"
- elog "by symlinking the dnsdist init script to another name."
- elog
- elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
- elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
-}
diff --git a/net-dns/dnsdist/dnsdist-2.0.6.ebuild b/net-dns/dnsdist/dnsdist-2.0.6.ebuild
deleted file mode 100644
index e213b788168d..000000000000
--- a/net-dns/dnsdist/dnsdist-2.0.6.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-{1,3,4} luajit )
-PYTHON_COMPAT=( python3_{13..14} )
-RUST_MIN_VER="1.85.0"
-RUST_OPTIONAL=1
-
-inherit cargo flag-o-matic lua-single meson python-any-r1 toolchain-funcs
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://www.dnsdist.org/index.html"
-
-if [[ ${PV} == *9999* ]] ; then
- EGIT_REPO_URI="https://github.com/PowerDNS/pdns"
- EGIT_BRANCH="master"
- inherit git-r3
-else
- SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.xz"
- KEYWORDS="~amd64 ~x86"
-fi
-
-SRC_URI+="
- yaml? ( https://www.applied-asynchrony.com/distfiles/${PN}-rust-${PV}-crates.tar.xz )
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl systemd test web xdp yaml"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${LUA_REQUIRED_USE}
- dnscrypt? ( ssl )
- doh? ( ssl )
- doh3? ( ssl quic )
- ipcipher? ( ssl )
- quic? ( ssl )"
-
-RDEPEND="acct-group/dnsdist
- acct-user/dnsdist
- bpf? ( dev-libs/libbpf:= )
- cdb? ( dev-db/tinycdb:= )
- sys-libs/libcap
- dev-libs/libedit
- dev-libs/libsodium:=
- dnstap? ( dev-libs/fstrm )
- doh? ( net-libs/nghttp2:= )
- doh3? ( net-libs/quiche:= )
- lmdb? ( dev-db/lmdb:= )
- quic? ( net-libs/quiche )
- regex? ( dev-libs/re2:= )
- snmp? ( net-analyzer/net-snmp:= )
- ssl? ( dev-libs/openssl:= )
- systemd? ( sys-apps/systemd:0= )
- xdp? ( net-libs/xdp-tools )
- ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}
- dev-libs/boost:=
-"
-BDEPEND="$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
- virtual/pkgconfig
- yaml? ( ${RUST_DEPEND} )
-"
-
-# special requirements for live
-if [[ ${PV} == *9999* ]] ; then
- BDEPEND+=" dev-util/ragel"
- S="${S}/pdns/dnsdistdist"
-fi
-
-PATCHES=(
- "${FILESDIR}"/2.0.2-roundrobin-fast-path.patch
- "${FILESDIR}"/2.0.2-speed-up-cache-hits.patch
-)
-
-pkg_setup() {
- lua-single_pkg_setup
- python-any-r1_pkg_setup
- use yaml && rust_pkg_setup
-}
-
-python_check_deps() {
- python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
-}
-
-# git-r3 overrides automatic SRC_URI unpacking
-src_unpack() {
- default
-
- if [[ ${PV} == *9999* ]] ; then
- git-r3_src_unpack
- fi
-}
-
-src_prepare() {
- default
-
- # clean up duplicate file
- rm -f README.md
-}
-
-src_configure() {
- # bug #822855
- append-lfs-flags
-
- # There is currently no reliable way to handle mixed C++/Rust + LTO
- # correctly: https://bugs.gentoo.org/963128
- if use yaml && tc-is-lto ; then
- ewarn "Disabling LTO because of mixed C++/Rust toolchains."
- filter-lto
- fi
-
- # some things can only be enabled/disabled by defines
- ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
- ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
-
- local emesonargs=(
- --sysconfdir="${EPREFIX}/etc/dnsdist"
- # always use libsodium
- -Dlibsodium=enabled
- -Dlua=${ELUA}
- # never try to build man pages (virtualenv)
- -Dman-pages=false
- # never use gnutls (openssl only)
- -Dtls-gnutls=disabled
- $(meson_feature bpf ebpf)
- $(meson_feature cdb)
- $(meson_feature dnscrypt)
- $(meson_feature dnstap)
- $(meson_feature doh dns-over-https)
- $(meson_feature doh nghttp2)
- $(meson_feature doh3 dns-over-http3)
- $(meson_feature ipcipher)
- $(meson_feature lmdb)
- $(meson_feature quic dns-over-quic)
- $(meson_feature regex re2)
- $(meson_feature snmp)
- $(meson_feature ssl libcrypto)
- $(meson_feature ssl tls-libssl)
- $(meson_feature ssl dns-over-tls)
- $(meson_feature systemd systemd-service)
- $(meson_use test unit-tests)
- $(meson_feature xdp xsk)
- $(meson_feature yaml)
- )
-
- meson_src_configure
-}
-
-# explicitly implement src_compile/test to override the
-# otherwise automagic cargo_src_compile/test phases
-
-src_compile() {
- cargo_gen_config
- cargo_env meson_src_compile
-}
-
-src_test() {
- meson_src_test
-}
-
-src_install() {
- meson_src_install
-
- insinto /etc/dnsdist
- doins "${FILESDIR}"/dnsdist.conf.example
-
- newconfd "${FILESDIR}"/dnsdist.confd ${PN}
- newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-
-pkg_postinst() {
- elog "dnsdist provides multiple instances support. You can create more instances"
- elog "by symlinking the dnsdist init script to another name."
- elog
- elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
- elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
-}