Date: Thu, 25 Jan 2007 19:05:57 +0300 (MSK) From: Anton Yuzhaninov <citrin@rambler-co.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/108340: [patch] sysutils/oak: add rc.d script Message-ID: <20070125160557.1527E11427@mcgi18.rambler.ru> Resent-Message-ID: <200701251630.l0PGUGl3074492@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 108340 >Category: ports >Synopsis: [patch] sysutils/oak: add rc.d script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 25 16:30:15 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Anton Yuzhaninov >Release: FreeBSD 6.1-RELEASE-p1 i386 >Organization: Rambler >Environment: FreeBSD 6.1-RELEASE-p1 i386 oak-1.5.0 >Description: Oak port don't include startup script. Add it. >How-To-Repeat: >Fix: --- /usr/ports/sysutils/oak.old/Makefile Thu Jan 25 16:56:22 2007 +++ /usr/ports/sysutils/oak/Makefile Thu Jan 25 17:31:25 2007 @@ -13,6 +13,8 @@ MAINTAINER= demon@FreeBSD.org COMMENT= System Log Reporting Tool +USE_RC_SUBR= oak + GNU_CONFIGURE= yes ALL_TARGET= oak PLIST_FILES= bin/oak --- /usr/ports/sysutils/oak.old/files/oak.in Thu Jan 1 03:00:00 1970 +++ /usr/ports/sysutils/oak/files/oak.in Thu Jan 25 19:00:31 2007 @@ -0,0 +1,26 @@ +#!/bin/sh +# $FreeBSD: ports/sysutils/smartmontools/files/oak.in,v 1.1 2006/05/11 17:02:59 garga Exp $ + +# PROVIDE: oak +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +oak_enable="${oak_enable-NO}" + +. %%RC_SUBR%% + +name="oak" +rcvar=`set_rcvar` +command="%%PREFIX%%/bin/oak" + +load_rc_config $name + +: ${oak_config="%%PREFIX%%/etc/oak.conf"} +: ${oak_flags="-c ${oak_config}"} +: ${oak_user="nobody"} + +required_files="${oak_config}" + +run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070125160557.1527E11427>