25 lines
756 B
Bash
25 lines
756 B
Bash
# Template file for 'webhook'
|
|
pkgname=webhook
|
|
version=2.8.1
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/adnanh/webhook"
|
|
short_desc="Lightweight incoming webhook server to run shell commands"
|
|
maintainer="Abigail G <void@placeviolette.net>"
|
|
license="MIT"
|
|
homepage="https://github.com/adnanh/webhook"
|
|
distfiles="https://github.com/adnanh/webhook/archive/${version}.tar.gz"
|
|
checksum=a1e3eb2231e5631ebb374b76a79c3bac9cbdc7010974395e2d5e4e2e62ffd187
|
|
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
|
|
}
|