blob: af7965fb5c6a7400169fb6ff2dd8b53fa7a39a75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
PORTNAME= sd-agent
DISTVERSION= 1.13.4
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= tim@wallago.co.uk
COMMENT= Server Density Agent for FreeBSD
LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${LOCALBASE}/sbin/sysinfo:sysutils/sysinfo
USERS= sd-agent
GROUPS= sd-agent
USE_GITHUB= yes
GH_ACCOUNT= serverdensity
USES= python shebangfix
SHEBANG_FILES= agent.py plugins.py
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>
|