pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
dnsdist: Upgrade to version 2.0.0
Module Name: pkgsrc-wip
Committed By: Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By: drixter
Date: Thu Jul 24 16:47:58 2025 +0200
Changeset: 83e3844424d3a62e6e8e64614e7df59f7cb3da95
Added Files:
dnsdist/COMMIT_MSG
dnsdist/DESCR
dnsdist/Makefile
dnsdist/PLIST
dnsdist/distinfo
dnsdist/files/dnsdist.sh
dnsdist/files/smf/manifest.xml
Log Message:
dnsdist: Upgrade to version 2.0.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=83e3844424d3a62e6e8e64614e7df59f7cb3da95
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
dnsdist/COMMIT_MSG | 16 +++++++++
dnsdist/DESCR | 4 +++
dnsdist/Makefile | 73 ++++++++++++++++++++++++++++++++++++++++++
dnsdist/PLIST | 4 +++
dnsdist/distinfo | 5 +++
dnsdist/files/dnsdist.sh | 24 ++++++++++++++
dnsdist/files/smf/manifest.xml | 28 ++++++++++++++++
7 files changed, 154 insertions(+)
diffs:
diff --git a/dnsdist/COMMIT_MSG b/dnsdist/COMMIT_MSG
new file mode 100644
index 0000000000..ec14277b52
--- /dev/null
+++ b/dnsdist/COMMIT_MSG
@@ -0,0 +1,16 @@
+2.0.0
+Released: 21st of July 2025
+Improvements�
+Improve the scalability of the MAC address cache
+References: pull request 15876
+Small speedup for getEDNSUDPPayloadSizeAndZ()
+References: pull request 15877
+Avoid constructing a DNSResponse object when not really needed
+References: pull request 15878
+Use an unordered map for pools
+References: pull request 15879
+Only parse EDNS Z once
+References: pull request 15880
+Bug Fixes
+Fix out-of-tree builds with autotools
+References: pull request 15875
diff --git a/dnsdist/DESCR b/dnsdist/DESCR
new file mode 100644
index 0000000000..8b6e998da8
--- /dev/null
+++ b/dnsdist/DESCR
@@ -0,0 +1,4 @@
+dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its
+goal in life is to route traffic to the best server, delivering top
+performance to legitimate users while shunting or blocking abusive
+traffic.
diff --git a/dnsdist/Makefile b/dnsdist/Makefile
new file mode 100644
index 0000000000..5b6acc2dcd
--- /dev/null
+++ b/dnsdist/Makefile
@@ -0,0 +1,73 @@
+# $NetBSD: Makefile,v 1.35 2025/07/03 06:28:33 wiz Exp $
+
+DISTNAME= dnsdist-2.0.0
+PKGREVISION= 0
+CATEGORIES= net
+MASTER_SITES= https://downloads.powerdns.com/releases/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= drixter%e-utp.net@localhost
+HOMEPAGE= https://dnsdist.org/
+COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+USE_CXX_FEATURES= c++11
+USE_TOOLS+= gmake pkg-config
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= DNSDIST_USER DNSDIST_GROUP
+DNSDIST_USER?= dnsdist
+DNSDIST_GROUP?= dnsdist
+PKG_GROUPS+= ${DNSDIST_GROUP}
+PKG_USERS+= ${DNSDIST_USER}:${DNSDIST_GROUP}
+PKG_GECOS.${DNSDIST_USER}= dnsdist daemon user
+
+BUILD_DEPENDS+= py*-yaml:../../textproc/py-yaml
+CHECK_WRKREF_SKIP+= bin/dnsdist
+
+FILES_SUBST+= DNSDIST_USER=${DNSDIST_USER}
+FILES_SUBST+= DNSDIST_GROUP=${DNSDIST_GROUP}
+
+CONFIGURE_ARGS+= --enable-dns-over-tls
+CONFIGURE_ARGS+= --enable-dnscrypt
+CONFIGURE_ARGS+= --enable-dnstap
+CONFIGURE_ARGS+= --with-libsodium
+CONFIGURE_ARGS+= --with-libssl
+CONFIGURE_ARGS+= --with-lua
+CONFIGURE_ARGS+= --with-nghttp2
+CONFIGURE_ARGS+= --with-re2
+CONFIGURE_ARGS+= --without-net-snmp
+CONFIGURE_ARGS+= --enable-dns-over-https
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+.include "../../mk/readline.buildlink3.mk"
+
+.if ${READLINE_TYPE} == "editline"
+CONFIGURE_ARGS+= --with-libedit
+CONFIGURE_ENV+= LIBEDIT_CFLAGS="-I${BUILDLINK_PREFIX.editlinereadline}/include"
+CONFIGURE_ENV+= LIBEDIT_LIBS="-L${BUILDLINK_PREFIX.editlinereadline}/lib ${BUILDLINK_LDADD.editlinereadline}"
+.else
+CONFIGURE_ARGS+= --without-libedit
+.endif
+
+EGDIR= ${PREFIX}/share/examples/dnsdist
+CONF_FILES= ${EGDIR}/dnsdist.conf-dist ${PKG_SYSCONFDIR}/dnsdist.conf
+INSTALLATION_DIRS+= ${EGDIR}
+INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
+
+RCD_SCRIPTS+= dnsdist
+
+.include "../../databases/lmdb/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/re2/buildlink3.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../net/fstrm/buildlink3.mk"
+.include "../../security/libsodium/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../mk/atomic64.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/dnsdist/PLIST b/dnsdist/PLIST
new file mode 100644
index 0000000000..d9170d83bc
--- /dev/null
+++ b/dnsdist/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/dnsdist
+man/man1/dnsdist.1
+share/examples/dnsdist/dnsdist.conf-dist
diff --git a/dnsdist/distinfo b/dnsdist/distinfo
new file mode 100644
index 0000000000..e5fbeb9dda
--- /dev/null
+++ b/dnsdist/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.19 2025/05/24 06:31:21 wiz Exp $
+
+BLAKE2s (dnsdist-2.0.0.tar.xz) = e6b5ec751737670e00099f47bd3d86af7b36b9ffcceae8846d23ee1e6071c424
+SHA512 (dnsdist-2.0.0.tar.xz) = dee84019ae317bc4e0b4d2f94e38a221bfa94460d3bb8d82ad152eed99bef1e2bd2631f5c1e6930fb9957a928ed9cf891ef8165137cd8ec1902fb734d5aab8fb
+Size (dnsdist-2.0.0.tar.xz) = 2275260 bytes
diff --git a/dnsdist/files/dnsdist.sh b/dnsdist/files/dnsdist.sh
new file mode 100644
index 0000000000..c4b5d56543
--- /dev/null
+++ b/dnsdist/files/dnsdist.sh
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dnsdist.sh,v 1.2 2022/10/24 11:08:15 jperkin Exp $
+#
+# PROVIDE: dnsdist
+# REQUIRE: DAEMON network
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="dnsdist"
+rcvar=$name
+command="@PREFIX@/bin/dnsdist"
+dnsdist_flags="${dnsdist_flags:- -u @DNSDIST_USER@ -g @DNSDIST_GROUP@ -C @PKG_SYSCONFDIR@/dnsdist.conf}"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${dnsdist_flags}
+fi
diff --git a/dnsdist/files/smf/manifest.xml b/dnsdist/files/smf/manifest.xml
new file mode 100644
index 0000000000..739af89727
--- /dev/null
+++ b/dnsdist/files/smf/manifest.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="export">
+ <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
+ <create_default_instance enabled="false" />
+ <single_instance />
+ <dependency name="network" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/milestone/network:default" />
+ </dependency>
+ <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/system/filesystem/local" />
+ </dependency>
+ <exec_method type="method" name="start" exec="@PREFIX@/bin/dnsdist --supervised -u @DNSDIST_USER@ -g @DNSDIST_GROUP@ -C %{config_file} &" timeout_seconds="60" />
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="contract" />
+ <propval name="ignore_error" type="astring" value="core,signal" />
+ </property_group>
+ <property_group name="application" type="application">
+ <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/dnsdist.conf" />
+ </property_group>
+ <template>
+ <common_name>
+ <loctext xml:lang="C">dnsdist daemon</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>
Home |
Main Index |
Thread Index |
Old Index