blob: 93b60965d51b1a09018c38ba775896bd601eea9c (
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
42
43
44
45
|
PORTNAME= statsite
PORTVERSION= 0.8.0
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= net-mgmt
MAINTAINER= rbarabas@rbarabas.info
COMMENT= C implementation of statsd
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= autoreconf python:env
GNU_CONFIGURE= yes
USE_CSTD= gnu99
USE_GITHUB= yes
GH_ACCOUNT= armon
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
USERS= statsd
GROUPS= statsd
USE_RC_SUBR= statsite
OPTIONS_DEFINE= DOCS
PORTDOCS= README.md
post-patch:
@${REINPLACE_CMD} -e 's,python,${PYTHON_CMD},' \
-e 's,/usr/libexec/statsite,${DATADIR},' \
-e '/daemonize/d' \
-e '/pid_file/d' \
${WRKSRC}/rpm/statsite.conf.example
post-install:
${INSTALL_DATA} ${WRKSRC}/rpm/statsite.conf.example \
${STAGEDIR}${PREFIX}/etc/statsite.conf.sample
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|