From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: webhook-2.8.0
Date: Tue, 07 Sep 2021 00:10:03 +0200 [thread overview]
Message-ID: <20210906221003.dFSAZ1EaTB7Bbv21OPxxzNZ5muxl9NuF9BsE67GrwZk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32813@inbox.vuxu.org>
[-- 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
+}
next prev parent reply other threads:[~2021-09-06 22:10 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 5:01 [PR PATCH] " 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 ` classabbyamp [this message]
2021-09-06 22:19 ` [PR PATCH] [Updated] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210906221003.dFSAZ1EaTB7Bbv21OPxxzNZ5muxl9NuF9BsE67GrwZk@z \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).