forked from Lainports/freebsd-ports
- Remove custom build/install targets left in place after r505321 - Switch to the new GO_TARGET tuple syntax introduced in r512001 Reviewed by: tobik Approved by: araujo (mentor), portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D21744
36 lines
762 B
Makefile
36 lines
762 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= webhook
|
|
PORTVERSION= 2.6.9
|
|
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
|
|
|
|
GO_TARGET= :${PREFIX}/sbin/webhook
|
|
|
|
PLIST_FILES= "@sample etc/webhook.yaml.sample" sbin/webhook
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD
|
|
DAEMONARGS= -S -l \$${webhook_facility} -s \$${webhook_priority} -t \$${name}
|
|
.else
|
|
DAEMONARGS= -f
|
|
.endif
|
|
|
|
SUB_LIST+= DAEMONARGS="${DAEMONARGS}"
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/webhook.yaml ${STAGEDIR}${PREFIX}/etc/webhook.yaml.sample
|
|
|
|
.include <bsd.port.mk>
|