View | Details | Raw Unified | Return to bug 239819
Collapse All | Expand All

(-)net-mgmt/metronome/Makefile (-1 / +3 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	metronome
3
PORTNAME=	metronome
4
DISTVERSION=	0.9.0
4
DISTVERSION=	0.9.0
5
PORTREVISION=	9
5
PORTREVISION=	10
6
CATEGORIES=	net-mgmt dns
6
CATEGORIES=	net-mgmt dns
7
7
8
MAINTAINER=	krion@FreeBSD.org
8
MAINTAINER=	krion@FreeBSD.org
Lines 14-19 Link Here
14
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs
14
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs
15
15
16
USES=		autoreconf:build compiler:c++11-lang eigen:3 libtool:build pathfix pkgconfig
16
USES=		autoreconf:build compiler:c++11-lang eigen:3 libtool:build pathfix pkgconfig
17
18
USE_RC_SUBR=	metronome
17
19
18
USE_GITHUB=	yes
20
USE_GITHUB=	yes
19
GH_ACCOUNT=	ahupowerdns
21
GH_ACCOUNT=	ahupowerdns
(-)net-mgmt/metronome/files/metronome.in (+37 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: $
4
#
5
# PROVIDE: metronome
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
9
# Add the following lines to /etc/rc.conf to enable metronome
10
# metronome_enable="YES"
11
#
12
# metronome_enable (bool):      Set to YES to enable metronome
13
#                               Default: NO
14
# metronome_carbon (str):       metronome carbon address
15
#                               Default: [::]:2003
16
# metronome_www (str):          metronome www address
17
#                               Default: [::]:8000
18
# metronome_stats (str):        metronome stats directory
19
#                               Default: %%PREFIX%%/etc/metronome/stats
20
    
21
. /etc/rc.subr
22
23
name="metronome"
24
rcvar=metronome_enable
25
load_rc_config $name
26
27
: ${metronome_enable:="NO"}
28
: ${metronome_carbon:="[::]:2003"}
29
: ${metronome_www:="[::]:8000"}
30
: ${metronome_stats:="%%PREFIX%%/etc/metronome/stats"}
31
: ${metronome_options:="--carbon-address=${metronome_carbon} --webserver-address=${metronome_www} --stats-directory=${metronome_stats}"}
32
33
procname="%%PREFIX%%/bin/metronome"
34
command=%%PREFIX%%/bin/metronome
35
command_args="${metronome_options}"
36
37
run_rc_command "$1"

Return to bug 239819