First commit

This commit is contained in:
yo
2022-05-18 13:59:07 +02:00
commit c9dd3e22a5
5 changed files with 83 additions and 0 deletions

31
Makefile Normal file
View File

@ -0,0 +1,31 @@
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>