diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2006-03-19 02:24:30 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2006-03-19 02:24:30 +0000 |
commit | c3c75e1d1c310dc3e17040119c967db3008e32ce (patch) | |
tree | e8c9807197285221b61ecabf04d421d8f1003e93 /sysutils | |
parent | cf0f5c9e37168cb265f3a8f1b5d6b6ef3de1a93a (diff) | |
download | ports-c3c75e1d1c310dc3e17040119c967db3008e32ce.tar.gz ports-c3c75e1d1c310dc3e17040119c967db3008e32ce.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/mbmon/Makefile | 6 | ||||
-rw-r--r-- | sysutils/mbmon/files/mbmon.sh.in | 32 |
2 files changed, 37 insertions, 1 deletions
diff --git a/sysutils/mbmon/Makefile b/sysutils/mbmon/Makefile index 397aa646b326..32aed5130344 100644 --- a/sysutils/mbmon/Makefile +++ b/sysutils/mbmon/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mbmon PORTVERSION= 205 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= sysutils MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/ DISTNAME= xmbmon${PORTVERSION} @@ -26,6 +26,10 @@ PORTDOCS= ChangeLog ChangeLog.jp ReadMe ReadMe.jp ReadMe.tech OPTIONS= SMB "enable smb(4) support" on +.if ${PORTNAME} == "mbmon" +USE_RC_SUBR= mbmon.sh +.endif + .include <bsd.port.pre.mk> post-patch: diff --git a/sysutils/mbmon/files/mbmon.sh.in b/sysutils/mbmon/files/mbmon.sh.in new file mode 100644 index 000000000000..61d317f39ee5 --- /dev/null +++ b/sysutils/mbmon/files/mbmon.sh.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: mbmon +# REQUIRE: LOGIN +# BEFORE: securelevel +# KEYWORD: FreeBSD shutdown + +# Add the following line to /etc/rc.conf to enable the mbmon daemon: +# +# mbmon_enable="YES" +# +# See mbmon(1) for mbmon_flags +# Set mbmon_port to the TCP port to listen to, default is 12999 + +. %%RC_SUBR%% + +name="mbmon" +rcvar=`set_rcvar` + +# read configuration and set defaults +load_rc_config "$name" +: ${mbmon_enable="NO"} +: ${mbmon_flags=""} +: ${mbmon_port="12999"} + +command="%%PREFIX%%/bin/${name}" +command_args="-P ${mbmon_port}" + +run_rc_command "$1" |