Github messages for voidlinux
 help / color / mirror / Atom feed
From: MeganerdNL <MeganerdNL@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: doh-proxy
Date: Fri, 15 Sep 2023 12:10:09 +0200	[thread overview]
Message-ID: <20230915101009.iLga0_UE-PCKheTRQ6YFaSIKj1ZukU5EEW3ib7WAYL4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45434@inbox.vuxu.org>

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

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

https://github.com/MeganerdNL/void-packages doh-proxy
https://github.com/void-linux/void-packages/pull/45434

New package: doh-proxy
**Fast and secure DoH (DNS-over-HTTPS) and ODoH (Oblivious DoH) server**

#### 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
  - armv6l-glibc
  - armv6l-musl
  - aarch64-glibc

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

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

From 9f11d4559546f30eb3b6bfedf7b4bd0ab25f5a2a Mon Sep 17 00:00:00 2001
From: MeganerdNL <meganerd@meganerd.nl>
Date: Sat, 5 Aug 2023 09:18:51 +0200
Subject: [PATCH] New package: doh-proxy

---
 srcpkgs/doh-proxy/files/README.voidlinux |  9 ++++++++
 srcpkgs/doh-proxy/files/doh-proxy/run    |  4 ++++
 srcpkgs/doh-proxy/template               | 26 ++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/doh-proxy/files/README.voidlinux
 create mode 100755 srcpkgs/doh-proxy/files/doh-proxy/run
 create mode 100644 srcpkgs/doh-proxy/template

diff --git a/srcpkgs/doh-proxy/files/README.voidlinux b/srcpkgs/doh-proxy/files/README.voidlinux
new file mode 100644
index 0000000000000..e0ed7e23da1c8
--- /dev/null
+++ b/srcpkgs/doh-proxy/files/README.voidlinux
@@ -0,0 +1,9 @@
+The runit service starts doh-proxy without any options by default.
+To customize options, make a file /etc/sv/doh-proxy/conf and assign 
+OPTS variable with options to run doh-proxy with.
+
+Example:
+OPTS="-u 127.0.0.1:53 -H myserver.com"
+
+See documentation https://github.com/DNSCrypt/doh-server or run
+'doh-proxy --help' for available options.
diff --git a/srcpkgs/doh-proxy/files/doh-proxy/run b/srcpkgs/doh-proxy/files/doh-proxy/run
new file mode 100755
index 0000000000000..22307bb2e6728
--- /dev/null
+++ b/srcpkgs/doh-proxy/files/doh-proxy/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec chpst -u _doh_proxy:_doh_proxy doh-proxy ${OPTS}
diff --git a/srcpkgs/doh-proxy/template b/srcpkgs/doh-proxy/template
new file mode 100644
index 0000000000000..09ac8d7d9fc5a
--- /dev/null
+++ b/srcpkgs/doh-proxy/template
@@ -0,0 +1,26 @@
+# Template file for 'doh-proxy'
+pkgname=doh-proxy
+version=0.9.10
+revision=1
+build_style=cargo
+short_desc="Fast and secure DoH (DNS-over-HTTPS) and ODoH (Oblivious DoH) server"
+maintainer="MeganerdNL <meganerd@meganerd.nl>"
+license="MIT"
+homepage="https://github.com/DNSCrypt/doh-server"
+distfiles="https://github.com/DNSCrypt/doh-server/archive/refs/tags/${version}.tar.gz"
+checksum=ed5cc16f10ea1e7c4487c3d7ddb96ca5a3363af7492ccce01cc24dcbfa778fef
+system_accounts="_doh_proxy"
+
+post_extract() {
+	cargo generate-lockfile
+}
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+post_install() {
+	vlicense LICENSE
+	vdoc "${FILESDIR}/README.voidlinux"
+	vsv doh-proxy
+}

  parent reply	other threads:[~2023-09-15 10:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-05  8:32 [PR PATCH] " MeganerdNL
2023-08-05  8:42 ` [PR PATCH] [Updated] " MeganerdNL
2023-08-05  8:58 ` MeganerdNL
2023-08-11  8:46 ` MeganerdNL
2023-09-02 15:28 ` MeganerdNL
2023-09-02 15:32 ` MeganerdNL
2023-09-15 10:10 ` MeganerdNL [this message]
2023-12-15  1:46 ` github-actions
2023-12-30  1:45 ` [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=20230915101009.iLga0_UE-PCKheTRQ6YFaSIKj1ZukU5EEW3ib7WAYL4@z \
    --to=meganerdnl@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).