aboutsummaryrefslogtreecommitdiffstats
path: root/www/gatus/Makefile
diff options
context:
space:
mode:
authorla-ninpre <aaoth@aaoth.xyz>2023-04-27 01:02:17 +0300
committerla-ninpre <aaoth@aaoth.xyz>2023-04-27 01:02:17 +0300
commit6cdfb9b9ab548157f190e620b8da6e86afe2f95b (patch)
tree4eba1e1f29ed95a9bd796f90188ade881cd811ff /www/gatus/Makefile
parentdaf68141d829acbf71ae5aebb964c84f7b850a73 (diff)
downloadports-6cdfb9b9ab548157f190e620b8da6e86afe2f95b.tar.gz
ports-6cdfb9b9ab548157f190e620b8da6e86afe2f95b.zip
www/gatus: add 5.3.2
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>