carp_exporter/Makefile

33 lines
780 B
Makefile
Raw Normal View History

2022-05-18 13:59:07 +02:00
PORTNAME= carp_exporter
DISTVERSIONPREFIX= v
2022-06-17 11:11:54 +02:00
DISTVERSION= 1.2
2023-08-21 17:34:30 +02:00
PORTREVISION= 1
2022-05-18 13:59:07 +02:00
CATEGORIES= sysutils
MASTER_SITES= https://git.nosd.in/yo/carp_exporter/archive/
DISTNAME= ${DISTVERSIONPREFIX}${DISTVERSION}
MAINTAINER= johan@nosd.in
COMMENT= Export CARP status in Prometheus format
LICENSE= BSD2CLAUSE
USES= shebangfix python
SHEBANG_FILES= *.py
# Gitea packaging need some tweaks
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
EXTRACT_AFTER_ARGS= && ( [ -d ${PORTNAME} ] && ${MV} ${PORTNAME} ${PORTNAME}-${DISTVERSION} )
USERS= nobody
GROUPS= nobody
NO_BUILD= YES
NO_TEST= YES
USE_RC_SUBR= carp_exporter
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/carp_exporter.py ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>