FreeBSD Bugzilla – Attachment 206487 Details for
Bug 239819
[PATCH] net-mgmt/metronome: add rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
metronome add rc script
metronome.diff.txt (text/plain), 2.27 KB, created by
Leo Vandewoestijne
on 2019-08-13 15:33:24 UTC
(
hide
)
Description:
metronome add rc script
Filename:
MIME Type:
Creator:
Leo Vandewoestijne
Created:
2019-08-13 15:33:24 UTC
Size:
2.27 KB
patch
obsolete
>diff net-mgmt/metronome.orig/Makefile net-mgmt/metronome/Makefile >5c5 >< PORTREVISION= 9 >--- >> PORTREVISION= 10 >16a17,18 >> >> USE_RC_SUBR= metronome >Common subdirectories: net-mgmt/metronome.orig/files and net-mgmt/metronome/files >root@monitor:/usr/ports # diff -ruN net-mgmt/metronome.orig net-mgmt/metronome >diff -ruN net-mgmt/metronome.orig/Makefile net-mgmt/metronome/Makefile >--- net-mgmt/metronome.orig/Makefile 2019-08-13 15:14:13.280369000 +0000 >+++ net-mgmt/metronome/Makefile 2019-08-13 15:18:34.499427000 +0000 >@@ -2,7 +2,7 @@ > > PORTNAME= metronome > DISTVERSION= 0.9.0 >-PORTREVISION= 9 >+PORTREVISION= 10 > CATEGORIES= net-mgmt dns > > MAINTAINER= krion@FreeBSD.org >@@ -14,6 +14,8 @@ > LIB_DEPENDS= libboost_thread.so:devel/boost-libs > > USES= autoreconf:build compiler:c++11-lang eigen:3 libtool:build pathfix pkgconfig >+ >+USE_RC_SUBR= metronome > > USE_GITHUB= yes > GH_ACCOUNT= ahupowerdns >diff -ruN net-mgmt/metronome.orig/files/metronome.in net-mgmt/metronome/files/metronome.in >--- net-mgmt/metronome.orig/files/metronome.in 1970-01-01 00:00:00.000000000 +0000 >+++ net-mgmt/metronome/files/metronome.in 2019-08-13 15:16:03.394270000 +0000 >@@ -0,0 +1,37 @@ >+#!/bin/sh >+ >+# $FreeBSD: $ >+# >+# PROVIDE: metronome >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+ >+# Add the following lines to /etc/rc.conf to enable metronome >+# metronome_enable="YES" >+# >+# metronome_enable (bool): Set to YES to enable metronome >+# Default: NO >+# metronome_carbon (str): metronome carbon address >+# Default: [::]:2003 >+# metronome_www (str): metronome www address >+# Default: [::]:8000 >+# metronome_stats (str): metronome stats directory >+# Default: %%PREFIX%%/etc/metronome/stats >+ >+. /etc/rc.subr >+ >+name="metronome" >+rcvar=metronome_enable >+load_rc_config $name >+ >+: ${metronome_enable:="NO"} >+: ${metronome_carbon:="[::]:2003"} >+: ${metronome_www:="[::]:8000"} >+: ${metronome_stats:="%%PREFIX%%/etc/metronome/stats"} >+: ${metronome_options:="--carbon-address=${metronome_carbon} --webserver-address=${metronome_www} --stats-directory=${metronome_stats}"} >+ >+procname="%%PREFIX%%/bin/metronome" >+command=%%PREFIX%%/bin/metronome >+command_args="${metronome_options}" >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239819
:
206487
|
208649
|
250715