diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
commit | cf7807d7aea23a99a144afceaba961cfed652b5f (patch) | |
tree | ffd2c781c27e0b7e72152a685a04938a2b7966f0 /net-dns/knot | |
parent | 7c5ebaf83da4c538dd11b56fdd5dfdf39dcbc096 (diff) |
Diffstat (limited to 'net-dns/knot')
-rw-r--r-- | net-dns/knot/Manifest | 8 | ||||
-rw-r--r-- | net-dns/knot/files/knot-1.service | 17 | ||||
-rw-r--r-- | net-dns/knot/files/knot.init | 41 | ||||
-rw-r--r-- | net-dns/knot/knot-3.2.9-r1.ebuild | 126 | ||||
-rw-r--r-- | net-dns/knot/knot-3.4.3-r2.ebuild | 204 | ||||
-rw-r--r-- | net-dns/knot/metadata.xml | 7 |
6 files changed, 1 insertions, 402 deletions
diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest index 7b324a4c16cd..05a12680bff8 100644 --- a/net-dns/knot/Manifest +++ b/net-dns/knot/Manifest @@ -1,12 +1,6 @@ -AUX knot-1.service 337 BLAKE2B a6645b2ab92612f3c6640f4e9601cefe087a519d8a40b222e05dbd44c8b8c5c87a01d500d5ac328fdee1cae3f9dd126448a8b82b979e13a4ff5285fa48b983d5 SHA512 58c4186e57ebd00b86dae34d5d208ed8801c0376da40cccb23b3d4542a7ee04a1003a12a4b89347b76a384b50eae4a61f96164bf22ec987ce05b1c65691659e7 AUX knot-3.init 943 BLAKE2B 068a152efe75d2871d87edf4ff9f52e05e0f0d1ce22fed6bffaf2b5d19d1fbeb7bf706d442b7103aea932fb6eada0c13df935d7c16e43b3906cbf9916c078ff8 SHA512 bc6f35acc9ef9f0555ba59549d9fdb0e6fc2bbb311dd6ce220b0a7afc26835f699fd3ec6c451f250937f5384cddc4c168f172daec9461747e18fc78d8d38c4e8 AUX knot.confd 194 BLAKE2B 9ff11bcd85f98f461a991b757023238bb18258617387e120e7b15902d8e42668e48980ad5dbfd730b07adcae6acf868f6249d5e7d8a6ee15ba5e4df78dd2443d SHA512 ae0da92420c61ba6b68aef33eb9ff993dd3c86d7cac96421511a6278a235790651ac2696582f7be757e6aaceb82d65d34054fe63063ea3bff74bba8227617bbe -AUX knot.init 861 BLAKE2B 30ffe287f4f83058407ceab00b2113dade3b60b38d76c86f156cc31c33cc4f2ec8cf7f22172823755b71385ca18cc1044605b5479c9de05284f911d500b5dc40 SHA512 e5faa96cbee618e9042bdfd0628f06c4bc4d23c7295521771e16f6eae715835a240799e8425317b03b1ea162966defb5d6b6592139cb1d9d61b47a24961ec9b9 AUX knot.tmpfile 58 BLAKE2B a107ca27b8d47253409c319d0e69ab151237844d10840155e6ceeb37b8c63268de52c161f63ca27b6c3ec4092c7759fc46d325d4cd79063caa33ef82e23e119e SHA512 db13a4108ce820032a72aa788e6cf79c6bb0870ec457f454dea9102f07255dd5c1543723436665da92236c093ee97161f72298131f80dff09d5faf6aba24bde8 -DIST knot-3.2.9.tar.xz 1642600 BLAKE2B 2c81b2afa96c6077778c3458b2ddeeb8b47ea99607ba755a904278f9755a32171738418ea442b1e6b4afcebe0db2c86e68845d38f8e78342b8354411d1e34af8 SHA512 baf8da222e38198c85fa62e45e71b29ddac7c90433b811710ace1e0395e6e7b5d63547ce8f3a62792ee11259ec2e36d6ddd8fff999416f9171671444a95086cf -DIST knot-3.4.3.tar.xz 1637080 BLAKE2B d5d96a69b2464d75e4f2d3231339c1dedccc1cd95febc8bd5950f68c89a277d002d09a60e629a74b378bc7f765370aaef05bf41fd497e740be6c0a349c27f731 SHA512 c05a214a9e5564d09257aff44c0f42e9d084d47536197c95dff7aa125a8b53ed99e26c90affaa6833779778cd8d37af9cc473f108ab6acf7230c476b5858c03f DIST knot-3.4.4.tar.xz 1641460 BLAKE2B d477a4a368b0c6d6c1003a52041403d17bab4e3ecb6e532130b633894d4ee88711038b94e1d4cf12406eb281b800d701c00e40414d458b7bdefb1d632a779821 SHA512 bf8e80d430336934083c1f7c304306de78b254fba5d3b9dd8b44065a0f1527cd78b74d498d994822ed2d364b66091ad967d3cd991bde380fbba67ea34a1ee33f -EBUILD knot-3.2.9-r1.ebuild 2555 BLAKE2B 02d1a07d3760efbc94b595f76a0dab1c2d9027ed793199faff2cc2fe38ef6dcd89dc4ccf5bcdfaffcd282ded88c691b8195ffa7151cc3195a7f9eb9ab2312950 SHA512 97bdef94775b6810a9fda091ba9b5041aa233394953ffd05bfa7237b68c5e72b410165bdd1f6d3ddecf5e96456e738d629a1a54bc92e7bae88d80fbb832cc647 -EBUILD knot-3.4.3-r2.ebuild 4401 BLAKE2B f2989d7c9ecfc0e5a9cbebffd2f3c88e484f752f0907563f200b3e0be143bdf454f28fddc205adb6f835f4d73ce32b3b95411cbae66e2b3ac6eb28657e6d0f66 SHA512 0f64660da37cd8fdc6cffd848de88e692373cd842c7400b0c0bb94e4994d1a7668ae87bad74bdf49d455d9066d7561b0dfd47349e908542876279d4f66086ad7 EBUILD knot-3.4.4.ebuild 4102 BLAKE2B 7cc30a08b82136eb55e878670e24099fabbce1ca0d6804fb30a57e634bc6ffbd647004ca2c58bffc2831020ffb3ccac6f4e685a8232c5ff4cc4814981141da8c SHA512 9b8a8de74c7c56da11c999a3564716674d9930eb15b1b1ff850348b5807300a875e9561ca8e1ef97605fc41858cd45d8533da44d21851c56103641f1f9d3bcf1 -MISC metadata.xml 2452 BLAKE2B fc04ac109dd8d20ff3dac313f04891f7933f1111a4f3f04a6103b6b911267b28a68cf7ac38ddbbcca2dba4ace087cd963587718f2faf1cf552c6a5ef56be83a5 SHA512 4036658162e3286fa5d8490f72e9e2a15946e4a379c356f1cabf933e219966ef07d9c417c4638eeb506898e566bf2dfe915771a256c5a9432d868c175a0401b4 +MISC metadata.xml 2238 BLAKE2B 4fb25c18c046e5048d8f2e5106cef5520dc914b6d197d4d3352bd55421d62d60c80cf1104ab93b70691ccb2ba6123e7b739aa60472b7849a5606025ff1e13ff7 SHA512 b699955dcf80ae2d9b7eabd5666a0476fc6ea5e0edae6ff0f83049c258854f37bb5b41d6b83beca177f89ea05a97a6a4628d2ef1effc16421eb2573f332a80c0 diff --git a/net-dns/knot/files/knot-1.service b/net-dns/knot/files/knot-1.service deleted file mode 100644 index 14a34a2b211f..000000000000 --- a/net-dns/knot/files/knot-1.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Knot high-performance DNS Server -After=network.target - -[Service] -ExecStart=/usr/sbin/knotd -ExecReload=/usr/sbin/knotc reload -ExecStop=/usr/sbin/knotc stop -PrivateTmp=true -User=knot -Group=knot -RuntimeDirectory=knot -RuntimeDirectoryMode=750 -AmbientCapabilities=CAP_NET_BIND_SERVICE - -[Install] -WantedBy=multi-user.target diff --git a/net-dns/knot/files/knot.init b/net-dns/knot/files/knot.init deleted file mode 100644 index 8dc460c31cd4..000000000000 --- a/net-dns/knot/files/knot.init +++ /dev/null @@ -1,41 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command=/usr/sbin/knotd -command_args="-d" -pidfile=/var/run/knot/knot.pid -required_files=/etc/knot/knot.conf -extra_started_commands="reload" -description_reload="Reload configuration and changed zones." - -depend() { - need net -} - -start() { - checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/ - - ebegin "Starting knot" - start-stop-daemon --start \ - --pidfile $pidfile --exec $command -- $command_args - eend $? -} - -stop() { - ebegin "Stoping knot" - /usr/sbin/knotc stop >/dev/null 2>&1 - # In case remote control is not working - if [ "$?" != 0 ]; then - if [ -f $pidfile ]; then - start-stop-daemon --stop --pidfile $pidfile - fi - fi - ewend $? -} - -reload() { - ebegin "Reloading knot" - /usr/sbin/knotc reload >/dev/null - eend $? -} diff --git a/net-dns/knot/knot-3.2.9-r1.ebuild b/net-dns/knot/knot-3.2.9-r1.ebuild deleted file mode 100644 index eba5990f6fb6..000000000000 --- a/net-dns/knot/knot-3.2.9-r1.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic systemd - -# subslot: libknot major.libdnssec major.libzscanner major -KNOT_SUBSLOT="13.9.4" - -DESCRIPTION="High-performance authoritative-only DNS server" -HOMEPAGE="https://www.knot-dns.cz/ https://gitlab.nic.cz/knot/knot-dns" -SRC_URI="https://knot-dns.nic.cz/release/${P/_/-}.tar.xz" - -S="${WORKDIR}/${P/_/-}" - -LICENSE="GPL-3+" -SLOT="0/${KNOT_SUBSLOT}" -KEYWORDS="amd64 ~riscv x86" - -KNOT_MODULES=( - "+cookies" - "+dnsproxy" - "dnstap" - "geoip" - "+noudp" - "+onlinesign" - "+queryacl" - "+rrl" - "+stats" - "+synthrecord" - "+whoami" -) -IUSE="doc caps doh +fastparser idn +libidn2 quic systemd +utils xdp ${KNOT_MODULES[@]}" - -RDEPEND=" - acct-group/knot - acct-user/knot - dev-db/lmdb:= - dev-libs/libedit - dev-libs/userspace-rcu:= - dev-python/lmdb:= - net-libs/gnutls:= - caps? ( sys-libs/libcap-ng ) - dnstap? ( - dev-libs/fstrm - dev-libs/protobuf-c:= - ) - doh? ( net-libs/nghttp2:= ) - geoip? ( dev-libs/libmaxminddb:= ) - idn? ( - !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 ) - libidn2? ( net-dns/libidn2:= ) - ) - quic? ( >=net-libs/ngtcp2-0.13.1:=[gnutls] ) - systemd? ( sys-apps/systemd:= ) - xdp? ( - >=dev-libs/libbpf-1.0:= - net-libs/libmnl:= - net-libs/xdp-tools - ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - doc? ( dev-python/sphinx ) -" - -# Used to check cpuset_t in sched.h with NetBSD. -# False positive because linux have sched.h too but with cpu_set_t -QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy ) - -src_configure() { - local u - local my_conf=( - --with-storage="${EPREFIX}/var/lib/${PN}" - --with-rundir="${EPREFIX}/var/run/${PN}" - $(use_enable caps cap_ng) - $(use_enable fastparser) - $(use_enable dnstap) - $(use_enable doc documentation) - $(use_enable quic) - $(use_enable utils utilities) - $(use_enable xdp) - --enable-systemd=$(usex systemd) - $(use_with idn libidn) - $(use_with doh libnghttp2) - ) - - for u in "${KNOT_MODULES[@]#+}"; do - my_conf+=("$(use_with ${u} module-${u})") - done - - if use riscv; then - append-libs -latomic - fi - - econf "${my_conf[@]}" -} - -src_compile() { - default - - use doc && emake -C doc html -} - -src_test() { - emake check -} - -src_install() { - use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) - - default - - rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die - - newinitd "${FILESDIR}/knot.init" knot - if use systemd; then - systemd_newunit "${FILESDIR}/knot-1.service" knot.service - fi - - find "${D}" -name '*.la' -delete || die - - keepdir /var/lib/knot -} diff --git a/net-dns/knot/knot-3.4.3-r2.ebuild b/net-dns/knot/knot-3.4.3-r2.ebuild deleted file mode 100644 index 7802470727a0..000000000000 --- a/net-dns/knot/knot-3.4.3-r2.ebuild +++ /dev/null @@ -1,204 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) - -inherit python-single-r1 flag-o-matic systemd tmpfiles - -# subslot: libknot major.libdnssec major.libzscanner major -KNOT_SUBSLOT="15.9.4" - -DESCRIPTION="High-performance authoritative-only DNS server" -HOMEPAGE="https://www.knot-dns.cz/ https://gitlab.nic.cz/knot/knot-dns" -SRC_URI="https://knot-dns.nic.cz/release/${P/_/-}.tar.xz" - -S="${WORKDIR}/${P/_/-}" - -LICENSE="GPL-3+" -SLOT="0/${KNOT_SUBSLOT}" -KEYWORDS="~amd64 ~riscv ~x86" - -KNOT_MODULES=( - "+authsignal" - "+cookies" - "+dnsproxy" - "dnstap" - "geoip" - "+noudp" - "+onlinesign" - "+queryacl" - "+rrl" - "+stats" - "+synthrecord" - "+whoami" -) - -IUSE="caps +daemon dbus +doc doh +fastparser +idn pkcs11 prometheus python quic systemd test +utils xdp ${KNOT_MODULES[@]}" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - prometheus? ( python ) - python? ( ${PYTHON_REQUIRED_USE} ) -" - -COMMON_DEPEND=" - dev-libs/libedit - dnstap? ( - dev-libs/fstrm - dev-libs/protobuf-c:= - ) - quic? ( net-libs/ngtcp2[gnutls] ) -" -RDEPEND=" - dev-db/lmdb:= - net-libs/gnutls:=[pkcs11?] - daemon? ( - ${COMMON_DEPEND} - acct-group/knot - acct-user/knot - dev-libs/userspace-rcu:= - caps? ( sys-libs/libcap-ng ) - dbus? ( sys-apps/dbus ) - geoip? ( dev-libs/libmaxminddb:= ) - systemd? ( sys-apps/systemd:= ) - ) - utils? ( - ${COMMON_DEPEND} - doh? ( net-libs/nghttp2:= ) - idn? ( net-dns/libidn2:= ) - ) - python? ( ${PYTHON_DEPS} ) - prometheus? ( - $(python_gen_cond_dep ' - dev-python/prometheus-client[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - ') - ) - xdp? ( - >=dev-libs/libbpf-1.0:= - net-libs/xdp-tools - utils? ( net-libs/libmnl:= ) - ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - doc? ( dev-python/sphinx ) - python? ( - ${PYTHON_DEPS} - ) - test? ( - pkcs11? ( dev-libs/softhsm ) - ) -" - -# Used to check cpuset_t in sched.h with NetBSD. -# False positive because linux have sched.h too but with cpu_set_t -QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy ) - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - # https://gitlab.nic.cz/knot/knot-dns/-/issues/946 - cat > tests/contrib/test_atomic.c <<-_EOF_ || die - #include <tap/basic.h> - int main(int argc, char *argv[]) - { - skip_all("not supported"); - return 0; - } - _EOF_ - cp tests/contrib/test_{atomic,spinlock}.c || die - default -} - -src_configure() { - local u - local my_conf=( - --with-storage="${EPREFIX}/var/lib/${PN}" - --with-rundir="${EPREFIX}/var/run/${PN}" - $(use_enable caps cap_ng) - $(use_enable daemon) - $(use_enable fastparser) - $(use_enable dnstap) - $(use_enable doc documentation) - $(use_with doh libnghttp2) - $(use_enable geoip maxminddb) - $(use_with idn libidn) - $(use_enable quic) - $(use_enable systemd) - $(use_enable utils utilities) - $(use_enable xdp) - ) - - # modules (except dnstap forced by use_enable if set with utils) are only used by daemon - if use daemon; then - for u in "${KNOT_MODULES[@]#+}"; do - my_conf+=("$(use_with ${u} module-${u})") - done - else - my_conf+=("--disable-modules") - fi - - if use !daemon; then - my_conf+=("--enable-dbus=no") - elif use dbus; then - my_conf+=("--enable-dbus=libdbus") - elif use !dbus && use !systemd; then - my_conf+=("--enable-dbus=no") - elif use !dbus && use systemd; then - my_conf+=("--enable-dbus=systemd") - fi - - if use riscv; then - append-libs -latomic - fi - - econf "${my_conf[@]}" -} - -src_compile() { - default - - use doc && emake -C doc html -} - -src_install() { - use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) - - if use python; then - python_domodule python/libknot/libknot - newdoc python/libknot/README.md README.python.md - fi - - if use prometheus; then - python_domodule python/knot_exporter/knot_exporter - python_scriptinto /usr/sbin - python_newscript python/knot_exporter/knot_exporter/knot_exporter.py knot-exporter - newdoc python/knot_exporter/README.md README.knot_exporter.md - fi - - default - - if use daemon; then - rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die - - newinitd "${FILESDIR}"/knot-3.init knot - newconfd "${FILESDIR}"/knot.confd knot - - newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf - - use systemd && systemd_newunit distro/common/knot.service knot.service - fi - - find "${D}" -name '*.la' -delete || die - - keepdir /var/lib/knot -} - -pkg_postinst() { - use daemon && tmpfiles_process ${PN}.conf -} diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml index c402c8ad3c89..6a8f6b760ceb 100644 --- a/net-dns/knot/metadata.xml +++ b/net-dns/knot/metadata.xml @@ -33,13 +33,6 @@ Use a zone file parser that is faster, but requires more memory and CPU time to compile </flag> - <flag name="geoip"> - Enable the Geography-based responses module - </flag> - <flag name="libidn2"> - If IDN support is enabled, use <pkg>net-dns/libidn2</pkg> instead - of <pkg>net-dns/libidn</pkg> - </flag> <flag name="noudp"> Enable the module which can send empty truncated responses to UDP queries |