Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: webhook-2.8.0
@ 2021-09-03  5:01 classabbyamp
  2021-09-03  5:04 ` classabbyamp
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-03  5:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 7fa5c115c251c04a6c32151a84ce038a32a207dc Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/webhook/conf    | 134 ++++++++++++++++++++++++++
 srcpkgs/webhook/files/webhook/log/run |   2 +
 srcpkgs/webhook/files/webhook/run     |  39 ++++++++
 srcpkgs/webhook/template              |  25 +++++
 4 files changed, 200 insertions(+)
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..e18bef4e537e
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,134 @@
+# A list of paths to json files containing defined hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Parse hooks files as Go templates
+#
+# Default: false
+#
+# TEMPLATE=false
+
+# Watch hooks file for changes and reload them automatically
+#
+# Default: true
+#
+# HOTRELOAD=true
+
+# IP webhook should serve hooks on
+#
+# Default: "0.0.0.0"
+#
+# IP="0.0.0.0"
+
+# Port the webhook should serve hooks on
+#
+# Default: 9000
+#
+# PORT=9000
+
+# URL prefix to use for served hooks (protocol://yourserver:port/PREFIX/:hook-id)
+#
+# Default: "hooks"
+#
+# PREFIX="hooks"
+
+# Set default allowed HTTP methods (ie. "POST")
+# Separate methods with comma
+#
+# Default: "POST"
+#
+# HTTP_METHODS="POST"
+
+# Response header to return, specified in format name=value.
+# To set multiple headers, separate each by whitespace, and quote if necessary
+#
+# Default: ""
+#
+# HEADERS=""
+
+# Use X-Request-Id header, if present, as request ID
+#
+# Default: false
+#
+# X_REQUEST_ID=false
+
+# Truncate X-Request-Id header to limit; default no limit
+#
+# Default: ""
+#
+# X_REQUEST_ID_LIMIT=""
+
+# Maximum memory in bytes for parsing multipart form data before disk caching
+#
+# Default: 1048576
+#
+# MAX_MULTIPART_MEM=1048576
+
+# Use HTTPS instead of HTTP
+#
+# Default: false
+#
+# SECURE=false
+
+# Path to the HTTPS certificate pem file
+#
+# Default: ""
+#
+# CERT="/etc/webhook/cert.pem"
+
+# Path to the HTTPS private key pem file
+#
+# Default: ""
+#
+# KEY="/etc/webhook/key.pem"
+
+# Comma-separated list of supported TLS cipher suites
+#
+# Default: ""
+#
+# CIPHER_SUITES=""
+
+# Minimum TLS version (1.0, 1.1, 1.2, 1.3)
+#
+# Default: "1.2"
+#
+# TLS_MIN_VERSION="1.2"
+
+# Do not panic if hooks cannot be loaded when webhook is not running in verbose mode
+#
+# Default: false
+#
+# NOPANIC=false
+
+# Show verbose output
+#
+# Default: true
+#
+# VERBOSE=true
+
+# Show debug output
+#
+# Default: false
+#
+# DEBUG=false
+
+# Set user ID after opening listening port; must be used with GID
+#
+# Default: ""
+#
+# UID=""
+
+# Set group ID after opening listening port; must be used with UID
+#
+# Default: ""
+#
+# GID=""
+
+# Set other options that aren't set above
+#
+# Default: ""
+#
+# OTHER_OPTS=""
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..ffff1a8f8cd2
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,39 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r conf ] && . ./conf
+
+OPTS=""
+
+[ "$TEMPLATE" = "true" ] && OPTS="$OPTS -template"
+[ "$X_REQUEST_ID" = "true" ] && OPTS="$OPTS -x-request-id"
+[ "$SECURE" = "true" ] && OPTS="$OPTS -secure"
+[ "$NOPANIC" = "true" ] && OPTS="$OPTS -nopanic"
+[ "$DEBUG" = "true" ] && OPTS="$OPTS -debug"
+
+if [ "$HOTRELOAD" = "true" ] || [ -z "$HOTRELOAD" ]; then OPTS="$OPTS -hotreload"; fi
+if [ "$VERBOSE" = "true" ] || [ -z "$VERBOSE" ]; then OPTS="$OPTS -verbose"; fi
+
+[ -n "$IP" ] && OPTS="$OPTS -ip $IP"
+[ -n "$PORT" ] && OPTS="$OPTS -port $PORT"
+[ -n "$PREFIX" ] && OPTS="$OPTS -urlprefix $PREFIX"
+[ -n "$HTTP_METHODS" ] && OPTS="$OPTS -http-methods $HTTP_METHODS"
+[ -n "$X_REQUEST_ID_LIMIT" ] && OPTS="$OPTS -x-request-id-limit $X_REQUEST_ID_LIMIT"
+[ -n "$MAX_MULTIPART_MEM" ] && OPTS="$OPTS -max-multipart-mem $MAX_MULTIPART_MEM"
+[ -n "$CERT" ] && OPTS="$OPTS -cert $CERT"
+[ -n "$KEY" ] && OPTS="$OPTS -key $KEY"
+[ -n "$CIPHER_SUITES" ] && OPTS="$OPTS -cipher-suites $CIPHER_SUITES"
+[ -n "$TLS_MIN_VERSION" ] && OPTS="$OPTS -tls-min-version $TLS_MIN_VERSION"
+
+if [ -n "$UID" ] && [ -n "$GID" ]; then OPTS="$OPTS -setuid $UID -setgid $GID"; fi
+
+[ -z "$HOOKS_FILES" ] && HOOKS_FILES="/etc/webhook/hooks.json"
+for f in $HOOKS_FILES; do
+    OPTS="$OPTS -hooks $f"
+done
+
+for h in $HEADERS; do
+    OPTS="$OPTS -header $h"
+done
+
+exec webhook $OPTS $OTHER_OPTS -pidfile /run/webhook.pid
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..542aca12273c
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,25 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+conf_files="/etc/webhook/hooks.json"
+hostmakedepends="git"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+
+	echo '[]' > hooks.json
+	vinstall hooks.json 644 etc/webhook
+}

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

* Re: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
@ 2021-09-03  5:04 ` classabbyamp
  2021-09-03  5:05 ` classabbyamp
                   ` (28 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-03  5:04 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#issuecomment-912257339

Comment:
would it be better to add the empty `/etc/webhook/hooks.json` (what I do now), copy the example one to `/etc/webhook`, or do `make_dirs="/etc/webhook 0644 root root"`?

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

* Re: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
  2021-09-03  5:04 ` classabbyamp
@ 2021-09-03  5:05 ` classabbyamp
  2021-09-04  2:10 ` [PR PATCH] [Updated] " classabbyamp
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-03  5:05 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#issuecomment-912257339

Comment:
Which would be the best approach?
1. add the empty `/etc/webhook/hooks.json` (what I do now)
2. copy the example `hooks.json` to `/etc/webhook`
3. `make_dirs="/etc/webhook 0644 root root"`

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
  2021-09-03  5:04 ` classabbyamp
  2021-09-03  5:05 ` classabbyamp
@ 2021-09-04  2:10 ` classabbyamp
  2021-09-04  2:12 ` classabbyamp
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-04  2:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 237222f4bf311dae38f2aacde1adc1a4b47fe4d0 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/webhook/conf    | 122 ++++++++++++++++++++++++++
 srcpkgs/webhook/files/webhook/log/run |   2 +
 srcpkgs/webhook/files/webhook/run     |  37 ++++++++
 srcpkgs/webhook/template              |  22 +++++
 4 files changed, 183 insertions(+)
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..2bb5a43a85f8
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,122 @@
+# A list of paths to json files containing defined hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Parse hooks files as Go templates
+#
+# Default: false
+#
+# TEMPLATE=false
+
+# Watch hooks file for changes and reload them automatically
+#
+# Default: true
+#
+# HOTRELOAD=true
+
+# IP webhook should serve hooks on
+#
+# Default: "0.0.0.0"
+#
+# IP="0.0.0.0"
+
+# Port the webhook should serve hooks on
+#
+# Default: 9000
+#
+# PORT=9000
+
+# URL prefix to use for served hooks (protocol://yourserver:port/PREFIX/:hook-id)
+#
+# Default: "hooks"
+#
+# PREFIX="hooks"
+
+# Set default allowed HTTP methods (ie. "POST")
+# Separate methods with comma
+#
+# Default: "POST"
+#
+# HTTP_METHODS="POST"
+
+# Response header to return, specified in format name=value.
+# To set multiple headers, separate each by whitespace, and quote if necessary
+#
+# Default: ""
+#
+# HEADERS=""
+
+# Use X-Request-Id header, if present, as request ID
+#
+# Default: false
+#
+# X_REQUEST_ID=false
+
+# Truncate X-Request-Id header to limit; default no limit
+#
+# Default: ""
+#
+# X_REQUEST_ID_LIMIT=""
+
+# Maximum memory in bytes for parsing multipart form data before disk caching
+#
+# Default: 1048576
+#
+# MAX_MULTIPART_MEM=1048576
+
+# Use HTTPS instead of HTTP
+#
+# Default: false
+#
+# SECURE=false
+
+# Path to the HTTPS certificate pem file
+#
+# Default: ""
+#
+# CERT="/etc/webhook/cert.pem"
+
+# Path to the HTTPS private key pem file
+#
+# Default: ""
+#
+# KEY="/etc/webhook/key.pem"
+
+# Comma-separated list of supported TLS cipher suites
+#
+# Default: ""
+#
+# CIPHER_SUITES=""
+
+# Minimum TLS version (1.0, 1.1, 1.2, 1.3)
+#
+# Default: "1.2"
+#
+# TLS_MIN_VERSION="1.2"
+
+# Do not panic if hooks cannot be loaded when webhook is not running in verbose mode
+#
+# Default: false
+#
+# NOPANIC=false
+
+# Show verbose output
+#
+# Default: true
+#
+# VERBOSE=true
+
+# Show debug output
+#
+# Default: false
+#
+# DEBUG=false
+
+# Set other options that aren't set above
+#
+# Default: ""
+#
+# OTHER_OPTS=""
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..470fd3ec9127
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,37 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r conf ] && . ./conf
+
+OPTS=""
+
+[ "$TEMPLATE" = "true" ] && OPTS="$OPTS -template"
+[ "$X_REQUEST_ID" = "true" ] && OPTS="$OPTS -x-request-id"
+[ "$SECURE" = "true" ] && OPTS="$OPTS -secure"
+[ "$NOPANIC" = "true" ] && OPTS="$OPTS -nopanic"
+[ "$DEBUG" = "true" ] && OPTS="$OPTS -debug"
+
+if [ "$HOTRELOAD" = "true" ] || [ -z "$HOTRELOAD" ]; then OPTS="$OPTS -hotreload"; fi
+if [ "$VERBOSE" = "true" ] || [ -z "$VERBOSE" ]; then OPTS="$OPTS -verbose"; fi
+
+[ -n "$IP" ] && OPTS="$OPTS -ip $IP"
+[ -n "$PORT" ] && OPTS="$OPTS -port $PORT"
+[ -n "$PREFIX" ] && OPTS="$OPTS -urlprefix $PREFIX"
+[ -n "$HTTP_METHODS" ] && OPTS="$OPTS -http-methods $HTTP_METHODS"
+[ -n "$X_REQUEST_ID_LIMIT" ] && OPTS="$OPTS -x-request-id-limit $X_REQUEST_ID_LIMIT"
+[ -n "$MAX_MULTIPART_MEM" ] && OPTS="$OPTS -max-multipart-mem $MAX_MULTIPART_MEM"
+[ -n "$CERT" ] && OPTS="$OPTS -cert $CERT"
+[ -n "$KEY" ] && OPTS="$OPTS -key $KEY"
+[ -n "$CIPHER_SUITES" ] && OPTS="$OPTS -cipher-suites $CIPHER_SUITES"
+[ -n "$TLS_MIN_VERSION" ] && OPTS="$OPTS -tls-min-version $TLS_MIN_VERSION"
+
+[ -z "$HOOKS_FILES" ] && HOOKS_FILES="/etc/webhook/hooks.json"
+for f in $HOOKS_FILES; do
+    OPTS="$OPTS -hooks $f"
+done
+
+for h in $HEADERS; do
+    OPTS="$OPTS -header $h"
+done
+
+exec webhook $OPTS $OTHER_OPTS -pidfile /run/webhook.pid
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..1208e3329b69
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,22 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+make_dirs="/etc/webhook 0644 root root"
+hostmakedepends="git"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (2 preceding siblings ...)
  2021-09-04  2:10 ` [PR PATCH] [Updated] " classabbyamp
@ 2021-09-04  2:12 ` classabbyamp
  2021-09-05 22:17 ` [PR PATCH] [Updated] " classabbyamp
                   ` (25 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-04  2:12 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#issuecomment-912257339

Comment:
Which would be the best approach?
1. add the empty `/etc/webhook/hooks.json`
2. copy the example `hooks.json` to `/etc/webhook`
3. `make_dirs="/etc/webhook 0644 root root"` (what I do now)

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (3 preceding siblings ...)
  2021-09-04  2:12 ` classabbyamp
@ 2021-09-05 22:17 ` classabbyamp
  2021-09-06 17:58 ` [PR REVIEW] " ericonr
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-05 22:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 0ea557bdfd793dfd34ea00f7fa596d46a215d17f Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/webhook/conf    | 122 ++++++++++++++++++++++++++
 srcpkgs/webhook/files/webhook/log/run |   2 +
 srcpkgs/webhook/files/webhook/run     |  37 ++++++++
 srcpkgs/webhook/template              |  21 +++++
 4 files changed, 182 insertions(+)
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..2bb5a43a85f8
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,122 @@
+# A list of paths to json files containing defined hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Parse hooks files as Go templates
+#
+# Default: false
+#
+# TEMPLATE=false
+
+# Watch hooks file for changes and reload them automatically
+#
+# Default: true
+#
+# HOTRELOAD=true
+
+# IP webhook should serve hooks on
+#
+# Default: "0.0.0.0"
+#
+# IP="0.0.0.0"
+
+# Port the webhook should serve hooks on
+#
+# Default: 9000
+#
+# PORT=9000
+
+# URL prefix to use for served hooks (protocol://yourserver:port/PREFIX/:hook-id)
+#
+# Default: "hooks"
+#
+# PREFIX="hooks"
+
+# Set default allowed HTTP methods (ie. "POST")
+# Separate methods with comma
+#
+# Default: "POST"
+#
+# HTTP_METHODS="POST"
+
+# Response header to return, specified in format name=value.
+# To set multiple headers, separate each by whitespace, and quote if necessary
+#
+# Default: ""
+#
+# HEADERS=""
+
+# Use X-Request-Id header, if present, as request ID
+#
+# Default: false
+#
+# X_REQUEST_ID=false
+
+# Truncate X-Request-Id header to limit; default no limit
+#
+# Default: ""
+#
+# X_REQUEST_ID_LIMIT=""
+
+# Maximum memory in bytes for parsing multipart form data before disk caching
+#
+# Default: 1048576
+#
+# MAX_MULTIPART_MEM=1048576
+
+# Use HTTPS instead of HTTP
+#
+# Default: false
+#
+# SECURE=false
+
+# Path to the HTTPS certificate pem file
+#
+# Default: ""
+#
+# CERT="/etc/webhook/cert.pem"
+
+# Path to the HTTPS private key pem file
+#
+# Default: ""
+#
+# KEY="/etc/webhook/key.pem"
+
+# Comma-separated list of supported TLS cipher suites
+#
+# Default: ""
+#
+# CIPHER_SUITES=""
+
+# Minimum TLS version (1.0, 1.1, 1.2, 1.3)
+#
+# Default: "1.2"
+#
+# TLS_MIN_VERSION="1.2"
+
+# Do not panic if hooks cannot be loaded when webhook is not running in verbose mode
+#
+# Default: false
+#
+# NOPANIC=false
+
+# Show verbose output
+#
+# Default: true
+#
+# VERBOSE=true
+
+# Show debug output
+#
+# Default: false
+#
+# DEBUG=false
+
+# Set other options that aren't set above
+#
+# Default: ""
+#
+# OTHER_OPTS=""
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..470fd3ec9127
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,37 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r conf ] && . ./conf
+
+OPTS=""
+
+[ "$TEMPLATE" = "true" ] && OPTS="$OPTS -template"
+[ "$X_REQUEST_ID" = "true" ] && OPTS="$OPTS -x-request-id"
+[ "$SECURE" = "true" ] && OPTS="$OPTS -secure"
+[ "$NOPANIC" = "true" ] && OPTS="$OPTS -nopanic"
+[ "$DEBUG" = "true" ] && OPTS="$OPTS -debug"
+
+if [ "$HOTRELOAD" = "true" ] || [ -z "$HOTRELOAD" ]; then OPTS="$OPTS -hotreload"; fi
+if [ "$VERBOSE" = "true" ] || [ -z "$VERBOSE" ]; then OPTS="$OPTS -verbose"; fi
+
+[ -n "$IP" ] && OPTS="$OPTS -ip $IP"
+[ -n "$PORT" ] && OPTS="$OPTS -port $PORT"
+[ -n "$PREFIX" ] && OPTS="$OPTS -urlprefix $PREFIX"
+[ -n "$HTTP_METHODS" ] && OPTS="$OPTS -http-methods $HTTP_METHODS"
+[ -n "$X_REQUEST_ID_LIMIT" ] && OPTS="$OPTS -x-request-id-limit $X_REQUEST_ID_LIMIT"
+[ -n "$MAX_MULTIPART_MEM" ] && OPTS="$OPTS -max-multipart-mem $MAX_MULTIPART_MEM"
+[ -n "$CERT" ] && OPTS="$OPTS -cert $CERT"
+[ -n "$KEY" ] && OPTS="$OPTS -key $KEY"
+[ -n "$CIPHER_SUITES" ] && OPTS="$OPTS -cipher-suites $CIPHER_SUITES"
+[ -n "$TLS_MIN_VERSION" ] && OPTS="$OPTS -tls-min-version $TLS_MIN_VERSION"
+
+[ -z "$HOOKS_FILES" ] && HOOKS_FILES="/etc/webhook/hooks.json"
+for f in $HOOKS_FILES; do
+    OPTS="$OPTS -hooks $f"
+done
+
+for h in $HEADERS; do
+    OPTS="$OPTS -header $h"
+done
+
+exec webhook $OPTS $OTHER_OPTS -pidfile /run/webhook.pid
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..cb8e75eadde5
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,21 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+make_dirs="/etc/webhook 0644 root root"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (4 preceding siblings ...)
  2021-09-05 22:17 ` [PR PATCH] [Updated] " classabbyamp
@ 2021-09-06 17:58 ` ericonr
  2021-09-06 17:58 ` ericonr
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-09-06 17:58 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703028426

Comment:
```suggestion
[ -r ./conf ] && . ./conf
```

For consistency

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (7 preceding siblings ...)
  2021-09-06 17:58 ` ericonr
@ 2021-09-06 17:58 ` ericonr
  2021-09-06 17:58 ` ericonr
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-09-06 17:58 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703029046

Comment:
Why do you need to specify a PID file?

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (6 preceding siblings ...)
  2021-09-06 17:58 ` ericonr
@ 2021-09-06 17:58 ` ericonr
  2021-09-06 17:58 ` ericonr
                   ` (21 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-09-06 17:58 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703028250

Comment:
I dislike the idea of vendoring in this file. Does upstream not provide an example config? :/

This file doesn't seem to be installed at all? Maybe it could be omitted.

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (5 preceding siblings ...)
  2021-09-06 17:58 ` [PR REVIEW] " ericonr
@ 2021-09-06 17:58 ` ericonr
  2021-09-06 17:58 ` ericonr
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-09-06 17:58 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703028742

Comment:
For most of these I'd simply orient the users of the service to add their own `OPTS`, instead of having to support each different var. And I wouldn't zero out `OPTS`, just always append to it.

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (8 preceding siblings ...)
  2021-09-06 17:58 ` ericonr
@ 2021-09-06 17:58 ` ericonr
  2021-09-06 19:35 ` classabbyamp
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-09-06 17:58 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703028973

Comment:
```suggestion
for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
    OPTS="$OPTS -hooks $f"
done
```

This should work, I think.

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (9 preceding siblings ...)
  2021-09-06 17:58 ` ericonr
@ 2021-09-06 19:35 ` classabbyamp
  2021-09-06 19:44 ` classabbyamp
                   ` (18 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-06 19:35 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703051625

Comment:
there is an example config. I could use that, but it has stuff like hard-coded paths to the dev's $HOME so it feels a bit weird: https://github.com/adnanh/webhook/blob/master/hooks.json.example

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (10 preceding siblings ...)
  2021-09-06 19:35 ` classabbyamp
@ 2021-09-06 19:44 ` classabbyamp
  2021-09-06 22:10 ` [PR PATCH] [Updated] " classabbyamp
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-06 19:44 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r703053757

Comment:
this was suggested in #xbps. by specifying the option, webhook manages the PID file itself.

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (11 preceding siblings ...)
  2021-09-06 19:44 ` classabbyamp
@ 2021-09-06 22:10 ` classabbyamp
  2021-09-06 22:19 ` classabbyamp
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-06 22:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 5519444396bcc30c1177fb462fc921a76c6b1000 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 21 +++++++++++++++++++++
 4 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..711110c97506
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..cb8e75eadde5
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,21 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+make_dirs="/etc/webhook 0644 root root"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (12 preceding siblings ...)
  2021-09-06 22:10 ` [PR PATCH] [Updated] " classabbyamp
@ 2021-09-06 22:19 ` classabbyamp
  2021-10-05  2:19 ` classabbyamp
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-09-06 22:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From e4cfce21ad2841d901276708d9a305540f1c23a1 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 21 +++++++++++++++++++++
 4 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..711110c97506
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..cb8e75eadde5
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,21 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+make_dirs="/etc/webhook 0644 root root"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (13 preceding siblings ...)
  2021-09-06 22:19 ` classabbyamp
@ 2021-10-05  2:19 ` classabbyamp
  2021-10-05  2:20 ` classabbyamp
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05  2:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From fcd18946fdb4488af3ae11b7ce6a4f84387bcbcb Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..6fcd3578c52b
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "date",
+    "command-working-directory": "/home",
+    "response-message": "I got the payload!"
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (14 preceding siblings ...)
  2021-10-05  2:19 ` classabbyamp
@ 2021-10-05  2:20 ` classabbyamp
  2021-10-05  2:23 ` [PR REVIEW] " classabbyamp
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05  2:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 33b319c1a131dabb82c052e33e92ecff8932dcb1 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..6fcd3578c52b
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "date",
+    "command-working-directory": "/home",
+    "response-message": "I got the payload!"
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (15 preceding siblings ...)
  2021-10-05  2:20 ` classabbyamp
@ 2021-10-05  2:23 ` classabbyamp
  2021-10-05  2:30 ` [PR PATCH] [Updated] " classabbyamp
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05  2:23 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r721840089

Comment:
per the advice of upstream (adnanh/webhook#560), I've updated the template to include a default `/etc/webhook/hooks.json` that simply runs `date`.

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (16 preceding siblings ...)
  2021-10-05  2:23 ` [PR REVIEW] " classabbyamp
@ 2021-10-05  2:30 ` classabbyamp
  2021-10-05  2:31 ` classabbyamp
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05  2:30 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 747fcd1bcc5b5abec17ffe0393f7f80ece4732a0 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..5c499951e42d
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "response-message": "I got the payload!"
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (17 preceding siblings ...)
  2021-10-05  2:30 ` [PR PATCH] [Updated] " classabbyamp
@ 2021-10-05  2:31 ` classabbyamp
  2021-10-05  7:43 ` [PR REVIEW] " adnanh
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05  2:31 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#issuecomment-934007600

Comment:
PR updated to add a basic default config file and set up the service to run in an unprivileged system account instead of root. @ericonr can I get a re-review on this?

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (18 preceding siblings ...)
  2021-10-05  2:31 ` classabbyamp
@ 2021-10-05  7:43 ` adnanh
  2021-10-05 15:02 ` [PR PATCH] [Updated] " classabbyamp
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: adnanh @ 2021-10-05  7:43 UTC (permalink / raw)
  To: ml

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

New review comment by adnanh on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r721973297

Comment:
Maybe replace the `"response-message": "I got the payload!"` with `"include-command-output-in-response": true`?

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (19 preceding siblings ...)
  2021-10-05  7:43 ` [PR REVIEW] " adnanh
@ 2021-10-05 15:02 ` classabbyamp
  2021-11-05 23:22 ` classabbyamp
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-10-05 15:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From d4d7edf8961a4e64a8bcea813b0b8e81a93d8b3b Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..a814044b9701
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "include-command-output-in-response": true
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (20 preceding siblings ...)
  2021-10-05 15:02 ` [PR PATCH] [Updated] " classabbyamp
@ 2021-11-05 23:22 ` classabbyamp
  2021-11-13  3:40 ` classabbyamp
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-11-05 23:22 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From f6003ae7a4f2c49ee93b51126e208ea0c23c5665 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..a814044b9701
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "include-command-output-in-response": true
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (21 preceding siblings ...)
  2021-11-05 23:22 ` classabbyamp
@ 2021-11-13  3:40 ` classabbyamp
  2022-02-04 18:00 ` classabbyamp
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2021-11-13  3:40 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From a4f208ed576c4e7835524b8ddcc053361759646e Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..a814044b9701
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "include-command-output-in-response": true
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (22 preceding siblings ...)
  2021-11-13  3:40 ` classabbyamp
@ 2022-02-04 18:00 ` classabbyamp
  2022-02-15 23:22 ` classabbyamp
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-02-04 18:00 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 9ae858d6a7cc681959d0e2c7ca5816b66431bff4 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  9 +++++++++
 srcpkgs/webhook/files/webhook/conf    | 13 +++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 13 +++++++++++++
 srcpkgs/webhook/template              | 23 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..a814044b9701
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,9 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "include-command-output-in-response": true
+  }
+]
+
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..58e40d5f4041
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,13 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
+
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..10fb38dbd274
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
+
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..7afab70cf365
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,23 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: [PR PATCH] [Updated] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (23 preceding siblings ...)
  2022-02-04 18:00 ` classabbyamp
@ 2022-02-15 23:22 ` classabbyamp
  2022-02-15 23:29 ` classabbyamp
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-02-15 23:22 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages webhook
https://github.com/void-linux/void-packages/pull/32813

New package: webhook-2.8.0
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

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

From 4c1bc2921307cb6ba19a990e2e8cb096e785e805 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
Date: Fri, 3 Sep 2021 00:49:27 -0400
Subject: [PATCH] New package: webhook-2.8.0

---
 srcpkgs/webhook/files/hooks.json      |  8 ++++++++
 srcpkgs/webhook/files/webhook/conf    | 12 ++++++++++++
 srcpkgs/webhook/files/webhook/log/run |  2 ++
 srcpkgs/webhook/files/webhook/run     | 12 ++++++++++++
 srcpkgs/webhook/template              | 24 ++++++++++++++++++++++++
 5 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/webhook/files/hooks.json
 create mode 100644 srcpkgs/webhook/files/webhook/conf
 create mode 100644 srcpkgs/webhook/files/webhook/log/run
 create mode 100644 srcpkgs/webhook/files/webhook/run
 create mode 100644 srcpkgs/webhook/template

diff --git a/srcpkgs/webhook/files/hooks.json b/srcpkgs/webhook/files/hooks.json
new file mode 100644
index 000000000000..b2cfdbf63add
--- /dev/null
+++ b/srcpkgs/webhook/files/hooks.json
@@ -0,0 +1,8 @@
+[
+  {
+    "id": "example",
+    "execute-command": "/bin/date",
+    "command-working-directory": "",
+    "include-command-output-in-response": true
+  }
+]
diff --git a/srcpkgs/webhook/files/webhook/conf b/srcpkgs/webhook/files/webhook/conf
new file mode 100644
index 000000000000..56d4d25a39fc
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/conf
@@ -0,0 +1,12 @@
+# A list of paths to json/yaml files containing definitions of hooks webhook should serve.
+# Each filepath should be separated by whitespace, and quoted if needed.
+#
+# Default: /etc/webhook/hooks.json
+#
+# HOOKS_FILES="/etc/webhook/hooks.json"
+
+# Options to pass to webhook, see webhook -h for more info
+#
+# Default: -hotreload -verbose
+#
+# OPTS=""
diff --git a/srcpkgs/webhook/files/webhook/log/run b/srcpkgs/webhook/files/webhook/log/run
new file mode 100644
index 000000000000..700bf023a873
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t webhook
diff --git a/srcpkgs/webhook/files/webhook/run b/srcpkgs/webhook/files/webhook/run
new file mode 100644
index 000000000000..80bdc8d92741
--- /dev/null
+++ b/srcpkgs/webhook/files/webhook/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+OPTS=${OPTS:- -hotreload -verbose}
+
+for f in ${HOOKS_FILES:-/etc/webhook/hooks.json}; do
+    OPTS="$OPTS -hooks $f"
+done
+
+exec chpst -u _webhook:_webhook webhook $OPTS
diff --git a/srcpkgs/webhook/template b/srcpkgs/webhook/template
new file mode 100644
index 000000000000..fb8b2168566a
--- /dev/null
+++ b/srcpkgs/webhook/template
@@ -0,0 +1,24 @@
+# Template file for 'webhook'
+pkgname=webhook
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="github.com/adnanh/webhook"
+short_desc="Lightweight incoming webhook server to run shell commands"
+maintainer="Abigail G <dev@kb6.ee>"
+license="MIT"
+homepage="https://github.com/adnanh/webhook"
+distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
+checksum=c521558083f96bcefef16575a6f3f98ac79c0160fd0073be5e76d6645e068398
+conf_files="/etc/webhook/hooks.json /etc/sv/webhook/conf"
+system_accounts="_webhook"
+system_groups="_webhook"
+
+post_install() {
+	vlicense LICENSE
+	vsv webhook
+
+	vinstall ${FILESDIR}/hooks.json 644 etc/webhook
+	for f in docs/*.md; do vdoc $f; done
+	for f in *.example; do vsconf $f ${f%.example}; done
+}

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

* Re: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (24 preceding siblings ...)
  2022-02-15 23:22 ` classabbyamp
@ 2022-02-15 23:29 ` classabbyamp
  2022-02-15 23:36 ` [PR REVIEW] " paper42
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-02-15 23:29 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#issuecomment-1040902436

Comment:
@paper42 all ready 

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (25 preceding siblings ...)
  2022-02-15 23:29 ` classabbyamp
@ 2022-02-15 23:36 ` paper42
  2022-02-15 23:36 ` classabbyamp
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: paper42 @ 2022-02-15 23:36 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r807407997

Comment:
We don't need the .tmpl files
```
%: xbps-query -f webhook
...
/usr/share/examples/webhook/hooks.json
/usr/share/examples/webhook/hooks.json.tmpl
/usr/share/examples/webhook/hooks.yaml
/usr/share/examples/webhook/hooks.yaml.tmpl
...
```

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (26 preceding siblings ...)
  2022-02-15 23:36 ` [PR REVIEW] " paper42
@ 2022-02-15 23:36 ` classabbyamp
  2022-02-15 23:37 ` classabbyamp
  2022-02-15 23:46 ` [PR PATCH] [Merged]: " paper42
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-02-15 23:36 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r807408383

Comment:
the tmpl files are examples of using go templating for hooks

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

* Re: [PR REVIEW] New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (27 preceding siblings ...)
  2022-02-15 23:36 ` classabbyamp
@ 2022-02-15 23:37 ` classabbyamp
  2022-02-15 23:46 ` [PR PATCH] [Merged]: " paper42
  29 siblings, 0 replies; 31+ messages in thread
From: classabbyamp @ 2022-02-15 23:37 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/32813#discussion_r807408383

Comment:
the tmpl files are examples of using go templating for hooks, not templates for the example hooks.{json,yaml}

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

* Re: [PR PATCH] [Merged]: New package: webhook-2.8.0
  2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
                   ` (28 preceding siblings ...)
  2022-02-15 23:37 ` classabbyamp
@ 2022-02-15 23:46 ` paper42
  29 siblings, 0 replies; 31+ messages in thread
From: paper42 @ 2022-02-15 23:46 UTC (permalink / raw)
  To: ml

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

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

New package: webhook-2.8.0
https://github.com/void-linux/void-packages/pull/32813

Description:
<!-- Mark items with [x] where applicable -->

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

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

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

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



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

end of thread, other threads:[~2022-02-15 23:46 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03  5:01 [PR PATCH] New package: webhook-2.8.0 classabbyamp
2021-09-03  5:04 ` classabbyamp
2021-09-03  5:05 ` classabbyamp
2021-09-04  2:10 ` [PR PATCH] [Updated] " classabbyamp
2021-09-04  2:12 ` classabbyamp
2021-09-05 22:17 ` [PR PATCH] [Updated] " classabbyamp
2021-09-06 17:58 ` [PR REVIEW] " ericonr
2021-09-06 17:58 ` ericonr
2021-09-06 17:58 ` ericonr
2021-09-06 17:58 ` ericonr
2021-09-06 17:58 ` ericonr
2021-09-06 19:35 ` classabbyamp
2021-09-06 19:44 ` classabbyamp
2021-09-06 22:10 ` [PR PATCH] [Updated] " classabbyamp
2021-09-06 22:19 ` classabbyamp
2021-10-05  2:19 ` classabbyamp
2021-10-05  2:20 ` classabbyamp
2021-10-05  2:23 ` [PR REVIEW] " classabbyamp
2021-10-05  2:30 ` [PR PATCH] [Updated] " classabbyamp
2021-10-05  2:31 ` classabbyamp
2021-10-05  7:43 ` [PR REVIEW] " adnanh
2021-10-05 15:02 ` [PR PATCH] [Updated] " classabbyamp
2021-11-05 23:22 ` classabbyamp
2021-11-13  3:40 ` classabbyamp
2022-02-04 18:00 ` classabbyamp
2022-02-15 23:22 ` classabbyamp
2022-02-15 23:29 ` classabbyamp
2022-02-15 23:36 ` [PR REVIEW] " paper42
2022-02-15 23:36 ` classabbyamp
2022-02-15 23:37 ` classabbyamp
2022-02-15 23:46 ` [PR PATCH] [Merged]: " paper42

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