Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: encrypted-dns
@ 2023-08-02  5:14 MeganerdNL
  2023-08-02  5:28 ` [PR REVIEW] " classabbyamp
                   ` (51 more replies)
  0 siblings, 52 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-02  5:14 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From eca3ef8203d95e1cac1bbb6166dfe317d01564c3 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  10 +
 .../encrypted-dns/files/encrypted-dns.toml    | 255 ++++++++++++++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |   3 +
 .../encrypted-dns/patches/cargo-lock.patch    |  11 +
 srcpkgs/encrypted-dns/template                |  38 +++
 5 files changed, 317 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/encrypted-dns.toml
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 000000000000..5dda7e1e618a
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,10 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chown _encrypted_dns:_encrypted_dns var/lib/encrypted-dns
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns.toml b/srcpkgs/encrypted-dns/files/encrypted-dns.toml
new file mode 100644
index 000000000000..063e776b4833
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns.toml
@@ -0,0 +1,255 @@
+####################################################
+#                                                  #
+#        Encrypted DNS Server configuration        #
+#                                                  #
+####################################################
+
+
+
+##################################
+#         Global settings        #
+##################################
+
+
+## IP addresses and ports to listen to, as well as their external IP
+## If there is no NAT involved, `local` and `external` can be the same.
+## As many addresses as needed can be configured here, IPv4 and/or IPv6.
+## You should at least change the `external` IP address.
+
+### Example with both IPv4 and IPv6 addresses:
+# listen_addrs = [
+#     { local = "0.0.0.0:443",    external = "198.51.100.1:443" },
+#     { local = "[::]:443",       external = "[2001:db8::1]:443" }
+# ]
+
+listen_addrs = [
+    { local = "0.0.0.0:443",    external = "198.51.100.1:443" }
+]
+
+
+## Upstream DNS server and port
+
+upstream_addr = "9.9.9.9:53"
+
+
+## File name to save the state to
+
+state_file = "/var/lib/encrypted-dns/encrypted-dns.state"
+
+
+## UDP timeout in seconds
+
+udp_timeout = 10
+
+
+## TCP timeout in seconds
+
+tcp_timeout = 10
+
+
+## Maximum active UDP sockets
+
+udp_max_active_connections = 1000
+
+
+## Maximum active TCP connections
+
+tcp_max_active_connections = 250
+
+
+## Optional IP address to connect to upstream servers from.
+## Leave commented/undefined to automatically select it.
+
+# external_addr = "0.0.0.0"
+
+
+## Built-in DNS cache capacity
+
+cache_capacity = 100000
+
+
+## DNS cache: minimum TTL
+
+cache_ttl_min = 3600
+
+
+## DNS cache: max TTL
+
+cache_ttl_max = 86400
+
+
+## DNS cache: error TTL
+
+cache_ttl_error = 600
+
+
+## DNS cache: to avoid bursts of traffic for popular queries when an
+## RRSET expires, hold a TTL received from an upstream server for
+## `client_ttl_holdon` seconds before decreasing it in client responses.
+
+client_ttl_holdon = 60
+
+
+## Run as a background process
+
+daemonize = false
+
+
+## Log file, when running as a background process
+
+# log_file = "/tmp/encrypted-dns.log"
+
+
+## PID file
+
+# pid_file = "/tmp/encrypted-dns.pid"
+
+
+## User name to drop privileges to, when started as root.
+
+user = "_encrypted_dns"
+
+
+## Group name to drop privileges to, when started as root.
+
+group = "_encrypted_dns"
+
+
+## Path to chroot() to, when started as root.
+## The path to the state file is relative to the chroot base.
+
+# chroot = "/var/empty"
+
+
+## Queries sent to that name will return the client IP address.
+## This can be very useful for debugging, or to check that relaying works.
+
+# my_ip = "my.ip"
+
+
+####################################
+#         DNSCrypt settings        #
+####################################
+
+[dnscrypt]
+
+## Provider name (with or without the `2.dnscrypt-cert.` prefix)
+
+provider_name = "secure.dns.test"
+
+
+## Does the server support DNSSEC?
+
+dnssec = true
+
+
+## Does the server always returns correct answers (no filtering, including ad blocking)?
+
+no_filters = true
+
+
+## Set to `true` if the server doesn't keep any information that can be used to identify users
+
+no_logs = true
+
+
+## Key cache capacity, per certificate
+
+key_cache_capacity = 10000
+
+
+
+###############################
+#         TLS settings        #
+###############################
+
+[tls]
+
+## Where to proxy TLS connections to (e.g. DoH server)
+
+# upstream_addr = "127.0.0.1:4343"
+
+
+
+#######################################
+#        Server-side filtering        #
+#######################################
+
+[filtering]
+
+## List of domains to block, one per line
+
+# domain_blacklist = "/etc/domain_blacklist.txt"
+
+
+## List of undelegated TLDs
+## This is the list of nonexistent TLDs that queries are frequently observed for,
+## but will never resolve to anything. The server will immediately return a
+## synthesized NXDOMAIN response instead of hitting root servers.
+
+undelegated_list = "/var/lib/encrypted-dns/undelegated.txt"
+
+
+## Ignore A and AAAA queries for unqualified host names.
+
+ignore_unqualified_hostnames = true
+
+
+
+#########################
+#        Metrics        #
+#########################
+
+# [metrics]
+
+# type = "prometheus"
+# listen_addr = "0.0.0.0:9100"
+# path = "/metrics"
+
+
+
+################################
+#        Anonymized DNS        #
+################################
+
+[anonymized_dns]
+
+# Enable relaying support for Anonymized DNS
+
+enabled = false
+
+
+# Allowed upstream ports
+# This is a list of commonly used ports for encrypted DNS services
+
+allowed_ports = [ 443, 553, 853, 1443, 2053, 4343, 4434, 4443, 5353, 5443, 8443, 15353 ]
+
+
+# Allow all ports >= 1024 in addition to the list above
+
+allow_non_reserved_ports = false
+
+
+# Blacklisted upstream IP addresses
+
+blacklisted_ips = [ ]
+
+
+
+
+################################
+#        Access control        #
+################################
+
+[access_control]
+
+# Enable access control
+
+enabled = false
+
+# Only allow access to client queries including one of these random tokens
+# Tokens can be configured in the `query_meta` section of `dnscrypt-proxy` as
+# `query_meta = ["token:..."]` -- Replace ... with the token to use by the client.
+# Example: `query_meta = ["token:Y2oHkDJNHz"]`
+
+tokens = ["Y2oHkDJNHz", "G5zY3J5cHQtY", "C5zZWN1cmUuZG5z"]
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 000000000000..9bdff1794f55
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 000000000000..43092c2697e8
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 000000000000..edaa5d8ec586
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,38 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+
+conf_files="/etc/encrypted-dns/encrypted-dns.toml"
+
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+
+	# Install config file and list of undelegated TLDs
+	vinstall ${FILESDIR}/encrypted-dns.toml 0644 etc/encrypted-dns encrypted-dns.toml
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns undelegated.txt
+
+	vsv encrypted-dns
+}

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
  2023-08-02  5:28 ` [PR REVIEW] " classabbyamp
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:28 ` classabbyamp
                   ` (49 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281406632

Comment:
don't vendor this file, grab it from the builddir in post_install

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (2 preceding siblings ...)
  2023-08-02  5:28 ` classabbyamp
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:28 ` classabbyamp
                   ` (47 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281411639

Comment:
```suggestion
system_accounts="_encrypted_dns"
_encrypted_dns_homedir="/var/lib/encrypted-dns"
conf_files="/etc/encrypted-dns/encrypted-dns.toml"
mutable_files="/var/lib/encrypted-dns/undelegated.txt"
```

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
  2023-08-02  5:28 ` [PR REVIEW] " classabbyamp
  2023-08-02  5:28 ` classabbyamp
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:28 ` classabbyamp
                   ` (48 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281407503

Comment:
why is this needed?

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:28 ` classabbyamp
                   ` (50 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281407187

Comment:
```suggestion
	vsconf example-encrypted-dns.toml
```
this is an example config so it should probably not be installed in /etc, especially when it contains things that should be randomly generated by the user

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (3 preceding siblings ...)
  2023-08-02  5:28 ` classabbyamp
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:28 ` classabbyamp
                   ` (46 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281407308

Comment:
```suggestion
	vinstall undelegated.txt 0644 var/lib/encrypted-dns
```
redundant

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (4 preceding siblings ...)
  2023-08-02  5:28 ` classabbyamp
@ 2023-08-02  5:28 ` classabbyamp
  2023-08-02  5:35 ` MeganerdNL
                   ` (45 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-02  5:28 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281411095

Comment:
use `make_dirs`, but this may already be the default for a system account's homedir

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (5 preceding siblings ...)
  2023-08-02  5:28 ` classabbyamp
@ 2023-08-02  5:35 ` MeganerdNL
  2023-08-02 12:15 ` MeganerdNL
                   ` (44 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-02  5:35 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281415309

Comment:
> don't vendor this file, grab it from the builddir in post_install

I can do that, actually did it at first when creating this but then decided this (saw some other packages do it).

Is it ok to change (or add in) some values like _user/group_ in the example config via _vsed_  in the template to accommodate? I have the code here already.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (6 preceding siblings ...)
  2023-08-02  5:35 ` MeganerdNL
@ 2023-08-02 12:15 ` MeganerdNL
  2023-08-02 12:16 ` MeganerdNL
                   ` (43 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-02 12:15 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281821076

Comment:
> why is this needed?

It won't compile on musl otherwise. 
Complains of missing dependencies that are not there on glibc.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (7 preceding siblings ...)
  2023-08-02 12:15 ` MeganerdNL
@ 2023-08-02 12:16 ` MeganerdNL
  2023-08-04  7:48 ` MeganerdNL
                   ` (42 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-02 12:16 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281821076

Comment:
> why is this needed?

It won't compile  (or cross-compile at least) on musl otherwise. 
Complains of missing dependencies that are not there on glibc.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (8 preceding siblings ...)
  2023-08-02 12:16 ` MeganerdNL
@ 2023-08-04  7:48 ` MeganerdNL
  2023-08-04  9:33 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (41 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  7:48 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281821076

Comment:
> why is this needed?

XBPS_TARGET_NO_ATOMIC8 line is quite common for packages using libatomic.
The $XBPS_TARGET_MACHINE line is because it won't compile  (or cross-compile at least) on musl otherwise. 
Complains of missing dependencies that are not there on glibc.



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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (9 preceding siblings ...)
  2023-08-04  7:48 ` MeganerdNL
@ 2023-08-04  9:33 ` MeganerdNL
  2023-08-04  9:37 ` MeganerdNL
                   ` (40 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:33 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From c4a63efcd5c01e3506ea45f1ca69c7d0d19ede84 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 +++++
 srcpkgs/encrypted-dns/INSTALL.msg             |  5 +++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 33 +++++++++++++++++++
 5 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/INSTALL.msg
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/INSTALL.msg b/srcpkgs/encrypted-dns/INSTALL.msg
new file mode 100644
index 0000000000000..64cf9aded19aa
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL.msg
@@ -0,0 +1,5 @@
+NOTE:
+Before enabling / starting the service, you must install a 
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+user/group for this package is: _encrypted_dns/_encrypted_dns
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..044a5fabf0fec
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,33 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+        vmkdir etc/encrypted-dns
+	touch ${DESTDIR}/etc/encrypted-dns/.placeholder
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (10 preceding siblings ...)
  2023-08-04  9:33 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-08-04  9:37 ` MeganerdNL
  2023-08-04  9:40 ` [PR REVIEW] " MeganerdNL
                   ` (39 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 24f1e900149e8a435afb9a98cb937ce489026e83 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 +++++
 srcpkgs/encrypted-dns/INSTALL.msg             |  7 ++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 33 +++++++++++++++++++
 5 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/INSTALL.msg
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/INSTALL.msg b/srcpkgs/encrypted-dns/INSTALL.msg
new file mode 100644
index 0000000000000..6c6fcec3bc6d6
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL.msg
@@ -0,0 +1,7 @@
+NOTE:
+Before enabling / starting the service, you must install a 
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+user/group for this package is: _encrypted_dns/_encrypted_dns
+The state file should be installed in /var/lib/encrypted-dns
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..044a5fabf0fec
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,33 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+        vmkdir etc/encrypted-dns
+	touch ${DESTDIR}/etc/encrypted-dns/.placeholder
+	vsv encrypted-dns
+}

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (11 preceding siblings ...)
  2023-08-04  9:37 ` MeganerdNL
@ 2023-08-04  9:40 ` MeganerdNL
  2023-08-04  9:41 ` MeganerdNL
                   ` (38 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:40 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284212437

Comment:
chown is indeed not needed, removed.
chmod is still needed, because /var/lib/encrypted-dns should not be world-readable per package documentation.
make_dirs does not work here, because _encrypted_dns_homedir still installes as 755 and make_dirs will not override this.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (12 preceding siblings ...)
  2023-08-04  9:40 ` [PR REVIEW] " MeganerdNL
@ 2023-08-04  9:41 ` MeganerdNL
  2023-08-04  9:41 ` MeganerdNL
                   ` (37 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:41 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1281415309

Comment:
I removed it and made INSTALL.msg with a note,

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (13 preceding siblings ...)
  2023-08-04  9:41 ` MeganerdNL
@ 2023-08-04  9:41 ` MeganerdNL
  2023-08-04  9:41 ` MeganerdNL
                   ` (36 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:41 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284213430

Comment:
done.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (14 preceding siblings ...)
  2023-08-04  9:41 ` MeganerdNL
@ 2023-08-04  9:41 ` MeganerdNL
  2023-08-04  9:42 ` MeganerdNL
                   ` (35 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:41 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284213652

Comment:
done.

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (15 preceding siblings ...)
  2023-08-04  9:41 ` MeganerdNL
@ 2023-08-04  9:42 ` MeganerdNL
  2023-08-04  9:43 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (34 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:42 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284213830

Comment:
done.

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (16 preceding siblings ...)
  2023-08-04  9:42 ` MeganerdNL
@ 2023-08-04  9:43 ` MeganerdNL
  2023-08-04  9:59 ` MeganerdNL
                   ` (33 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:43 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From ba00c7185a6446ef057a0a4111279386097e420e Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 +++++
 srcpkgs/encrypted-dns/INSTALL.msg             |  7 ++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 33 +++++++++++++++++++
 5 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/INSTALL.msg
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/INSTALL.msg b/srcpkgs/encrypted-dns/INSTALL.msg
new file mode 100644
index 0000000000000..6c6fcec3bc6d6
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL.msg
@@ -0,0 +1,7 @@
+NOTE:
+Before enabling / starting the service, you must install a 
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+user/group for this package is: _encrypted_dns/_encrypted_dns
+The state file should be installed in /var/lib/encrypted-dns
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..9ab292accfc9d
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,33 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vmkdir etc/encrypted-dns
+	touch ${DESTDIR}/etc/encrypted-dns/.placeholder
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (17 preceding siblings ...)
  2023-08-04  9:43 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-08-04  9:59 ` MeganerdNL
  2023-08-04 12:58 ` [PR REVIEW] " classabbyamp
                   ` (32 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04  9:59 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 870ea93db6f50af61483d8c44b38b17a432e3fc7 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 +++++
 srcpkgs/encrypted-dns/INSTALL.msg             |  8 +++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 33 +++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/INSTALL.msg
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/INSTALL.msg b/srcpkgs/encrypted-dns/INSTALL.msg
new file mode 100644
index 0000000000000..6a41af036be2f
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL.msg
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a 
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..9ab292accfc9d
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,33 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vmkdir etc/encrypted-dns
+	touch ${DESTDIR}/etc/encrypted-dns/.placeholder
+	vsv encrypted-dns
+}

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (18 preceding siblings ...)
  2023-08-04  9:59 ` MeganerdNL
@ 2023-08-04 12:58 ` classabbyamp
  2023-08-04 12:58 ` classabbyamp
                   ` (31 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 12:58 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284380786

Comment:
```suggestion
```
the user can create the dir themselves (and `make_dirs=` is the proper way to do this anyways)

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (19 preceding siblings ...)
  2023-08-04 12:58 ` [PR REVIEW] " classabbyamp
@ 2023-08-04 12:58 ` classabbyamp
  2023-08-04 12:58 ` classabbyamp
                   ` (30 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 12:58 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284378445

Comment:
this should be `files/README.voidlinux`, `INSTALL.msg` is for very important messages

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (21 preceding siblings ...)
  2023-08-04 12:58 ` classabbyamp
@ 2023-08-04 12:58 ` classabbyamp
  2023-08-04 12:58 ` classabbyamp
                   ` (28 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 12:58 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284389362

Comment:
use `make_dirs=`

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (20 preceding siblings ...)
  2023-08-04 12:58 ` classabbyamp
@ 2023-08-04 12:58 ` classabbyamp
  2023-08-04 12:58 ` classabbyamp
                   ` (29 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 12:58 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284379737

Comment:
works fine with a musl masterdir:

```
$ ./xbps-src -m masterdir-musl -a armv6l-musl pkg encrypted-dns
...
=> Registering new packages to /host/binpkgs/encrypted-dns
index: added `encrypted-dns-0.9.13_1' (armv6l-musl).
index: 1 packages registered.
```

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (22 preceding siblings ...)
  2023-08-04 12:58 ` classabbyamp
@ 2023-08-04 12:58 ` classabbyamp
  2023-08-04 18:08 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (27 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 12:58 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284388863

Comment:
most of this info is either probably unnecessary or findable by inspecting the package

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (23 preceding siblings ...)
  2023-08-04 12:58 ` classabbyamp
@ 2023-08-04 18:08 ` MeganerdNL
  2023-08-04 18:17 ` MeganerdNL
                   ` (26 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 35a2f37f8757d00cc241872d1472c58860f1d762 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 ++++++++
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 +++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 +++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++++
 srcpkgs/encrypted-dns/template                | 23 +++++++++++++++++++
 5 files changed, 54 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..b5232ce35687c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..dcd3528067df0
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,23 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (24 preceding siblings ...)
  2023-08-04 18:08 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-08-04 18:17 ` MeganerdNL
  2023-08-04 18:18 ` MeganerdNL
                   ` (25 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From e08d5c84e74bcb3ccc1bfa41272759dba249cdbc Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 ++++++
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 5 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..b5232ce35687c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..e1abd9d22265e
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+        XBPS_CROSS_RUSTFLAGS+=" -latomic"
+        makedepends+=" libatomic-devel"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (25 preceding siblings ...)
  2023-08-04 18:17 ` MeganerdNL
@ 2023-08-04 18:18 ` MeganerdNL
  2023-08-04 18:22 ` MeganerdNL
                   ` (24 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:18 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 32066ab5bfb53ab2d335f0268a40898ea0af205f Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 ++++++
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 5 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..b5232ce35687c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..e1cb645757b3a
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (26 preceding siblings ...)
  2023-08-04 18:18 ` MeganerdNL
@ 2023-08-04 18:22 ` MeganerdNL
  2023-08-04 18:29 ` MeganerdNL
                   ` (23 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:22 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 2265798ef3e5f03538d7e0480eebd2af9434f344 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 +++++++
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 +++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 27 +++++++++++++++++++
 5 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..b5232ce35687c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..634f7bb33cc6f
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,27 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (27 preceding siblings ...)
  2023-08-04 18:22 ` MeganerdNL
@ 2023-08-04 18:29 ` MeganerdNL
  2023-08-04 18:41 ` MeganerdNL
                   ` (22 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:29 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From dde5eecb5810099e5b509097b69f6b88034a6654 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/INSTALL                 |  9 ++++++
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 +++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 32 +++++++++++++++++++
 5 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/INSTALL
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/INSTALL b/srcpkgs/encrypted-dns/INSTALL
new file mode 100644
index 0000000000000..1fdde5c37b4ae
--- /dev/null
+++ b/srcpkgs/encrypted-dns/INSTALL
@@ -0,0 +1,9 @@
+case "$ACTION" in
+    post)
+        if [ "$UPDATE" = "yes" ] ; then
+            :
+        else
+            chmod 750 var/lib/encrypted-dns
+        fi
+        ;;
+esac
diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..b5232ce35687c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in : /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..08cdf9530a602
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,32 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (28 preceding siblings ...)
  2023-08-04 18:29 ` MeganerdNL
@ 2023-08-04 18:41 ` MeganerdNL
  2023-08-04 18:51 ` [PR REVIEW] " classabbyamp
                   ` (21 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:41 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 3e8197ab13c7ec6b79051cbd09366232256f331b Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 +++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 +++++++
 srcpkgs/encrypted-dns/template                | 33 +++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..3114951d8d6f4
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..8785e764da5b9
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,33 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl) makedepends+=" musl-devel libstdc++";;
+esac
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (29 preceding siblings ...)
  2023-08-04 18:41 ` MeganerdNL
@ 2023-08-04 18:51 ` classabbyamp
  2023-08-04 18:57 ` MeganerdNL
                   ` (20 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 18:51 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284379737

Comment:
works fine with a musl masterdir without those:

```
$ ./xbps-src -m masterdir-musl -a armv6l-musl pkg encrypted-dns
...
=> Registering new packages to /host/binpkgs/encrypted-dns
index: added `encrypted-dns-0.9.13_1' (armv6l-musl).
index: 1 packages registered.
```

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (30 preceding siblings ...)
  2023-08-04 18:51 ` [PR REVIEW] " classabbyamp
@ 2023-08-04 18:57 ` MeganerdNL
  2023-08-04 19:01 ` [PR REVIEW] " MeganerdNL
                   ` (19 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 18:57 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1666047582

Comment:
@classabbyamp

Ready for review again.

- Regarding these lines in _template_:

```
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	XBPS_CROSS_RUSTFLAGS+=" -latomic"
	makedepends+=" libatomic-devel"
fi

case "$XBPS_TARGET_MACHINE" in
	*-musl) makedepends+=" musl-devel libstdc++";;
esac
```

You said it build fine with:

> ./xbps-src -m masterdir-musl -a armv6l-musl pkg encrypted-dns

But I cannot reproduce that on my machine.
Also: I tried to remove both or one of the blocks _each_ and they always fail to compile in **Github on the musl-builds too**. So not only on my machine when cross-compiling.  There are several other packages that need these blocks, or one of them. Let me know how to fix it otherwise, because I cannot make it work without these blocks.

- As with the make_dirs remark: you were of course right. I had to change the order of _make_dirs_ and __homedir_  and then the mode (750) was correct after installing.

- Made a files/README.voidlinux file instead of INSTALL.msg, although I  think that the creation of a mandatory configfile that has an example is quite important. There are plenty of packages with far less important information in that file, but maybe that's something that slipped in in the past.

Thanks.


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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (31 preceding siblings ...)
  2023-08-04 18:57 ` MeganerdNL
@ 2023-08-04 19:01 ` MeganerdNL
  2023-08-04 19:01 ` MeganerdNL
                   ` (18 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 19:01 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284749683

Comment:
Not reproducible.  Also failing on Github. See comment in main section. 

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

* Re: [PR REVIEW] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (32 preceding siblings ...)
  2023-08-04 19:01 ` [PR REVIEW] " MeganerdNL
@ 2023-08-04 19:01 ` MeganerdNL
  2023-08-04 19:20 ` classabbyamp
                   ` (17 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 19:01 UTC (permalink / raw)
  To: ml

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

New review comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#discussion_r1284749683

Comment:
Not reproducible.  Also failing on Github. See comment in main section of PR.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (33 preceding siblings ...)
  2023-08-04 19:01 ` MeganerdNL
@ 2023-08-04 19:20 ` classabbyamp
  2023-08-04 20:52 ` MeganerdNL
                   ` (16 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: classabbyamp @ 2023-08-04 19:20 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1666069240

Comment:
because of recent changes to the cross toolchains, only this is needed:
```diff
  if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
  	XBPS_CROSS_RUSTFLAGS+=" -latomic"
- 	makedepends+=" libatomic-devel"
  fi
- 
- case "$XBPS_TARGET_MACHINE" in
- 	*-musl) makedepends+=" musl-devel libstdc++";;
- esac
```
(tested with a musl masterdir (`xbps-src -m masterdir-musl binary-bootstrap x86_64-musl` and `xbps-src -m masterdir-musl -a armv6l-musl pkg encrypted-dns`))

> I think that the creation of a mandatory configfile that has an example is quite important

by important I mean things like breaking changes (see pipewire, for example). things like optional dependencies or getting-started steps are not important enough and just add more noise that users will probably ignore.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (34 preceding siblings ...)
  2023-08-04 19:20 ` classabbyamp
@ 2023-08-04 20:52 ` MeganerdNL
  2023-08-11  8:52 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (15 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-04 20:52 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1666169370

Comment:
> because of recent changes to the cross toolchains, only this is needed:
> 
> ```diff
>   if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
>   	XBPS_CROSS_RUSTFLAGS+=" -latomic"
> - 	makedepends+=" libatomic-devel"
>   fi
> - 
> - case "$XBPS_TARGET_MACHINE" in
> - 	*-musl) makedepends+=" musl-devel libstdc++";;
> - esac
> ```
> 
> (tested with a musl masterdir (`xbps-src -m masterdir-musl binary-bootstrap x86_64-musl` and `xbps-src -m masterdir-musl -a armv6l-musl pkg encrypted-dns`))
> 
> > I think that the creation of a mandatory configfile that has an example is quite important
> 
> by important I mean things like breaking changes (see pipewire, for example). things like optional dependencies or getting-started steps are not important enough and just add more noise that users will probably ignore.

Yes, it worked with the new RUSTFLAGS!

I see about the important messages, thanks.

Please review.

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (35 preceding siblings ...)
  2023-08-04 20:52 ` MeganerdNL
@ 2023-08-11  8:52 ` MeganerdNL
  2023-08-11  8:53 ` MeganerdNL
                   ` (14 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-11  8:52 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 177335f1716bb0192b2af5b7a0421a1f4e0b8197 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..3114951d8d6f4
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..3d7226dde8c07
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (36 preceding siblings ...)
  2023-08-11  8:52 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-08-11  8:53 ` MeganerdNL
  2023-09-02 15:27 ` MeganerdNL
                   ` (13 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-08-11  8:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 94069fd8bf1783f3584b9c8ab6dc5c71a890fc45 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..3114951d8d6f4
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..3d7226dde8c07
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (37 preceding siblings ...)
  2023-08-11  8:53 ` MeganerdNL
@ 2023-09-02 15:27 ` MeganerdNL
  2023-09-02 15:31 ` MeganerdNL
                   ` (12 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-02 15:27 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 9a3ec44cc5bfaca7d35729f8eea964a60dea9053 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..3114951d8d6f4
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..3d7226dde8c07
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (38 preceding siblings ...)
  2023-09-02 15:27 ` MeganerdNL
@ 2023-09-02 15:31 ` MeganerdNL
  2023-09-02 18:09 ` Duncaen
                   ` (11 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-02 15:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 2ecebd94382b694b5e660a029119a542c29e2b08 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  8 ++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 ++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 28 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..3114951d8d6f4
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,8 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+Example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for this package is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /var/lib/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..3d7226dde8c07
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,28 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+mutable_files="/var/lib/encrypted-dns/undelegated.txt"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 var/lib/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (39 preceding siblings ...)
  2023-09-02 15:31 ` MeganerdNL
@ 2023-09-02 18:09 ` Duncaen
  2023-09-02 19:12 ` MeganerdNL
                   ` (10 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: Duncaen @ 2023-09-02 18:09 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1703903463

Comment:
Why is `undelegated.txt` in `/var` instead of `/etc`?

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (40 preceding siblings ...)
  2023-09-02 18:09 ` Duncaen
@ 2023-09-02 19:12 ` MeganerdNL
  2023-09-02 19:53 ` Duncaen
                   ` (9 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-02 19:12 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1703915881

Comment:
> Why is `undelegated.txt` in `/var` instead of `/etc`?

It's not a config file for the user to edit.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (41 preceding siblings ...)
  2023-09-02 19:12 ` MeganerdNL
@ 2023-09-02 19:53 ` Duncaen
  2023-09-02 22:11 ` MeganerdNL
                   ` (8 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: Duncaen @ 2023-09-02 19:53 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1703924629

Comment:
> > Why is `undelegated.txt` in `/var` instead of `/etc`?
> 
> It's not a config file for the user to edit.

Then I don't understand why its marked mutable, it looks like a configuration file to me.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (42 preceding siblings ...)
  2023-09-02 19:53 ` Duncaen
@ 2023-09-02 22:11 ` MeganerdNL
  2023-09-03 11:26 ` Duncaen
                   ` (7 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-02 22:11 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1703951940

Comment:
It's distributed with the package, so mutable (that's how I understand in the manual). Of course it _can_ be edited by the user, if it wants to. Should I put in etc then?

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (43 preceding siblings ...)
  2023-09-02 22:11 ` MeganerdNL
@ 2023-09-03 11:26 ` Duncaen
  2023-09-03 11:26 ` Duncaen
                   ` (6 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: Duncaen @ 2023-09-03 11:26 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1704228322

Comment:
I would generally stick with what upstream does, which is to use `/etc`.

`mutable_files` basically just disables `xbps-pkgdb` hash checks for the specified, package updates will still overwrite them.

This is generally not useful for most packages and the manual description should be more clear about it.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (44 preceding siblings ...)
  2023-09-03 11:26 ` Duncaen
@ 2023-09-03 11:26 ` Duncaen
  2023-09-03 20:47 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (5 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: Duncaen @ 2023-09-03 11:26 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1704228322

Comment:
I would generally stick with what upstream does, which is to use `/etc`.

`mutable_files` basically just disables `xbps-pkgdb` hash checks for the specified, package updates will still overwrite them.

This is generally not useful for most packages and the manual description should be more clear about it. Its more likely to be used for things that are self updating and not to allow the user to make changes as opposed to configuration files.

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (45 preceding siblings ...)
  2023-09-03 11:26 ` Duncaen
@ 2023-09-03 20:47 ` MeganerdNL
  2023-09-03 20:57 ` MeganerdNL
                   ` (4 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-03 20:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 847cda05d2585b7b675b1434df1ad4f7bf963d56 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  9 +++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 +++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 27 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..df37baaedd359
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,9 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+An example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+You can copy that file to /etc/encrypted-dns/encrypted-dns.toml and adjust it.
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for encrypted-dns is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /etc/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..8b8fa7046004c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,27 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 etc/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (46 preceding siblings ...)
  2023-09-03 20:47 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-09-03 20:57 ` MeganerdNL
  2023-09-03 20:58 ` MeganerdNL
                   ` (3 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-03 20:57 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1704399833

Comment:
> I would generally stick with what upstream does, which is to use `/etc`.
> 
> `mutable_files` basically just disables `xbps-pkgdb` hash checks for the specified, package updates will still overwrite them.
> 
> This is generally not useful for most packages and the manual description should be more clear about it. Its more likely to be used for things that are self updating and not to allow the user to make changes as opposed to configuration files.

Thanks for the clearing up, I understand.
undelegated.txt is now in /etc/encrypted-dns in latest push.

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (47 preceding siblings ...)
  2023-09-03 20:57 ` MeganerdNL
@ 2023-09-03 20:58 ` MeganerdNL
  2023-09-15 10:08 ` [PR PATCH] [Updated] " MeganerdNL
                   ` (2 subsequent siblings)
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-03 20:58 UTC (permalink / raw)
  To: ml

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

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1704399833

Comment:
> I would generally stick with what upstream does, which is to use `/etc`.
> 
> `mutable_files` basically just disables `xbps-pkgdb` hash checks for the specified, package updates will still overwrite them.
> 
> This is generally not useful for most packages and the manual description should be more clear about it. Its more likely to be used for things that are self updating and not to allow the user to make changes as opposed to configuration files.

Thanks for the clearing up, I understand.
`undelegated.txt` is now in `/etc/encrypted-dns` in latest push.

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

* Re: [PR PATCH] [Updated] New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (48 preceding siblings ...)
  2023-09-03 20:58 ` MeganerdNL
@ 2023-09-15 10:08 ` MeganerdNL
  2023-12-15  1:46 ` github-actions
  2023-12-30  1:45 ` [PR PATCH] [Closed]: " github-actions
  51 siblings, 0 replies; 53+ messages in thread
From: MeganerdNL @ 2023-09-15 10:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MeganerdNL/void-packages encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

New package: encrypted-dns
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

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

From 47648ae38c8a0b77af9c8b708c798ffd451e4407 Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sun, 30 Jul 2023 13:40:26 +0200
Subject: [PATCH] New package: encrypted-dns

---
 srcpkgs/encrypted-dns/files/README.voidlinux  |  9 +++++++
 srcpkgs/encrypted-dns/files/encrypted-dns/run |  3 +++
 .../encrypted-dns/patches/cargo-lock.patch    | 11 ++++++++
 srcpkgs/encrypted-dns/template                | 27 +++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/encrypted-dns/files/README.voidlinux
 create mode 100755 srcpkgs/encrypted-dns/files/encrypted-dns/run
 create mode 100644 srcpkgs/encrypted-dns/patches/cargo-lock.patch
 create mode 100644 srcpkgs/encrypted-dns/template

diff --git a/srcpkgs/encrypted-dns/files/README.voidlinux b/srcpkgs/encrypted-dns/files/README.voidlinux
new file mode 100644
index 0000000000000..df37baaedd359
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/README.voidlinux
@@ -0,0 +1,9 @@
+Before enabling / starting the service, you must install a
+configuration file in /etc/encrypted-dns/encrypted-dns.toml
+An example is in: /usr/share/examples/encrypted-dns/example-encrypted-dns.toml
+You can copy that file to /etc/encrypted-dns/encrypted-dns.toml and adjust it.
+
+Notes for /etc/encrypted-dns/encrypted-dns.toml
+- user/group for encrypted-dns is: _encrypted_dns/_encrypted_dns
+- The encrypted-dns.state file should be in /var/lib/encrypted-dns
+- Location for list of undelegated TLDs is /etc/encrypted-dns/undelegated.txt
diff --git a/srcpkgs/encrypted-dns/files/encrypted-dns/run b/srcpkgs/encrypted-dns/files/encrypted-dns/run
new file mode 100755
index 0000000000000..9bdff1794f551
--- /dev/null
+++ b/srcpkgs/encrypted-dns/files/encrypted-dns/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec encrypted-dns -c /etc/encrypted-dns/encrypted-dns.toml
diff --git a/srcpkgs/encrypted-dns/patches/cargo-lock.patch b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
new file mode 100644
index 0000000000000..43092c2697e84
--- /dev/null
+++ b/srcpkgs/encrypted-dns/patches/cargo-lock.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -226,7 +226,7 @@
+ 
+ [[package]]
+ name = "encrypted-dns"
+-version = "0.9.12"
++version = "0.9.13"
+ dependencies = [
+  "anyhow",
+  "byteorder",
diff --git a/srcpkgs/encrypted-dns/template b/srcpkgs/encrypted-dns/template
new file mode 100644
index 0000000000000..8b8fa7046004c
--- /dev/null
+++ b/srcpkgs/encrypted-dns/template
@@ -0,0 +1,27 @@
+# Template file for 'encrypted-dns'
+pkgname=encrypted-dns
+version=0.9.13
+revision=1
+build_style=cargo
+makedepends="libsodium-devel"
+short_desc="DNSCrypt v2 server with support for DNSSEC and DoH forwarding"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/encrypted-dns-server"
+distfiles="https://github.com/DNSCrypt/encrypted-dns-server/archive/refs/tags/${version}.tar.gz"
+checksum=5e4f9143313bf58888c31ec4e220e9fb65b28b60fe5b6aff872f9f2ecb7537d5
+make_dirs="/var/lib/encrypted-dns 0750 _encrypted_dns _encrypted_dns"
+system_accounts="_encrypted_dns"
+_encrypted_dns_homedir="/var/lib/encrypted-dns"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vinstall undelegated.txt 0644 etc/encrypted-dns
+	vsconf example-encrypted-dns.toml
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv encrypted-dns
+}

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

* Re: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (49 preceding siblings ...)
  2023-09-15 10:08 ` [PR PATCH] [Updated] " MeganerdNL
@ 2023-12-15  1:46 ` github-actions
  2023-12-30  1:45 ` [PR PATCH] [Closed]: " github-actions
  51 siblings, 0 replies; 53+ messages in thread
From: github-actions @ 2023-12-15  1:46 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/45381#issuecomment-1857140286

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

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

* Re: [PR PATCH] [Closed]: New package: encrypted-dns
  2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
                   ` (50 preceding siblings ...)
  2023-12-15  1:46 ` github-actions
@ 2023-12-30  1:45 ` github-actions
  51 siblings, 0 replies; 53+ messages in thread
From: github-actions @ 2023-12-30  1:45 UTC (permalink / raw)
  To: ml

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

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

New package: encrypted-dns
https://github.com/void-linux/void-packages/pull/45381

Description:
**DNSCrypt v2 server with support for DNSSEC, DoH forwarding and anonymized DNSCrypt**

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686-glibc
  - aarch64-glibc
  - aarch64-musl
  - armv7l-glibc
  - armv7l-musl
  - armv6l-glibc
  - armv6l-musl

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

end of thread, other threads:[~2023-12-30  1:45 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-02  5:14 [PR PATCH] New package: encrypted-dns MeganerdNL
2023-08-02  5:28 ` [PR REVIEW] " classabbyamp
2023-08-02  5:28 ` classabbyamp
2023-08-02  5:28 ` classabbyamp
2023-08-02  5:28 ` classabbyamp
2023-08-02  5:28 ` classabbyamp
2023-08-02  5:28 ` classabbyamp
2023-08-02  5:35 ` MeganerdNL
2023-08-02 12:15 ` MeganerdNL
2023-08-02 12:16 ` MeganerdNL
2023-08-04  7:48 ` MeganerdNL
2023-08-04  9:33 ` [PR PATCH] [Updated] " MeganerdNL
2023-08-04  9:37 ` MeganerdNL
2023-08-04  9:40 ` [PR REVIEW] " MeganerdNL
2023-08-04  9:41 ` MeganerdNL
2023-08-04  9:41 ` MeganerdNL
2023-08-04  9:41 ` MeganerdNL
2023-08-04  9:42 ` MeganerdNL
2023-08-04  9:43 ` [PR PATCH] [Updated] " MeganerdNL
2023-08-04  9:59 ` MeganerdNL
2023-08-04 12:58 ` [PR REVIEW] " classabbyamp
2023-08-04 12:58 ` classabbyamp
2023-08-04 12:58 ` classabbyamp
2023-08-04 12:58 ` classabbyamp
2023-08-04 12:58 ` classabbyamp
2023-08-04 18:08 ` [PR PATCH] [Updated] " MeganerdNL
2023-08-04 18:17 ` MeganerdNL
2023-08-04 18:18 ` MeganerdNL
2023-08-04 18:22 ` MeganerdNL
2023-08-04 18:29 ` MeganerdNL
2023-08-04 18:41 ` MeganerdNL
2023-08-04 18:51 ` [PR REVIEW] " classabbyamp
2023-08-04 18:57 ` MeganerdNL
2023-08-04 19:01 ` [PR REVIEW] " MeganerdNL
2023-08-04 19:01 ` MeganerdNL
2023-08-04 19:20 ` classabbyamp
2023-08-04 20:52 ` MeganerdNL
2023-08-11  8:52 ` [PR PATCH] [Updated] " MeganerdNL
2023-08-11  8:53 ` MeganerdNL
2023-09-02 15:27 ` MeganerdNL
2023-09-02 15:31 ` MeganerdNL
2023-09-02 18:09 ` Duncaen
2023-09-02 19:12 ` MeganerdNL
2023-09-02 19:53 ` Duncaen
2023-09-02 22:11 ` MeganerdNL
2023-09-03 11:26 ` Duncaen
2023-09-03 11:26 ` Duncaen
2023-09-03 20:47 ` [PR PATCH] [Updated] " MeganerdNL
2023-09-03 20:57 ` MeganerdNL
2023-09-03 20:58 ` MeganerdNL
2023-09-15 10:08 ` [PR PATCH] [Updated] " MeganerdNL
2023-12-15  1:46 ` github-actions
2023-12-30  1:45 ` [PR PATCH] [Closed]: " github-actions

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).