From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] dnscrypt-proxy: put config in subdirectory of etc/.
Date: Thu, 13 Jan 2022 19:22:28 +0100 [thread overview]
Message-ID: <20220113182228._Cf7fLKw91b52w-TwqDvGXmPKngS8ZTIwF3QU49aXVs@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34517@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1678 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages dnscrypt
https://github.com/void-linux/void-packages/pull/34517
dnscrypt-proxy: put config in subdirectory of etc/.
this change prevents dnscrypt-proxy from polluting etc/ with lists of relays, resolvers, etc.
After enabling the service, I was seeing these files show up in etc/:
```
public-resolvers.md
public-resolvers.md.minisig
relays.md
relays.md.minisig
```
Not sure how it should notify that the config location has moved. Should there be an `INSTALL.msg`, or should the config be moved in post in an `INSTALL`?
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/34517.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnscrypt-34517.patch --]
[-- Type: text/x-diff, Size: 2644 bytes --]
From b59b24704487ec967b56fc6582d3966d626ed830 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 13 Dec 2021 15:22:51 -0500
Subject: [PATCH] dnscrypt-proxy: put config in subdirectory of etc/.
this change prevents dnscrypt-proxy from polluting etc/ with lists of
relays, resolvers, etc.
---
srcpkgs/dnscrypt-proxy/INSTALL.msg | 3 +++
srcpkgs/dnscrypt-proxy/files/dnscrypt-proxy/run | 2 +-
srcpkgs/dnscrypt-proxy/template | 6 +++---
3 files changed, 7 insertions(+), 4 deletions(-)
create mode 100644 srcpkgs/dnscrypt-proxy/INSTALL.msg
diff --git a/srcpkgs/dnscrypt-proxy/INSTALL.msg b/srcpkgs/dnscrypt-proxy/INSTALL.msg
new file mode 100644
index 000000000000..8f58dfe306ce
--- /dev/null
+++ b/srcpkgs/dnscrypt-proxy/INSTALL.msg
@@ -0,0 +1,3 @@
+The dnscrypt-proxy service now installs and looks for the config file in
+/etc/dnscrypt-proxy/dnscrypt-proxy.toml. Any previous configuration will
+need to be moved into this directory manually.
diff --git a/srcpkgs/dnscrypt-proxy/files/dnscrypt-proxy/run b/srcpkgs/dnscrypt-proxy/files/dnscrypt-proxy/run
index 6e240fb488e2..3f0cd6172435 100755
--- a/srcpkgs/dnscrypt-proxy/files/dnscrypt-proxy/run
+++ b/srcpkgs/dnscrypt-proxy/files/dnscrypt-proxy/run
@@ -1,3 +1,3 @@
#!/bin/sh
exec 2>&1
-exec dnscrypt-proxy -config /etc/dnscrypt-proxy.toml
+exec dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml
diff --git a/srcpkgs/dnscrypt-proxy/template b/srcpkgs/dnscrypt-proxy/template
index 0fdaa9769b3a..1e97041154c6 100644
--- a/srcpkgs/dnscrypt-proxy/template
+++ b/srcpkgs/dnscrypt-proxy/template
@@ -1,7 +1,7 @@
# Template file for 'dnscrypt-proxy'
pkgname=dnscrypt-proxy
version=2.1.1
-revision=2
+revision=3
build_style=go
go_import_path=github.com/dnscrypt/dnscrypt-proxy
go_package="${go_import_path}/dnscrypt-proxy"
@@ -12,12 +12,12 @@ homepage="https://github.com/DNSCrypt/dnscrypt-proxy"
changelog="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/ChangeLog"
distfiles="https://github.com/DNSCrypt/dnscrypt-proxy/archive/${version}.tar.gz"
checksum=cc4a2f274ce48c3731ff981e940e6475d912fb356a80481e91725e81d67bde14
-conf_files="/etc/dnscrypt-proxy.toml"
+conf_files="/etc/dnscrypt-proxy/dnscrypt-proxy.toml"
system_accounts="dnscrypt_proxy"
make_dirs="/var/log/dnscrypt-proxy 0750 dnscrypt_proxy dnscrypt_proxy"
post_install() {
- vconf dnscrypt-proxy/example-dnscrypt-proxy.toml dnscrypt-proxy.toml
+ vinstall dnscrypt-proxy/example-dnscrypt-proxy.toml 644 /etc/dnscrypt-proxy dnscrypt-proxy.toml
vlicense LICENSE
vsv dnscrypt-proxy
for example in dnscrypt-proxy/example*txt; do
next prev parent reply other threads:[~2022-01-13 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 20:36 [PR PATCH] " TinfoilSubmarine
2022-01-02 18:47 ` cinerea0
2022-01-13 18:22 ` TinfoilSubmarine [this message]
2022-01-13 18:25 ` TinfoilSubmarine
2022-03-24 23:37 ` TinfoilSubmarine
2022-03-28 21:05 ` daniel-eys
2022-07-18 2:13 ` github-actions
2022-08-01 2:14 ` [PR PATCH] [Closed]: " github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220113182228._Cf7fLKw91b52w-TwqDvGXmPKngS8ZTIwF3QU49aXVs@z \
--to=tinfoilsubmarine@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).