mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
79260ee9b5
Server Density Agent for FreeBSD Monitor CPU, memory, disk usage, network, Apache, MySQL + more via the ServerDensity platform. WWW: https://www.serverdensity.com/
45 lines
967 B
Makefile
45 lines
967 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sd-agent
|
|
DISTVERSION= 1.13.4
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= tim@wallago.co.uk
|
|
COMMENT= Server Density Agent for FreeBSD
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
RUN_DEPENDS= $(LOCALBASE)/sbin/sysinfo:$(PORTSDIR)/sysutils/sysinfo
|
|
|
|
USERS= sd-agent
|
|
GROUPS= sd-agent
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= serverdensity
|
|
GH_COMMIT= 1bacffa
|
|
|
|
USES= python shebangfix
|
|
SHEBANG_FILES= agent.py
|
|
python_OLD_CMD= /usr/bin/env python
|
|
|
|
USE_RC_SUBR= $(PORTNAME)
|
|
SUB_LIST+= RCNAME=$(PORTNAME:S/-/_/g)
|
|
|
|
NO_ARCH= yes
|
|
|
|
INSTALLDIR= $(STAGEDIR)$(PREFIX)/libexec/$(PORTNAME)
|
|
FLIST= agent.py checks.py daemon.py logtail.py minjson.py pep8.sh plugins.py sd-deploy.py
|
|
|
|
do-build::
|
|
$(SED) -i .bak 's,%%PREFIX%%,$(PREFIX),' $(WRKSRC)/agent.py
|
|
|
|
do-install::
|
|
$(MKDIR) $(INSTALLDIR)/plugins
|
|
.for f in $(FLIST)
|
|
$(INSTALL_SCRIPT) $(WRKSRC)/$f $(INSTALLDIR)
|
|
.endfor
|
|
$(MKDIR) $(STAGEDIR)$(ETCDIR)
|
|
$(INSTALL_DATA) $(WRKSRC)/config.cfg $(STAGEDIR)$(ETCDIR)/config.cfg.sample
|
|
|
|
.include <bsd.port.mk>
|