dns/dnsmasq: update pkg-message and fix a few compiler warnings

...which v2.91 will also fix.
This commit is contained in:
Matthias Andree 2025-02-22 13:56:00 +01:00
parent 05d61c2eda
commit ccd2f3531f
3 changed files with 30 additions and 2 deletions

View file

@ -1,7 +1,7 @@
PORTNAME= dnsmasq
DISTVERSION= 2.90
# Leave the PORTREVISION in even if 0 to avoid accidental PORTEPOCH bumps:
PORTREVISION= 4
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= dns
MASTER_SITES= https://www.thekelleys.org.uk/dnsmasq/ \
@ -26,7 +26,8 @@ MAKE_ARGS= CC="${CC}" \
PREFIX="${PREFIX}" \
RPM_OPT_FLAGS="${CPPFLAGS}"
CFLAGS+= -Wall -Wno-unused-function -Wno-unused-parameter \
-Wno-unused-value -Wno-unused-variable
-Wno-unused-value -Wno-unused-variable \
-Wno-gnu-variable-sized-type-not-at-end
CPPFLAGS+= -I${LOCALBASE}/include
CONFLICTS_INSTALL= dnsmasq-devel

View file

@ -0,0 +1,21 @@
--- src/dbus.c.orig 2025-02-21 14:41:34 UTC
+++ src/dbus.c
@@ -745,7 +745,6 @@ static DBusMessage *dbus_get_server_metrics(DBusMessag
if (!(serv->flags & SERV_MARK))
{
unsigned int port;
- unsigned int queries = 0, failed_queries = 0, nxdomain_replies = 0, retrys = 0;
unsigned int sigma_latency = 0, count_latency = 0;
struct server *serv1;
@@ -754,10 +753,6 @@ static DBusMessage *dbus_get_server_metrics(DBusMessag
if (!(serv1->flags & SERV_MARK) && sockaddr_isequal(&serv->addr, &serv1->addr))
{
serv1->flags |= SERV_MARK;
- queries += serv1->queries;
- failed_queries += serv1->failed_queries;
- nxdomain_replies += serv1->nxdomain_replies;
- retrys += serv1->retrys;
sigma_latency += serv1->query_latency;
count_latency++;
}

View file

@ -7,6 +7,12 @@ set dnsmasq_enable="YES" in /etc/rc.conf[.local]
Further options and actions are documented inside
%%PREFIX%%/etc/rc.d/dnsmasq
NOTE: when using dnssec, inaccurate system clocks
can cause DNS resolution to fail
because DNSSEC signatures may then not validate.
SECURITY RECOMMENDATION
~~~~~~~~~~~~~~~~~~~~~~~
It is recommended to enable the wpad-related options