aboutsummaryrefslogtreecommitdiffstats
path: root/www/gatus/Makefile
blob: 92f77cdcacdfee6751de97bc8fe1d5d5c56e26ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
COMMENT 	= automated developer-oriented status page

MODGO_MODNAME	= github.com/TwiN/gatus/v5
MODGO_VERSION	= v5.3.2

DISTNAME	= gatus-${MODGO_VERSION}

CATEGORIES	= www

HOMEPAGE	= https://gatus.io

MAINTAINER	= la ninpre <aaoth.xyz>

# Apache License 2.0
PERMIT_PACKAGE	= Yes

MODULES		= lang/go

ALL_TARGET	= github.com/TwiN/gatus/v5
WRKDIST		= ${WRKDIR}/${ALL_TARGET}@${MODGO_VERSION}

WANTLIB 	+= c pthread

pre-configure:
	${SUBST_CMD} ${WRKDIST}/config/config.go

do-install:
	${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/gatus ${PREFIX}/sbin/gatus
	${INSTALL_DATA_DIR} ${PREFIX}/share/gatus
	cp -Rp ${WRKSRC}/config.yaml ${PREFIX}/share/gatus/gatus.yaml

.include "modules.inc"

.include <bsd.port.mk>