aboutsummaryrefslogtreecommitdiffstats
path: root/www/gatus/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/gatus/Makefile')
-rw-r--r--www/gatus/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/www/gatus/Makefile b/www/gatus/Makefile
new file mode 100644
index 0000000..92f77cd
--- /dev/null
+++ b/www/gatus/Makefile
@@ -0,0 +1,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>