View | Details | Raw Unified | Return to bug 230740 | Differences between
and this patch

Collapse All | Expand All

(-)net-mgmt/statsite/Makefile (-1 / +7 lines)
Lines 3-8 Link Here
3
PORTNAME=	statsite
3
PORTNAME=	statsite
4
PORTVERSION=	0.8.0
4
PORTVERSION=	0.8.0
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	1
6
CATEGORIES=	net-mgmt
7
CATEGORIES=	net-mgmt
7
8
8
MAINTAINER=	rbarabas@rbarabas.info
9
MAINTAINER=	rbarabas@rbarabas.info
Lines 11-17 Link Here
11
LICENSE=	BSD3CLAUSE
12
LICENSE=	BSD3CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
14
USES=		autoreconf
15
USES=		autoreconf python:run
15
GNU_CONFIGURE=	yes
16
GNU_CONFIGURE=	yes
16
USE_GITHUB=	yes
17
USE_GITHUB=	yes
17
GH_ACCOUNT=	armon
18
GH_ACCOUNT=	armon
Lines 20-25 Link Here
20
21
21
USERS=		statsd
22
USERS=		statsd
22
GROUPS=		statsd
23
GROUPS=		statsd
24
USE_RC_SUBR=	${PORTNAME}
23
25
24
OPTIONS_DEFINE=	DOCS
26
OPTIONS_DEFINE=	DOCS
25
27
Lines 26-31 Link Here
26
PORTDOCS=	README.md
28
PORTDOCS=	README.md
27
29
28
post-install:
30
post-install:
31
	${REINPLACE_CMD} -e 's,python,${PYTHON_CMD}, ; \
32
		s,/usr/libexec,/usr/local/share, ; \
33
		/daemonize/d ; /pid_file/d ' \
34
		${WRKSRC}/rpm/statsite.conf.example
29
	${INSTALL_DATA} ${WRKSRC}/rpm/statsite.conf.example \
35
	${INSTALL_DATA} ${WRKSRC}/rpm/statsite.conf.example \
30
		${STAGEDIR}${PREFIX}/etc/statsite.conf.sample
36
		${STAGEDIR}${PREFIX}/etc/statsite.conf.sample
31
37
(-)net-mgmt/statsite/files/statsite.in (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: statsite
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# statsite_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable statsite.
14
# statsite_config (path):	Set to %%PREFIX%%/etc/statsite.conf
15
#				by default.
16
17
. /etc/rc.subr
18
19
name=statsite
20
rcvar=statsite_enable
21
22
load_rc_config $name
23
24
: ${statsite_enable:="NO"}
25
: ${statsite_config="%%PREFIX%%/etc/statsite.conf"}
26
27
pidfile=/var/run/${name}.pid
28
command="/usr/sbin/daemon"
29
30
command_args="-u statsd -P ${pidfile} /usr/local/bin/statsite -f ${statsite_config}"
31
32
run_rc_command "$1"

Return to bug 230740