[gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/files/, net-dns/getdns/
commit: cc25cdb9b5d8c035c062a0e9a3e31c1047c158a7 Author: Sam James gentoo org> AuthorDate: Wed Jan 4 04:29:15 2023 + Commit: Sam James gentoo org> CommitDate: Wed Jan 4 04:32:01 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc25cdb9 net-dns/getdns: fix configure w/ clang 16 Signed-off-by: Sam James gentoo.org> net-dns/getdns/files/getdns-1.7.2-clang16.patch| 55 ++ ...{getdns-1.7.2.ebuild => getdns-1.7.2-r1.ebuild} | 3 +- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/net-dns/getdns/files/getdns-1.7.2-clang16.patch b/net-dns/getdns/files/getdns-1.7.2-clang16.patch new file mode 100644 index ..4b6b58f285a0 --- /dev/null +++ b/net-dns/getdns/files/getdns-1.7.2-clang16.patch @@ -0,0 +1,55 @@ +https://github.com/getdnsapi/getdns/commit/9c076ca34b9569eb60861da9a99f895a49d5a7b4 + +From 9c076ca34b9569eb60861da9a99f895a49d5a7b4 Mon Sep 17 00:00:00 2001 +From: Willem Toorop +Date: Mon, 22 Aug 2022 10:40:35 +0200 +Subject: [PATCH] Issue #526 Some gldns files need stdlib + +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -262,6 +262,7 @@ check_include_file(inttypes.h HAVE_INTTYPES_H) + check_include_file(limits.h HAVE_LIMITS_H) + check_include_file(sys/limits.h HAVE_SYS_LIMITS_H) + check_include_file(stdarg.h HAVE_STDARG_H) ++check_include_file(stddef.h HAVE_STDDEF_H) + check_include_file(stdint.h HAVE_STDINT_H) + check_include_file(stdio.h HAVE_STDIO_H) + check_include_file(stdlib.h HAVE_STDLIB_H) +--- a/cmake/include/cmakeconfig.h.in b/cmake/include/cmakeconfig.h.in +@@ -15,6 +15,7 @@ + #cmakedefine HAVE_LIMITS_H 1 + #cmakedefine HAVE_SYS_LIMITS_H 1 + #cmakedefine HAVE_STDARG_H 1 ++#cmakedefine HAVE_STDDEF_H 1 + #cmakedefine HAVE_STDINT_H 1 + #cmakedefine HAVE_STDIO_H 1 + #cmakedefine HAVE_STDLIB_H 1 +@@ -241,6 +242,10 @@ + # define FD_SETSIZE 1024 + # endif + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /* the version of the windows API enabled */ + # ifndef WINVER + # define WINVER 0x0600 // 0x0502 +@@ -307,12 +312,11 @@ + #include + #endif + +-#ifdef __cplusplus +-extern "C" { ++#ifdef HAVE_STDLIB_H ++#include + #endif + +-#if STDC_HEADERS +-#include ++#ifdef HAVE_STDDEF_H + #include + #endif + + diff --git a/net-dns/getdns/getdns-1.7.2.ebuild b/net-dns/getdns/getdns-1.7.2-r1.ebuild similarity index 96% rename from net-dns/getdns/getdns-1.7.2.ebuild rename to net-dns/getdns/getdns-1.7.2-r1.ebuild index 76268cdfdcd1..624b78286187 100644 --- a/net-dns/getdns/getdns-1.7.2.ebuild +++ b/net-dns/getdns/getdns-1.7.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -53,6 +53,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" + "${FILESDIR}/${P}-clang16.patch" ) src_configure() {
[gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/files/, net-dns/getdns/
commit: 3c2183064edd8be92dae0d57a1e1de6e62e7e679 Author: Quentin Retornaz retornaz com> AuthorDate: Mon May 14 21:40:21 2018 + Commit: Anthony G. Basile gentoo org> CommitDate: Tue May 15 01:01:50 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c218306 net-dns/getdns: Version bump to 1.4.2 net-dns/getdns/Manifest | 2 +- net-dns/getdns/files/stubby.systemd | 12 net-dns/getdns/files/stubby.tmpfilesd| 2 -- .../getdns/{getdns-1.4.1-r2.ebuild => getdns-1.4.2.ebuild} | 4 ++-- 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest index 2df8dc169a7..a6b311b8e0b 100644 --- a/net-dns/getdns/Manifest +++ b/net-dns/getdns/Manifest @@ -1 +1 @@ -DIST getdns-1.4.1.tar.gz 1055348 BLAKE2B 3b664e669327f5d866e6b40defb3ee4b62a09be228cac726478dbc6843b64aaf49faa328e1013700daf554c4df1144a8d56cca9d9405057d35b89b8ab7ae1f43 SHA512 b15da1c898d4bb4e5dcd93b47f481696dd456d8a841b02122c46035f3da27ca13b5513e7b6a00e943d1a5f5cec8c5ce1f13729d3ce0c887d8faa31d201864b27 +DIST getdns-1.4.2.tar.gz 1059122 BLAKE2B 79399bb70e58bf449e99052c9f32ebb9d4e6ac26c753d99963d591661ee04ccfaf58e4f35589187a9a89fd9bccc0bff9d319c8b11da9522fbb17a915612ce9bd SHA512 fbbbe80df0f66e295c590c1751c11fcfc66efa200203ce1fdc11a471130fbaa837fa6bade076e17e1dac03d71c3522a67a660f2bdb4766aead19119da355bdd4 diff --git a/net-dns/getdns/files/stubby.systemd b/net-dns/getdns/files/stubby.systemd deleted file mode 100644 index b85b8e90b03..000 --- a/net-dns/getdns/files/stubby.systemd +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=stubby DNS resolver - -[Service] -WorkingDirectory=/run/stubby -ExecStart=/usr/bin/stubby -AmbientCapabilities=CAP_NET_BIND_SERVICE -CapabilityBoundingSet=CAP_NET_BIND_SERVICE -User=stubby - -[Install] -WantedBy=multi-user.target diff --git a/net-dns/getdns/files/stubby.tmpfilesd b/net-dns/getdns/files/stubby.tmpfilesd deleted file mode 100644 index bf70492743a..000 --- a/net-dns/getdns/files/stubby.tmpfilesd +++ /dev/null @@ -1,2 +0,0 @@ -# tmpfiles.d (5) for use with stubby.service -d /run/stubby 0750 root stubby - - diff --git a/net-dns/getdns/getdns-1.4.1-r2.ebuild b/net-dns/getdns/getdns-1.4.2.ebuild similarity index 93% rename from net-dns/getdns/getdns-1.4.1-r2.ebuild rename to net-dns/getdns/getdns-1.4.2.ebuild index bff5d734d08..c0978a76f06 100644 --- a/net-dns/getdns/getdns-1.4.1-r2.ebuild +++ b/net-dns/getdns/getdns-1.4.2.ebuild @@ -54,8 +54,8 @@ src_install() { newconfd "${FILESDIR}"/stubby.confd-r1 stubby insinto /etc/logrotate.d newins "${FILESDIR}"/stubby.logrotate stubby - systemd_newunit "${FILESDIR}"/stubby.systemd stubby.service - systemd_newtmpfilesd "${FILESDIR}"/stubby.tmpfilesd stubby.conf + systemd_dounit "${S}"/stubby/systemd/stubby.service + systemd_dotmpfilesd "${S}"/stubby/systemd/stubby.conf fi }
[gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/files/, net-dns/getdns/
commit: 54db0fef68b5dbc5c304bdc2ca7b1440291ca66c Author: Quentin Retornaz outlook com> AuthorDate: Fri Apr 27 20:28:49 2018 + Commit: Anthony G. Basile gentoo org> CommitDate: Sat Apr 28 10:50:45 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54db0fef net-dns/getdns: improved stubby initd/confd for logs and logrotate net-dns/getdns/files/stubby.confd| 4 net-dns/getdns/files/stubby.confd-r1 | 16 net-dns/getdns/files/{stubby.initd => stubby.initd-r1} | 4 +++- net-dns/getdns/files/stubby.logrotate| 7 +++ .../{getdns-1.4.1-r1.ebuild => getdns-1.4.1-r2.ebuild} | 6 -- 5 files changed, 30 insertions(+), 7 deletions(-) diff --git a/net-dns/getdns/files/stubby.confd b/net-dns/getdns/files/stubby.confd deleted file mode 100644 index b862ea4a40d..000 --- a/net-dns/getdns/files/stubby.confd +++ /dev/null @@ -1,4 +0,0 @@ -# /etc/conf.d/stubby: config file for /etc/init.d/stubby - -# See stubby -h for possible options to put here. -STUBBY_OPTS="" diff --git a/net-dns/getdns/files/stubby.confd-r1 b/net-dns/getdns/files/stubby.confd-r1 new file mode 100644 index 000..9c8d83f07f7 --- /dev/null +++ b/net-dns/getdns/files/stubby.confd-r1 @@ -0,0 +1,16 @@ +# /etc/conf.d/stubby: config file for /etc/init.d/stubby + +# Enter here Stubby YAML configuration file to use. +STUBBY_CONFIG_FILE="/etc/stubby/stubby.yml" + +# Set here Stubby log level to use. +# Following log levels are available: +# 0: EMERG - System is unusable +# 1: ALERT - Action must be taken immediately +# 2: CRIT - Critical conditions +# 3: ERROR - Error conditions +# 4: WARN - Warning conditions +# 5: NOTICE - Normal, but significant, condition +# 6: INFO - Informational message +# 7: DEBUG - Debug-level message +STUBBY_LOGLEVEL="5" diff --git a/net-dns/getdns/files/stubby.initd b/net-dns/getdns/files/stubby.initd-r1 similarity index 67% rename from net-dns/getdns/files/stubby.initd rename to net-dns/getdns/files/stubby.initd-r1 index 170db9be07f..e6b799919e2 100755 --- a/net-dns/getdns/files/stubby.initd +++ b/net-dns/getdns/files/stubby.initd-r1 @@ -2,8 +2,9 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later +stubby_opts="-C ${STUBBY_CONFIG_FILE:-/etc/stubby/stubby.yml} -v ${STUBBY_LOGLEVEL:-5}" command="capsh" -command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${STUBBY_OPTS}'" +command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${stubby_opts} >>/var/log/stubby.log 2>&1'" pidfile="/var/run/stubby/stubby.pid" name="DNS Privacy Daemon" @@ -18,4 +19,5 @@ depend() start_pre() { checkpath -d -m 1755 -o stubby:stubby /var/run/stubby + checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log } diff --git a/net-dns/getdns/files/stubby.logrotate b/net-dns/getdns/files/stubby.logrotate new file mode 100644 index 000..48058782594 --- /dev/null +++ b/net-dns/getdns/files/stubby.logrotate @@ -0,0 +1,7 @@ +/var/log/stubby.log { + rotate 4 + compress + size 200k + noolddir + missingok +} diff --git a/net-dns/getdns/getdns-1.4.1-r1.ebuild b/net-dns/getdns/getdns-1.4.1-r2.ebuild similarity index 91% rename from net-dns/getdns/getdns-1.4.1-r1.ebuild rename to net-dns/getdns/getdns-1.4.1-r2.ebuild index db4a0afb74a..bff5d734d08 100644 --- a/net-dns/getdns/getdns-1.4.1-r1.ebuild +++ b/net-dns/getdns/getdns-1.4.1-r2.ebuild @@ -50,8 +50,10 @@ src_configure() { src_install() { default if use stubby; then - newinitd "${FILESDIR}"/stubby.initd stubby - newconfd "${FILESDIR}"/stubby.confd stubby + newinitd "${FILESDIR}"/stubby.initd-r1 stubby + newconfd "${FILESDIR}"/stubby.confd-r1 stubby + insinto /etc/logrotate.d + newins "${FILESDIR}"/stubby.logrotate stubby systemd_newunit "${FILESDIR}"/stubby.systemd stubby.service systemd_newtmpfilesd "${FILESDIR}"/stubby.tmpfilesd stubby.conf fi
[gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/files/, net-dns/getdns/
commit: f3cafd190f4b4632ccac19b6fde6e8f948eeb34e Author: Quentin Retornaz outlook com> AuthorDate: Wed Apr 25 19:56:18 2018 + Commit: Anthony G. Basile gentoo org> CommitDate: Thu Apr 26 00:26:38 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3cafd19 net-dns/getdns: add systemd unit files Signed-off-by: Anthony G. Basile gentoo.org> net-dns/getdns/files/stubby.systemd | 12 net-dns/getdns/files/stubby.tmpfilesd| 2 ++ .../getdns/{getdns-1.4.1.ebuild => getdns-1.4.1-r1.ebuild} | 4 +++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/net-dns/getdns/files/stubby.systemd b/net-dns/getdns/files/stubby.systemd new file mode 100644 index 000..b85b8e90b03 --- /dev/null +++ b/net-dns/getdns/files/stubby.systemd @@ -0,0 +1,12 @@ +[Unit] +Description=stubby DNS resolver + +[Service] +WorkingDirectory=/run/stubby +ExecStart=/usr/bin/stubby +AmbientCapabilities=CAP_NET_BIND_SERVICE +CapabilityBoundingSet=CAP_NET_BIND_SERVICE +User=stubby + +[Install] +WantedBy=multi-user.target diff --git a/net-dns/getdns/files/stubby.tmpfilesd b/net-dns/getdns/files/stubby.tmpfilesd new file mode 100644 index 000..bf70492743a --- /dev/null +++ b/net-dns/getdns/files/stubby.tmpfilesd @@ -0,0 +1,2 @@ +# tmpfiles.d (5) for use with stubby.service +d /run/stubby 0750 root stubby - - diff --git a/net-dns/getdns/getdns-1.4.1.ebuild b/net-dns/getdns/getdns-1.4.1-r1.ebuild similarity index 91% rename from net-dns/getdns/getdns-1.4.1.ebuild rename to net-dns/getdns/getdns-1.4.1-r1.ebuild index 699abdbc82f..db4a0afb74a 100644 --- a/net-dns/getdns/getdns-1.4.1.ebuild +++ b/net-dns/getdns/getdns-1.4.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit user fcaps +inherit user fcaps systemd DESCRIPTION="Modern asynchronous DNS API" HOMEPAGE="https://getdnsapi.net/; @@ -52,6 +52,8 @@ src_install() { if use stubby; then newinitd "${FILESDIR}"/stubby.initd stubby newconfd "${FILESDIR}"/stubby.confd stubby + systemd_newunit "${FILESDIR}"/stubby.systemd stubby.service + systemd_newtmpfilesd "${FILESDIR}"/stubby.tmpfilesd stubby.conf fi }