mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
dns/dnsmasq: update pkg-message and fix a few compiler warnings
...which v2.91 will also fix.
This commit is contained in:
parent
05d61c2eda
commit
ccd2f3531f
3 changed files with 30 additions and 2 deletions
|
@ -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
|
||||
|
|
21
dns/dnsmasq/files/patch-src_dbus.c
Normal file
21
dns/dnsmasq/files/patch-src_dbus.c
Normal 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++;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue