mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
f96631a4b5
WWW: https://github.com/adnanh/webhook PR: 222883 Submitted by: stb@lassitu.de (maintainer) Differential Revision: https://reviews.freebsd.org/D14853
36 lines
826 B
Makefile
36 lines
826 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= webhook
|
|
PORTVERSION= 2.6.8
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= stb@lassitu.de
|
|
COMMENT= Easily create HTTP endpoints (hooks) to execute shell commands
|
|
|
|
LICENSE= APACHE20 BSD3CLAUSE MIT
|
|
LICENSE_COMB= multi
|
|
|
|
USES= go
|
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= adnanh
|
|
USE_RC_SUBR= webhook
|
|
|
|
PLIST_FILES= "@sample etc/webhook.yaml.sample" sbin/webhook
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100513
|
|
DAEMONARGS= -S -l \$${webhook_facility} -s \$${webhook_priority} -t \$${name}
|
|
.else
|
|
DAEMONARGS= -f
|
|
.endif
|
|
|
|
SUB_LIST+= DAEMONARGS="${DAEMONARGS}"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_DATA} ${FILESDIR}/webhook.yaml ${STAGEDIR}${PREFIX}/etc/webhook.yaml.sample
|
|
|
|
.include <bsd.port.mk>
|