Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: dnsdist-1.5.1
@ 2021-01-23  1:54 jailbird777
  2021-01-23  1:55 ` [PR PATCH] [Updated] " jailbird777
                   ` (20 more replies)
  0 siblings, 21 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  1:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

There is a new pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 7729 bytes --]

From 21d3bf00333f27c04acd41117956ccd3ecf839b7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 20 Jan 2021 22:06:36 -0600
Subject: [PATCH 1/3] New package: tinycdb-0.78

---
 common/shlibs            |  1 +
 srcpkgs/libtinycdb       |  1 +
 srcpkgs/tinycdb-devel    |  1 +
 srcpkgs/tinycdb/template | 47 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/libtinycdb
 create mode 100644 srcpkgs/tinycdb-devel
 create mode 100644 srcpkgs/tinycdb/template

diff --git a/common/shlibs b/common/shlibs
index e030495fd63..befbc2ebe97 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4045,3 +4045,4 @@ libutil-cmdline-samba4.so samba-libs-4.13.2_1
 libwinbind-client-samba4.so samba-libs-4.13.2_1
 libsixel.so.1 libsixel-1.8.6_1
 libpamtest.so.0 pam_wrapper-1.1.3_1
+libcdb.so.1 libtinycdb-0.78_1
diff --git a/srcpkgs/libtinycdb b/srcpkgs/libtinycdb
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/libtinycdb
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb-devel b/srcpkgs/tinycdb-devel
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/tinycdb-devel
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb/template b/srcpkgs/tinycdb/template
new file mode 100644
index 00000000000..fa09a9c1db0
--- /dev/null
+++ b/srcpkgs/tinycdb/template
@@ -0,0 +1,47 @@
+# Template file for 'tinycdb'
+pkgname=tinycdb
+version=0.78
+revision=1
+build_style=gnu-makefile
+make_build_target=shared
+make_build_args="LD=\$(CC)"
+short_desc="Alternative constant database library"
+maintainer="JailBird <jailbird@fdf.net>"
+license="Public Domain"
+homepage="http://www.corpit.ru/mjt/tinycdb.html"
+distfiles="http://www.corpit.ru/mjt/${pkgname}/${pkgname}-${version}.tar.gz"
+checksum=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c
+
+do_install() {
+	vbin cdb-shared cdb
+
+	vinstall libcdb.so.1 755 usr/lib
+	vinstall cdb.h 644 usr/include
+
+	for f in 1 3 5; do
+		vman cdb.${f}
+	done
+
+        vmkdir $DESTDIR/usr/lib
+        ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
+
+	vdoc ChangeLog
+	vdoc NEWS
+}
+
+libtinycdb_package() {
+	short_desc+=" - shared library"
+	pkg_install() {
+		vmove "usr/lib/libcdb.so.*"
+	}
+}
+
+tinycdb-devel_package() {
+	depends="libtinycdb>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

From 66934e5865e9f550ee4989ced3315f9a2e6faec1 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 20 Jan 2021 22:14:22 -0600
Subject: [PATCH 2/3] Fix tab/space mix

---
 srcpkgs/tinycdb/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/tinycdb/template b/srcpkgs/tinycdb/template
index fa09a9c1db0..9995add84f4 100644
--- a/srcpkgs/tinycdb/template
+++ b/srcpkgs/tinycdb/template
@@ -22,8 +22,8 @@ do_install() {
 		vman cdb.${f}
 	done
 
-        vmkdir $DESTDIR/usr/lib
-        ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
+	vmkdir $DESTDIR/usr/lib
+	ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
 
 	vdoc ChangeLog
 	vdoc NEWS

From 4111f479813bc799b369b16e93bbac8c99814e0b Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 3/3] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
@ 2021-01-23  1:55 ` jailbird777
  2021-01-23  1:59 ` jailbird777
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  1:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 4508 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
  2021-01-23  1:55 ` [PR PATCH] [Updated] " jailbird777
@ 2021-01-23  1:59 ` jailbird777
  2021-01-23  2:02 ` jailbird777
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  1:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 5744 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/2] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/2] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cded..0d96d03c001 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
  2021-01-23  1:55 ` [PR PATCH] [Updated] " jailbird777
  2021-01-23  1:59 ` jailbird777
@ 2021-01-23  2:02 ` jailbird777
  2021-01-23  2:04 ` jailbird777
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  2:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 7193 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/3] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/3] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cded..0d96d03c001 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 3/3] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001..6694f0dc063 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (2 preceding siblings ...)
  2021-01-23  2:02 ` jailbird777
@ 2021-01-23  2:04 ` jailbird777
  2021-01-23  2:15 ` ericonr
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  2:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 7798 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/4] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/4] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cded..0d96d03c001 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 3/4] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001..6694f0dc063 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 4/4] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc063..f25ca3cf455 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (3 preceding siblings ...)
  2021-01-23  2:04 ` jailbird777
@ 2021-01-23  2:15 ` ericonr
  2021-01-23  3:44 ` jailbird777
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-01-23  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-765818022

Comment:
What is the plan here? Is tinycdb useful if this isn't merged? If not much, this should all probably be a single PR.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (4 preceding siblings ...)
  2021-01-23  2:15 ` ericonr
@ 2021-01-23  3:44 ` jailbird777
  2021-01-23 19:47 ` ericonr
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-01-23  3:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

New comment by jailbird777 on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-765858633

Comment:
Good question! Other distros separate them out since postfix & powerDNS at least can both use tinycdb also, so that it's shared.  However, if there's no plans to add CDB support to postfix or to add pdns (I don't personally have use for pdns), I can drop tiyncdb completely and just use the built-in CDB code in dnsdist instead.  I'm fine with either one!

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (5 preceding siblings ...)
  2021-01-23  3:44 ` jailbird777
@ 2021-01-23 19:47 ` ericonr
  2021-01-23 20:09 ` benalb
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-01-23 19:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-766168674

Comment:
Guess I'll ask the postfix maintainer. @benalb do you have any interest in adding cdb support to postfix?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (6 preceding siblings ...)
  2021-01-23 19:47 ` ericonr
@ 2021-01-23 20:09 ` benalb
  2021-03-11  1:08 ` [PR PATCH] [Updated] " jailbird777
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: benalb @ 2021-01-23 20:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

New comment by benalb on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-766172072

Comment:
I do not use cdb myself, so I will not be able to test it. On the other hand, [this](http://www.postfix.org/CDB_README.html) seems pretty straightforward. I don't see why not. 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (7 preceding siblings ...)
  2021-01-23 20:09 ` benalb
@ 2021-03-11  1:08 ` jailbird777
  2021-05-23  2:37 ` jailbird777
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-03-11  1:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 14183 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/8] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 00000000000..d9c2dd7804a
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 00000000000..8af24c5a744
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 00000000000..422dd74cded
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 00000000000..da8e072d218
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/8] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cded..0d96d03c001 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 3/8] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001..6694f0dc063 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 4/8] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc063..f25ca3cf455 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

From ab442d7692495108ef490c03981bc19e111f8502 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 01:51:47 -0600
Subject: [PATCH 5/8] Drop tinycdb, update example conf

---
 srcpkgs/dnsdist/files/dnsdist.conf | 18 +++++++++---------
 srcpkgs/dnsdist/template           |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
index d9c2dd7804a..1d94926b0ba 100644
--- a/srcpkgs/dnsdist/files/dnsdist.conf
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -11,16 +11,16 @@
 
 -- Throw requests to Cloudflare and Google and take the fastest answer
 
--- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
-newServer("1.1.1.1") -- Cloudflare, primary IPv4
--- newServer("2001:4860:4860::8888") -- Google, primary IPv6
-newServer("8.8.8.8") -- Google, primary IPv4
--- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
-newServer("1.0.0.1") -- Cloudflare, secondary IPv4
--- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
-newServer("8.8.4.4") -- Google, secondary IPv4
+-- newServer({address="2606:4700:4700::1111", tcpFastOpen=true}) -- Cloudflare, primary IPv6
+newServer({address="1.1.1.1", tcpFastOpen=true}) -- Cloudflare, primary IPv4
+-- newServer({address="2001:4860:4860::8888", tcpFastOpen=true}) -- Google, primary IPv6
+newServer({address="8.8.8.8", tcpFastOpen=true}) -- Google, primary IPv4
+-- newServer({address="2606:4700:4700::1001", tcpFastOpen=true}) -- Cloudflare, secondary IPv6
+newServer({address="1.0.0.1", tcpFastOpen=true}) -- Cloudflare, secondary IPv4
+-- newServer({address="2001:4860:4860::8844", tcpFastOpen=true}) -- Google, secondary IPv6
+newServer({address="8.8.4.4", tcpFastOpen=true}) -- Google, secondary IPv4
 
-setServerPolicy(roundrobin)
+setServerPolicy(firstAvailable)
 
 -- Basic caching of results, comment out to use less memory
 pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index f25ca3cf455..97dccffa57e 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,9 +12,9 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+ libedit-devel gnutls-devel h2o-devel"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
- fstrm libedit gnutls tinycdb"
+ fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

From 21979d357da622234d4d79f0cf825c39ffbffa2d Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:03:02 -0600
Subject: [PATCH 6/8] libressl -> openssl

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 97dccffa57e..bc8a2262828 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 4a7b56bc746506f25c6873f8671c1b3e7cb004d6 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:15:15 -0600
Subject: [PATCH 7/8] Bump protobuf :(

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index bc8a2262828..b83fb020d36 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -10,10 +10,10 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From ae035dceb8497d35ee7df8fd9b189f21331164bb Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 19:08:32 -0600
Subject: [PATCH 8/8] Use regular Lua instead of LuaJIT

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index b83fb020d36..9b67e6e90ef 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.5.1
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (8 preceding siblings ...)
  2021-03-11  1:08 ` [PR PATCH] [Updated] " jailbird777
@ 2021-05-23  2:37 ` jailbird777
  2021-05-23  3:04 ` [PR PATCH] [Updated] New package: dnsdist-1.6.0 ericonr
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-05-23  2:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.5.1
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 15242 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/9] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 000000000000..d9c2dd7804a7
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 000000000000..8af24c5a7442
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 000000000000..422dd74cdedd
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 000000000000..da8e072d218c
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/9] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cdedd..0d96d03c001f 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 3/9] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001f..6694f0dc0636 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 4/9] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc0636..f25ca3cf455a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

From ab442d7692495108ef490c03981bc19e111f8502 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 01:51:47 -0600
Subject: [PATCH 5/9] Drop tinycdb, update example conf

---
 srcpkgs/dnsdist/files/dnsdist.conf | 18 +++++++++---------
 srcpkgs/dnsdist/template           |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
index d9c2dd7804a7..1d94926b0bac 100644
--- a/srcpkgs/dnsdist/files/dnsdist.conf
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -11,16 +11,16 @@
 
 -- Throw requests to Cloudflare and Google and take the fastest answer
 
--- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
-newServer("1.1.1.1") -- Cloudflare, primary IPv4
--- newServer("2001:4860:4860::8888") -- Google, primary IPv6
-newServer("8.8.8.8") -- Google, primary IPv4
--- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
-newServer("1.0.0.1") -- Cloudflare, secondary IPv4
--- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
-newServer("8.8.4.4") -- Google, secondary IPv4
+-- newServer({address="2606:4700:4700::1111", tcpFastOpen=true}) -- Cloudflare, primary IPv6
+newServer({address="1.1.1.1", tcpFastOpen=true}) -- Cloudflare, primary IPv4
+-- newServer({address="2001:4860:4860::8888", tcpFastOpen=true}) -- Google, primary IPv6
+newServer({address="8.8.8.8", tcpFastOpen=true}) -- Google, primary IPv4
+-- newServer({address="2606:4700:4700::1001", tcpFastOpen=true}) -- Cloudflare, secondary IPv6
+newServer({address="1.0.0.1", tcpFastOpen=true}) -- Cloudflare, secondary IPv4
+-- newServer({address="2001:4860:4860::8844", tcpFastOpen=true}) -- Google, secondary IPv6
+newServer({address="8.8.4.4", tcpFastOpen=true}) -- Google, secondary IPv4
 
-setServerPolicy(roundrobin)
+setServerPolicy(firstAvailable)
 
 -- Basic caching of results, comment out to use less memory
 pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index f25ca3cf455a..97dccffa57ed 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,9 +12,9 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+ libedit-devel gnutls-devel h2o-devel"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
- fstrm libedit gnutls tinycdb"
+ fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

From 21979d357da622234d4d79f0cf825c39ffbffa2d Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:03:02 -0600
Subject: [PATCH 6/9] libressl -> openssl

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 97dccffa57ed..bc8a2262828d 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 4a7b56bc746506f25c6873f8671c1b3e7cb004d6 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:15:15 -0600
Subject: [PATCH 7/9] Bump protobuf :(

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index bc8a2262828d..b83fb020d36a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -10,10 +10,10 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From ae035dceb8497d35ee7df8fd9b189f21331164bb Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 19:08:32 -0600
Subject: [PATCH 8/9] Use regular Lua instead of LuaJIT

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index b83fb020d36a..9b67e6e90ef3 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 3172564f10986f56f3bdb38a630210d3675471f7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Sat, 22 May 2021 21:36:34 -0500
Subject: [PATCH 9/9] Update dnsdist to 1.6.0

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 9b67e6e90ef3..d177b2e8d338 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -1,6 +1,6 @@
 # Template file for 'dnsdist'
 pkgname=dnsdist
-version=1.5.1
+version=1.6.0
 revision=1
 build_style=gnu-configure
 configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
@@ -20,7 +20,7 @@ maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
-checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+checksum=a7783a04d8d4ad2b0168ffaaf85ef95d5f557057b0462280684dd799d0cdd292
 
 system_accounts="_dnsdist"
 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (9 preceding siblings ...)
  2021-05-23  2:37 ` jailbird777
@ 2021-05-23  3:04 ` ericonr
  2021-07-01  7:15 ` jailbird777
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-05-23  3:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.6.0
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 15242 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 1/9] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 000000000000..d9c2dd7804a7
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 000000000000..8af24c5a7442
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 000000000000..422dd74cdedd
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 000000000000..da8e072d218c
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 2/9] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cdedd..0d96d03c001f 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 3/9] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001f..6694f0dc0636 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 4/9] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc0636..f25ca3cf455a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

From ab442d7692495108ef490c03981bc19e111f8502 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 01:51:47 -0600
Subject: [PATCH 5/9] Drop tinycdb, update example conf

---
 srcpkgs/dnsdist/files/dnsdist.conf | 18 +++++++++---------
 srcpkgs/dnsdist/template           |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
index d9c2dd7804a7..1d94926b0bac 100644
--- a/srcpkgs/dnsdist/files/dnsdist.conf
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -11,16 +11,16 @@
 
 -- Throw requests to Cloudflare and Google and take the fastest answer
 
--- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
-newServer("1.1.1.1") -- Cloudflare, primary IPv4
--- newServer("2001:4860:4860::8888") -- Google, primary IPv6
-newServer("8.8.8.8") -- Google, primary IPv4
--- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
-newServer("1.0.0.1") -- Cloudflare, secondary IPv4
--- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
-newServer("8.8.4.4") -- Google, secondary IPv4
+-- newServer({address="2606:4700:4700::1111", tcpFastOpen=true}) -- Cloudflare, primary IPv6
+newServer({address="1.1.1.1", tcpFastOpen=true}) -- Cloudflare, primary IPv4
+-- newServer({address="2001:4860:4860::8888", tcpFastOpen=true}) -- Google, primary IPv6
+newServer({address="8.8.8.8", tcpFastOpen=true}) -- Google, primary IPv4
+-- newServer({address="2606:4700:4700::1001", tcpFastOpen=true}) -- Cloudflare, secondary IPv6
+newServer({address="1.0.0.1", tcpFastOpen=true}) -- Cloudflare, secondary IPv4
+-- newServer({address="2001:4860:4860::8844", tcpFastOpen=true}) -- Google, secondary IPv6
+newServer({address="8.8.4.4", tcpFastOpen=true}) -- Google, secondary IPv4
 
-setServerPolicy(roundrobin)
+setServerPolicy(firstAvailable)
 
 -- Basic caching of results, comment out to use less memory
 pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index f25ca3cf455a..97dccffa57ed 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,9 +12,9 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+ libedit-devel gnutls-devel h2o-devel"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
- fstrm libedit gnutls tinycdb"
+ fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

From 21979d357da622234d4d79f0cf825c39ffbffa2d Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:03:02 -0600
Subject: [PATCH 6/9] libressl -> openssl

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 97dccffa57ed..bc8a2262828d 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 4a7b56bc746506f25c6873f8671c1b3e7cb004d6 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:15:15 -0600
Subject: [PATCH 7/9] Bump protobuf :(

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index bc8a2262828d..b83fb020d36a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -10,10 +10,10 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From ae035dceb8497d35ee7df8fd9b189f21331164bb Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 19:08:32 -0600
Subject: [PATCH 8/9] Use regular Lua instead of LuaJIT

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index b83fb020d36a..9b67e6e90ef3 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 3172564f10986f56f3bdb38a630210d3675471f7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Sat, 22 May 2021 21:36:34 -0500
Subject: [PATCH 9/9] Update dnsdist to 1.6.0

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 9b67e6e90ef3..d177b2e8d338 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -1,6 +1,6 @@
 # Template file for 'dnsdist'
 pkgname=dnsdist
-version=1.5.1
+version=1.6.0
 revision=1
 build_style=gnu-configure
 configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
@@ -20,7 +20,7 @@ maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
-checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+checksum=a7783a04d8d4ad2b0168ffaaf85ef95d5f557057b0462280684dd799d0cdd292
 
 system_accounts="_dnsdist"
 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (10 preceding siblings ...)
  2021-05-23  3:04 ` [PR PATCH] [Updated] New package: dnsdist-1.6.0 ericonr
@ 2021-07-01  7:15 ` jailbird777
  2021-07-03  1:45 ` jailbird777
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-01  7:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.6.0
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 17080 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 01/10] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 000000000000..d9c2dd7804a7
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 000000000000..8af24c5a7442
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 000000000000..422dd74cdedd
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 000000000000..da8e072d218c
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 02/10] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cdedd..0d96d03c001f 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 03/10] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001f..6694f0dc0636 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 04/10] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc0636..f25ca3cf455a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

From ab442d7692495108ef490c03981bc19e111f8502 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 01:51:47 -0600
Subject: [PATCH 05/10] Drop tinycdb, update example conf

---
 srcpkgs/dnsdist/files/dnsdist.conf | 18 +++++++++---------
 srcpkgs/dnsdist/template           |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
index d9c2dd7804a7..1d94926b0bac 100644
--- a/srcpkgs/dnsdist/files/dnsdist.conf
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -11,16 +11,16 @@
 
 -- Throw requests to Cloudflare and Google and take the fastest answer
 
--- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
-newServer("1.1.1.1") -- Cloudflare, primary IPv4
--- newServer("2001:4860:4860::8888") -- Google, primary IPv6
-newServer("8.8.8.8") -- Google, primary IPv4
--- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
-newServer("1.0.0.1") -- Cloudflare, secondary IPv4
--- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
-newServer("8.8.4.4") -- Google, secondary IPv4
+-- newServer({address="2606:4700:4700::1111", tcpFastOpen=true}) -- Cloudflare, primary IPv6
+newServer({address="1.1.1.1", tcpFastOpen=true}) -- Cloudflare, primary IPv4
+-- newServer({address="2001:4860:4860::8888", tcpFastOpen=true}) -- Google, primary IPv6
+newServer({address="8.8.8.8", tcpFastOpen=true}) -- Google, primary IPv4
+-- newServer({address="2606:4700:4700::1001", tcpFastOpen=true}) -- Cloudflare, secondary IPv6
+newServer({address="1.0.0.1", tcpFastOpen=true}) -- Cloudflare, secondary IPv4
+-- newServer({address="2001:4860:4860::8844", tcpFastOpen=true}) -- Google, secondary IPv6
+newServer({address="8.8.4.4", tcpFastOpen=true}) -- Google, secondary IPv4
 
-setServerPolicy(roundrobin)
+setServerPolicy(firstAvailable)
 
 -- Basic caching of results, comment out to use less memory
 pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index f25ca3cf455a..97dccffa57ed 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,9 +12,9 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+ libedit-devel gnutls-devel h2o-devel"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
- fstrm libedit gnutls tinycdb"
+ fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

From 21979d357da622234d4d79f0cf825c39ffbffa2d Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:03:02 -0600
Subject: [PATCH 06/10] libressl -> openssl

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 97dccffa57ed..bc8a2262828d 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 4a7b56bc746506f25c6873f8671c1b3e7cb004d6 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:15:15 -0600
Subject: [PATCH 07/10] Bump protobuf :(

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index bc8a2262828d..b83fb020d36a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -10,10 +10,10 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From ae035dceb8497d35ee7df8fd9b189f21331164bb Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 19:08:32 -0600
Subject: [PATCH 08/10] Use regular Lua instead of LuaJIT

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index b83fb020d36a..9b67e6e90ef3 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 3172564f10986f56f3bdb38a630210d3675471f7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Sat, 22 May 2021 21:36:34 -0500
Subject: [PATCH 09/10] Update dnsdist to 1.6.0

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 9b67e6e90ef3..d177b2e8d338 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -1,6 +1,6 @@
 # Template file for 'dnsdist'
 pkgname=dnsdist
-version=1.5.1
+version=1.6.0
 revision=1
 build_style=gnu-configure
 configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
@@ -20,7 +20,7 @@ maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
-checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+checksum=a7783a04d8d4ad2b0168ffaaf85ef95d5f557057b0462280684dd799d0cdd292
 
 system_accounts="_dnsdist"
 

From ca4eef195bf698f6f1b96d97172916af46c1858c Mon Sep 17 00:00:00 2001
From: jailbird777 <jailbird@fdf.net>
Date: Thu, 1 Jul 2021 02:15:11 -0500
Subject: [PATCH 10/10] Don't need protobuf anymore in 1.6.0

---
 srcpkgs/dnsdist/template | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index d177b2e8d338..b6df9e790642 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -3,18 +3,18 @@ pkgname=dnsdist
 version=1.6.0
 revision=1
 build_style=gnu-configure
-configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
- --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-re2
+ --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
  --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
- fstrm libedit gnutls"
+makedepends="libsodium-devel boost-devel re2-devel net-snmp-devel libcap-devel
+ lua54-devel openssl-devel lmdb-devel fstrm-devel libedit-devel gnutls-devel
+ h2o-devel"
+depends="libsodium re2 libnet-snmp libcap lua54 openssl lmdb fstrm libedit
+ gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (11 preceding siblings ...)
  2021-07-01  7:15 ` jailbird777
@ 2021-07-03  1:45 ` jailbird777
  2021-07-09  5:18 ` jailbird777
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-03  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages dnsdist
https://github.com/void-linux/void-packages/pull/28109

New package: dnsdist-1.6.0
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

A patch file from https://github.com/void-linux/void-packages/pull/28109.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsdist-28109.patch --]
[-- Type: text/x-diff, Size: 17080 bytes --]

From 8b960c64b8cb914d95ea8763c47d2453b97ff124 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:52:13 -0600
Subject: [PATCH 01/10] New package: dnsdist-1.5.1

---
 srcpkgs/dnsdist/files/dnsdist.conf | 27 +++++++++++++++++++++
 srcpkgs/dnsdist/files/dnsdist/run  |  2 ++
 srcpkgs/dnsdist/template           | 39 ++++++++++++++++++++++++++++++
 srcpkgs/dnsdist/update             |  1 +
 4 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/dnsdist/files/dnsdist.conf
 create mode 100644 srcpkgs/dnsdist/files/dnsdist/run
 create mode 100644 srcpkgs/dnsdist/template
 create mode 100644 srcpkgs/dnsdist/update

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
new file mode 100644
index 000000000000..d9c2dd7804a7
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -0,0 +1,27 @@
+-- Example (simple) configuration
+
+--[[ By default, dnsdist binds to 127.0.0.1:53 and uses exactly one thread
+     To use more threads, we need to explicitly set the first thread listener
+     with setLocal() reusePort=true and then add one addLocal() for each
+     additional thread.  Eg, for a 4-thread setup: --]]
+-- setLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+-- addLocal("127.0.0.1:53", {reusePort=true, tcpFastOpenQueueSize=2048})
+
+-- Throw requests to Cloudflare and Google and take the fastest answer
+
+-- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
+newServer("1.1.1.1") -- Cloudflare, primary IPv4
+-- newServer("2001:4860:4860::8888") -- Google, primary IPv6
+newServer("8.8.8.8") -- Google, primary IPv4
+-- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
+newServer("1.0.0.1") -- Cloudflare, secondary IPv4
+-- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
+newServer("8.8.4.4") -- Google, secondary IPv4
+
+setServerPolicy(roundrobin)
+
+-- Basic caching of results, comment out to use less memory
+pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
+getPool(""):setCache(pc)
diff --git a/srcpkgs/dnsdist/files/dnsdist/run b/srcpkgs/dnsdist/files/dnsdist/run
new file mode 100644
index 000000000000..8af24c5a7442
--- /dev/null
+++ b/srcpkgs/dnsdist/files/dnsdist/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -o 2048 dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
new file mode 100644
index 000000000000..422dd74cdedd
--- /dev/null
+++ b/srcpkgs/dnsdist/template
@@ -0,0 +1,39 @@
+# Template file for 'dnsdist'
+pkgname=dnsdist
+version=1.5.1
+revision=1
+build_style=gnu-configure
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
+ --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+ --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
+ --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
+ --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
+conf_files="/etc/dnsdist/dnsdist.conf"
+makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+ net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+ fstrm libedit gnutls tinycdb"
+hostmakedepends="autoconf automake pkgconf"
+short_desc="Dynamic DNS loadbalancer"
+maintainer="JailBird <jailbird@fdf.net>"
+license="GPL-2.0-only"
+homepage="https://dnsdist.org/"
+distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
+checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+
+system_accounts="_dnsdist"
+
+pre_configure() {
+	export CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
+	export LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
+	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
+	export LMDB_LIBS="-llmdb"
+}
+
+post_install() {
+	vsconf dnsdistconf.lua dnsdist.conf
+	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
+	vsv dnsdist
+	vlicense COPYING
+}
diff --git a/srcpkgs/dnsdist/update b/srcpkgs/dnsdist/update
new file mode 100644
index 000000000000..da8e072d218c
--- /dev/null
+++ b/srcpkgs/dnsdist/update
@@ -0,0 +1 @@
+ignore="*alpha[0-9]* *rc[0-9]* *beta[0-9]*"

From d9e1a2b0eaa8b74dc6fed6991e030024d3865c97 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 19:59:31 -0600
Subject: [PATCH 02/10] Fix lint complaints

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 422dd74cdedd..0d96d03c001f 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,12 +12,12 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
-hostmakedepends="autoconf automake pkgconf"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2.0-only"
+license="GPL-2"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 4ae3dc05527bfcbbf8179e7571296a497fc83caa Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:02:21 -0600
Subject: [PATCH 03/10] Lint fix #2

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 0d96d03c001f..6694f0dc0636 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -9,15 +9,15 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
+hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel tinycdb-devel h2o-devel"
-hostmakedepends="autoconf automake pkgconf"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
  fstrm libedit gnutls tinycdb"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
-license="GPL-2"
+license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
 checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1

From 8da2e61119e13ace3fe547bd4bac08a70dfdd7f5 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Fri, 22 Jan 2021 20:04:31 -0600
Subject: [PATCH 04/10] Okay, I'm dumb, removing the vlicense, sorry

---
 srcpkgs/dnsdist/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 6694f0dc0636..f25ca3cf455a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -35,5 +35,4 @@ post_install() {
 	vsconf dnsdistconf.lua dnsdist.conf
 	vinstall ${FILESDIR}/dnsdist.conf 644 etc/dnsdist
 	vsv dnsdist
-	vlicense COPYING
 }

From ab442d7692495108ef490c03981bc19e111f8502 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 01:51:47 -0600
Subject: [PATCH 05/10] Drop tinycdb, update example conf

---
 srcpkgs/dnsdist/files/dnsdist.conf | 18 +++++++++---------
 srcpkgs/dnsdist/template           |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/dnsdist/files/dnsdist.conf b/srcpkgs/dnsdist/files/dnsdist.conf
index d9c2dd7804a7..1d94926b0bac 100644
--- a/srcpkgs/dnsdist/files/dnsdist.conf
+++ b/srcpkgs/dnsdist/files/dnsdist.conf
@@ -11,16 +11,16 @@
 
 -- Throw requests to Cloudflare and Google and take the fastest answer
 
--- newServer("2606:4700:4700::1111") -- Cloudflare, primary IPv6
-newServer("1.1.1.1") -- Cloudflare, primary IPv4
--- newServer("2001:4860:4860::8888") -- Google, primary IPv6
-newServer("8.8.8.8") -- Google, primary IPv4
--- newServer("2606:4700:4700::1001") -- Cloudflare, secondary IPv6
-newServer("1.0.0.1") -- Cloudflare, secondary IPv4
--- newServer("2001:4860:4860::8844") -- Google, secondary IPv6
-newServer("8.8.4.4") -- Google, secondary IPv4
+-- newServer({address="2606:4700:4700::1111", tcpFastOpen=true}) -- Cloudflare, primary IPv6
+newServer({address="1.1.1.1", tcpFastOpen=true}) -- Cloudflare, primary IPv4
+-- newServer({address="2001:4860:4860::8888", tcpFastOpen=true}) -- Google, primary IPv6
+newServer({address="8.8.8.8", tcpFastOpen=true}) -- Google, primary IPv4
+-- newServer({address="2606:4700:4700::1001", tcpFastOpen=true}) -- Cloudflare, secondary IPv6
+newServer({address="1.0.0.1", tcpFastOpen=true}) -- Cloudflare, secondary IPv4
+-- newServer({address="2001:4860:4860::8844", tcpFastOpen=true}) -- Google, secondary IPv6
+newServer({address="8.8.4.4", tcpFastOpen=true}) -- Google, secondary IPv4
 
-setServerPolicy(roundrobin)
+setServerPolicy(firstAvailable)
 
 -- Basic caching of results, comment out to use less memory
 pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index f25ca3cf455a..97dccffa57ed 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -12,9 +12,9 @@ conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel tinycdb-devel h2o-devel"
+ libedit-devel gnutls-devel h2o-devel"
 depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
- fstrm libedit gnutls tinycdb"
+ fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

From 21979d357da622234d4d79f0cf825c39ffbffa2d Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:03:02 -0600
Subject: [PATCH 06/10] libressl -> openssl

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 97dccffa57ed..bc8a2262828d 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel libressl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT libressl lmdb
+depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 4a7b56bc746506f25c6873f8671c1b3e7cb004d6 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 02:15:15 -0600
Subject: [PATCH 07/10] Bump protobuf :(

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index bc8a2262828d..b83fb020d36a 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -10,10 +10,10 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf25 protobuf25-devel boost-devel re2-devel
+makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
  net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf25-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From ae035dceb8497d35ee7df8fd9b189f21331164bb Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 10 Mar 2021 19:08:32 -0600
Subject: [PATCH 08/10] Use regular Lua instead of LuaJIT

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index b83fb020d36a..9b67e6e90ef3 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -11,9 +11,9 @@ configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
 makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel LuaJIT-devel openssl-devel lmdb-devel fstrm-devel
+ net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
  libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap LuaJIT openssl lmdb
+depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
  fstrm libedit gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"

From 3172564f10986f56f3bdb38a630210d3675471f7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Sat, 22 May 2021 21:36:34 -0500
Subject: [PATCH 09/10] Update dnsdist to 1.6.0

---
 srcpkgs/dnsdist/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index 9b67e6e90ef3..d177b2e8d338 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -1,6 +1,6 @@
 # Template file for 'dnsdist'
 pkgname=dnsdist
-version=1.5.1
+version=1.6.0
 revision=1
 build_style=gnu-configure
 configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
@@ -20,7 +20,7 @@ maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"
 homepage="https://dnsdist.org/"
 distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
-checksum=cae759729a87703f4d09b0ed4227cb224aaaa252fa92f2432fd7116f560afbf1
+checksum=a7783a04d8d4ad2b0168ffaaf85ef95d5f557057b0462280684dd799d0cdd292
 
 system_accounts="_dnsdist"
 

From ca4eef195bf698f6f1b96d97172916af46c1858c Mon Sep 17 00:00:00 2001
From: jailbird777 <jailbird@fdf.net>
Date: Thu, 1 Jul 2021 02:15:11 -0500
Subject: [PATCH 10/10] Don't need protobuf anymore in 1.6.0

---
 srcpkgs/dnsdist/template | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template
index d177b2e8d338..b6df9e790642 100644
--- a/srcpkgs/dnsdist/template
+++ b/srcpkgs/dnsdist/template
@@ -3,18 +3,18 @@ pkgname=dnsdist
 version=1.6.0
 revision=1
 build_style=gnu-configure
-configure_args="--with-pic --with-gnu-ld --with-libsodium --with-protobuf
- --with-re2 --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
+configure_args="--with-pic --with-gnu-ld --with-libsodium --with-re2
+ --with-net-snmp --with-libcap --with-libssl --enable-dnscrypt
  --with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
  --with-service-group=_dnsdist --sbindir=/usr/bin --with-gnutls --with-lmdb
  --enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
 conf_files="/etc/dnsdist/dnsdist.conf"
 hostmakedepends="autoconf automake pkgconf"
-makedepends="libsodium-devel protobuf26 protobuf26-devel boost-devel re2-devel
- net-snmp-devel libcap-devel lua54-devel openssl-devel lmdb-devel fstrm-devel
- libedit-devel gnutls-devel h2o-devel"
-depends="libsodium libprotobuf26-lite re2 libnet-snmp libcap lua54 openssl lmdb
- fstrm libedit gnutls"
+makedepends="libsodium-devel boost-devel re2-devel net-snmp-devel libcap-devel
+ lua54-devel openssl-devel lmdb-devel fstrm-devel libedit-devel gnutls-devel
+ h2o-devel"
+depends="libsodium re2 libnet-snmp libcap lua54 openssl lmdb fstrm libedit
+ gnutls"
 short_desc="Dynamic DNS loadbalancer"
 maintainer="JailBird <jailbird@fdf.net>"
 license="GPL-2.0-only"

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (12 preceding siblings ...)
  2021-07-03  1:45 ` jailbird777
@ 2021-07-09  5:18 ` jailbird777
  2021-07-09 15:09 ` [PR REVIEW] " ericonr
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-09  5:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

New comment by jailbird777 on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-876921228

Comment:
I have an entire site that has been using this constantly since I first packaged it without any issues (at least since I switched from LuaJIT to Lua).  Is there a way to get this finally merged?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (13 preceding siblings ...)
  2021-07-09  5:18 ` jailbird777
@ 2021-07-09 15:09 ` ericonr
  2021-07-09 15:09 ` ericonr
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-09 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#discussion_r667014634

Comment:
I'm mostly against shipping this; they should provide an example file themselves.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (16 preceding siblings ...)
  2021-07-09 15:09 ` ericonr
@ 2021-07-09 15:09 ` ericonr
  2021-07-09 15:09 ` ericonr
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-09 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#discussion_r667018271

Comment:
This should probably use the `dnsdist.conf` upstream provides to install under `/etc`? Why did you go with a custom file?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (14 preceding siblings ...)
  2021-07-09 15:09 ` [PR REVIEW] " ericonr
@ 2021-07-09 15:09 ` ericonr
  2021-07-09 15:09 ` ericonr
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-09 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#discussion_r667017563

Comment:
Most of these are detected automatically by xbps-src:

```
 SONAME: liblua5.4.so.5.4 <-> lua54>=5.4.0_1
   SONAME: libedit.so.0 <-> libedit>=20130712.3.1_1
   SONAME: libsodium.so.23 <-> libsodium>=1.0.15_1
   SONAME: libfstrm.so.0 <-> fstrm>=0.5.0_1
   SONAME: libnetsnmpmibs.so.40 <-> libnet-snmp>=5.9_2
   SONAME: libnetsnmpagent.so.40 <-> libnet-snmp>=5.9_2
   SONAME: libnetsnmp.so.40 <-> libnet-snmp>=5.9_2
   SONAME: libcap.so.2 <-> libcap>=2.16_1
   SONAME: libre2.so.7 <-> re2>=2020.06.01_1
   SONAME: libssl.so.1.1 <-> libssl1.1>=1.1.1f_1
   SONAME: libcrypto.so.1.1 <-> libcrypto1.1>=1.1.1f_1
   SONAME: liblmdb.so.0 <-> lmdb>=0.9.18_2
   SONAME: libgnutls.so.30 <-> gnutls>=3.4.13_1
   SONAME: libpthread.so.0 <-> glibc>=2.32_1
   SONAME: libstdc++.so.6 <-> libstdc++>=4.4.0_1
   SONAME: libm.so.6 <-> glibc>=2.32_1
   SONAME: libgcc_s.so.1 <-> libgcc>=4.4.0_1
   SONAME: libc.so.6 <-> glibc>=2.32_1
```


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (17 preceding siblings ...)
  2021-07-09 15:09 ` ericonr
@ 2021-07-09 15:09 ` ericonr
  2021-07-13  0:23 ` jailbird777
  2021-07-13  0:23 ` [PR PATCH] [Closed]: " jailbird777
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-09 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#discussion_r667014993

Comment:
Should we have a config option for the `nofile` ulimit?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (15 preceding siblings ...)
  2021-07-09 15:09 ` ericonr
@ 2021-07-09 15:09 ` ericonr
  2021-07-09 15:09 ` ericonr
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-09 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#discussion_r667017912

Comment:
These three shouldn't be necessary, have you tried building without them?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (18 preceding siblings ...)
  2021-07-09 15:09 ` ericonr
@ 2021-07-13  0:23 ` jailbird777
  2021-07-13  0:23 ` [PR PATCH] [Closed]: " jailbird777
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-13  0:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by jailbird777 on void-packages repository

https://github.com/void-linux/void-packages/pull/28109#issuecomment-878684112

Comment:
I've somehow stupidly messed up my git repo beyond recognition, so I'm closing this PR and opening a new one, sorry.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Closed]: New package: dnsdist-1.6.0
  2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
                   ` (19 preceding siblings ...)
  2021-07-13  0:23 ` jailbird777
@ 2021-07-13  0:23 ` jailbird777
  20 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-13  0:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]

There's a closed pull request on the void-packages repository

New package: dnsdist-1.6.0
https://github.com/void-linux/void-packages/pull/28109

Description:
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl


This requires https://github.com/void-linux/void-packages/pull/28067

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.6.0
  2021-07-13  0:27 [PR PATCH] " jailbird777
  2021-07-17  4:00 ` ericonr
  2021-07-18 21:09 ` ericonr
@ 2021-07-27  0:13 ` jailbird777
  2 siblings, 0 replies; 25+ messages in thread
From: jailbird777 @ 2021-07-27  0:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New comment by jailbird777 on void-packages repository

https://github.com/void-linux/void-packages/pull/31932#issuecomment-887113324

Comment:
Done! Thanks! :)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.6.0
  2021-07-13  0:27 [PR PATCH] " jailbird777
  2021-07-17  4:00 ` ericonr
@ 2021-07-18 21:09 ` ericonr
  2021-07-27  0:13 ` jailbird777
  2 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-18 21:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31932#issuecomment-882116927

Comment:
If you can, please rebase this PR and squash the commits into a single one so I can merge it more easily once the repos are unlocked again :)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: dnsdist-1.6.0
  2021-07-13  0:27 [PR PATCH] " jailbird777
@ 2021-07-17  4:00 ` ericonr
  2021-07-18 21:09 ` ericonr
  2021-07-27  0:13 ` jailbird777
  2 siblings, 0 replies; 25+ messages in thread
From: ericonr @ 2021-07-17  4:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31932#issuecomment-881813334

Comment:
Nice work, I think this is close to mergeable !

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2021-07-27  0:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23  1:54 [PR PATCH] New package: dnsdist-1.5.1 jailbird777
2021-01-23  1:55 ` [PR PATCH] [Updated] " jailbird777
2021-01-23  1:59 ` jailbird777
2021-01-23  2:02 ` jailbird777
2021-01-23  2:04 ` jailbird777
2021-01-23  2:15 ` ericonr
2021-01-23  3:44 ` jailbird777
2021-01-23 19:47 ` ericonr
2021-01-23 20:09 ` benalb
2021-03-11  1:08 ` [PR PATCH] [Updated] " jailbird777
2021-05-23  2:37 ` jailbird777
2021-05-23  3:04 ` [PR PATCH] [Updated] New package: dnsdist-1.6.0 ericonr
2021-07-01  7:15 ` jailbird777
2021-07-03  1:45 ` jailbird777
2021-07-09  5:18 ` jailbird777
2021-07-09 15:09 ` [PR REVIEW] " ericonr
2021-07-09 15:09 ` ericonr
2021-07-09 15:09 ` ericonr
2021-07-09 15:09 ` ericonr
2021-07-09 15:09 ` ericonr
2021-07-13  0:23 ` jailbird777
2021-07-13  0:23 ` [PR PATCH] [Closed]: " jailbird777
2021-07-13  0:27 [PR PATCH] " jailbird777
2021-07-17  4:00 ` ericonr
2021-07-18 21:09 ` ericonr
2021-07-27  0:13 ` jailbird777

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).