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

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 285-291 stunnel:*:341: Link Here
285
openfire:*:342:
285
openfire:*:342:
286
gunicorn:*:343:
286
gunicorn:*:343:
287
snmpd:*:344:
287
snmpd:*:344:
288
# free: 345
288
_metronome:*:345:
289
# free: 346
289
# free: 346
290
eturnal:*:347:
290
eturnal:*:347:
291
# free: 348
291
# free: 348
(-)b/UIDs (-1 / +1 lines)
Lines 290-296 stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/usr/sbin/nologin Link Here
290
openfire:*:342:342::0:0:Openfire IM Daemon:/nonexistent:/usr/sbin/nologin
290
openfire:*:342:342::0:0:Openfire IM Daemon:/nonexistent:/usr/sbin/nologin
291
gunicorn:*:343:343::0:0:Gunicorn Daemon:/nonexistent:/usr/sbin/nologin
291
gunicorn:*:343:343::0:0:Gunicorn Daemon:/nonexistent:/usr/sbin/nologin
292
snmpd:*:344:344::0:0:Net-SNMP Daemon:/nonexistent:/usr/sbin/nologin
292
snmpd:*:344:344::0:0:Net-SNMP Daemon:/nonexistent:/usr/sbin/nologin
293
# free: 345
293
_metronome:*:345:345::0:0:Metronome Daemon:/nonexistent:/usr/sbin/nologin
294
# free: 346
294
# free: 346
295
eturnal:*:347:347::0:0:eturnal User:/var/spool/eturnal:/bin/sh
295
eturnal:*:347:347::0:0:eturnal User:/var/spool/eturnal:/bin/sh
296
# free: 348
296
# free: 348
(-)b/net-mgmt/metronome/Makefile (-2 / +16 lines)
Lines 1-6 Link Here
1
PORTNAME=	metronome
1
PORTNAME=	metronome
2
DISTVERSION=	0.9.0
2
DISTVERSION=	0.9.0
3
PORTREVISION=	20
3
PORTREVISION=	21
4
CATEGORIES=	net-mgmt dns
4
CATEGORIES=	net-mgmt dns
5
5
6
MAINTAINER=	krion@FreeBSD.org
6
MAINTAINER=	krion@FreeBSD.org
Lines 13-33 LICENSE_FILE= ${WRKSRC}/LICENSE Link Here
13
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs
13
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs
14
14
15
USES=		autoreconf:build compiler:c++11-lang eigen:3 libtool:build \
15
USES=		autoreconf:build compiler:c++11-lang eigen:3 libtool:build \
16
	localbase:ldflags pathfix pkgconfig
16
		localbase:ldflags pathfix pkgconfig
17
USE_CXXSTD=	c++14
17
USE_CXXSTD=	c++14
18
USE_GITHUB=	yes
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	ahupowerdns
19
GH_ACCOUNT=	ahupowerdns
20
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
21
USE_RC_SUBR=	metronome
21
22
22
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
23
24
24
INSTALL_TARGET=	install-strip
25
INSTALL_TARGET=	install-strip
25
26
26
SUB_FILES=	pkg-message
27
SUB_FILES=	pkg-message
28
SUB_LIST+=	METRONOME_DBDIR=${METRONOME_DBDIR} \
29
		METRONOME_USER=${METRONOME_USER}
27
30
31
METRONOME_USER?=	_metronome
32
USERS=			${METRONOME_USER}
33
GROUPS=			${METRONOME_USER}
34
35
PLIST_SUB+=	METRONOME_DBDIR=${METRONOME_DBDIR} \
36
		METRONOME_USER=${METRONOME_USER}
28
OPTIONS_DEFINE=	DOCS
37
OPTIONS_DEFINE=	DOCS
29
38
39
METRONOME_DBDIR?=	/var/db/metronome
40
30
pre-configure:
41
pre-configure:
31
	(cd ${WRKSRC}; ./bootstrap )
42
	(cd ${WRKSRC}; ./bootstrap )
32
43
44
post-install:
45
	${MKDIR} ${STAGEDIR}${METRONOME_DBDIR}
46
33
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)b/net-mgmt/metronome/files/metronome.in (+35 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: metronome
4
# REQUIRE: DAEMON SERVERS
5
# KEYWORD: shutdown
6
7
#
8
# Add the following line to /etc/rc.conf to enable metronome:
9
#
10
# metronome_enable="YES"
11
#
12
# The next lines are optional since they have defaults
13
#
14
# metronome_carbonaddress="<set as needed>"
15
# metronome_wsaddress="<set as needed>"
16
# metronome_statsdir="<set as needed>"
17
#
18
19
. /etc/rc.subr
20
21
name=metronome
22
rcvar=${name}_enable
23
24
load_rc_config ${name}
25
: ${metronome_enable:=NO}
26
: ${metronome_carbonaddress:=127.0.0.1:2003}
27
: ${metronome_wsaddress:=127.0.0.1:8000}
28
: ${metronome_statsdir:=%%METRONOME_DBDIR%%}
29
30
pidfile=/var/run/${name}.pid
31
actual_command="%%PREFIX%%/bin/${name} --daemon 0 --carbon-address ${metronome_carbonaddress} --webserver-address ${metronome_wsaddress} --stats-directory ${metronome_statsdir}"
32
command=/usr/sbin/daemon
33
command_args="-c -f -r -u %%METRONOME_USER%% -P ${pidfile} -- ${actual_command}"
34
35
run_rc_command "$1"
(-)b/net-mgmt/metronome/pkg-plist (-1 / +1 lines)
Lines 18-20 bin/msubmit Link Here
18
%%DATADIR%%/html/legend.css
18
%%DATADIR%%/html/legend.css
19
%%DATADIR%%/html/lines.css
19
%%DATADIR%%/html/lines.css
20
%%DATADIR%%/html/local.js
20
%%DATADIR%%/html/local.js
21
- 
21
@dir(%%METRONOME_USER%%, %%METRONOME_USER%%, ) %%METRONOME_DBDIR%%

Return to bug 239819