carp_exporter/Makefile
2022-05-18 13:59:07 +02:00

32 lines
764 B
Makefile

PORTNAME= carp_exporter
DISTVERSIONPREFIX= v
DISTVERSION= 1.1
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>