www/gatus/Makefile (view raw)
1COMMENT = automated developer-oriented status page
2
3MODGO_MODNAME = github.com/TwiN/gatus/v5
4MODGO_VERSION = v5.3.2
5
6DISTNAME = gatus-${MODGO_VERSION}
7
8CATEGORIES = www
9
10HOMEPAGE = https://gatus.io
11
12MAINTAINER = la ninpre <aaoth.xyz>
13
14# Apache License 2.0
15PERMIT_PACKAGE = Yes
16
17MODULES = lang/go
18
19ALL_TARGET = github.com/TwiN/gatus/v5
20WRKDIST = ${WRKDIR}/${ALL_TARGET}@${MODGO_VERSION}
21
22WANTLIB += c pthread
23
24pre-configure:
25 ${SUBST_CMD} ${WRKDIST}/config/config.go
26
27do-install:
28 ${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/gatus ${PREFIX}/sbin/gatus
29 ${INSTALL_DATA_DIR} ${PREFIX}/share/gatus
30 cp -Rp ${WRKSRC}/config.yaml ${PREFIX}/share/gatus/gatus.yaml
31
32.include "modules.inc"
33
34.include <bsd.port.mk>