Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] caddy: several template improvements
Date: Wed, 29 Jan 2020 16:54:34 +0100	[thread overview]
Message-ID: <20200129155434.3bqe_HtbBB_yWSMGeym-NzrRaKNiuM8EIl6jHNuItyo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18592@inbox.vuxu.org>

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

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

https://github.com/steinex/void-packages caddy
https://github.com/void-linux/void-packages/pull/18592

caddy: several template improvements


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

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

From 165f6005f1173294cacbdf0c46c6d3d983862e49 Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Mon, 27 Jan 2020 20:07:15 +0100
Subject: [PATCH 1/3] caddy: disable telemetry

---
 srcpkgs/caddy/template | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index e68b9f99e3c..bd5ad1f7dde 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -18,6 +18,10 @@ make_dirs="
 	/etc/caddy 0700 caddy caddy
 	/var/lib/caddy 0700 caddy caddy"
 
+pre_build() {
+	vsed -e 's,var EnableTelemetry = true,var EnableTelemetry = false,g' -i caddy/caddymain/run.go
+}
+
 post_install() {
 	vsv caddy
 }

From bc6cf5f819b55412821b80a2f39c8321a44cb808 Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Mon, 27 Jan 2020 20:23:48 +0100
Subject: [PATCH 2/3] caddy: handle max open files correctly

---
 srcpkgs/caddy/files/caddy/run | 3 ++-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index 0e23cd4ea6a..6332bfac9c8 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -1,4 +1,5 @@
 #!/bin/sh
 export CADDYPATH=/var/lib/caddy
+ulimit -n ${MAX_OPEN_FILES:-8192}
 cd /etc/caddy
-exec chpst -o 8192 -u caddy caddy
+exec chpst -u caddy caddy
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index bd5ad1f7dde..c94c77b756a 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=1.0.4
-revision=1
+revision=2
 build_style=go
 go_import_path=github.com/caddyserver/caddy
 go_package="${go_import_path}/caddy"

From 3ddcdc8d3410f3088603441a0dc2773791241f10 Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Mon, 27 Jan 2020 20:31:14 +0100
Subject: [PATCH 3/3] caddy: add vlogger

---
 srcpkgs/caddy/files/caddy/log/run | 1 +
 1 file changed, 1 insertion(+)
 create mode 120000 srcpkgs/caddy/files/caddy/log/run

diff --git a/srcpkgs/caddy/files/caddy/log/run b/srcpkgs/caddy/files/caddy/log/run
new file mode 120000
index 00000000000..3a5b4a58605
--- /dev/null
+++ b/srcpkgs/caddy/files/caddy/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file

  parent reply	other threads:[~2020-01-29 15:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 19:51 [PR PATCH] " voidlinux-github
2020-01-29 13:15 ` voidlinux-github
2020-01-29 15:54 ` voidlinux-github [this message]
2020-01-29 15:55 ` voidlinux-github
2020-01-29 15:58 ` voidlinux-github
2020-01-29 16:00 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-29 16:01 ` voidlinux-github
2020-02-14 15:24 ` [PR PATCH] [Merged]: " xtraeme

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=20200129155434.3bqe_HtbBB_yWSMGeym-NzrRaKNiuM8EIl6jHNuItyo@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).