diff options
author | demon <demon@FreeBSD.org> | 2007-02-01 20:11:18 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2007-02-01 20:11:18 +0800 |
commit | f423b19bf90b67a843ef2301b0b185dc04b1d4c8 (patch) | |
tree | bb52e4ebec17754c84b6c6ffcb93ee683273f9a4 /sysutils/oak | |
parent | 44c95137a815e3a137c855b6704e77dfe16a3413 (diff) | |
download | freebsd-ports-gnome-f423b19bf90b67a843ef2301b0b185dc04b1d4c8.tar.gz freebsd-ports-gnome-f423b19bf90b67a843ef2301b0b185dc04b1d4c8.tar.zst freebsd-ports-gnome-f423b19bf90b67a843ef2301b0b185dc04b1d4c8.zip |
Add startup script.
PR: 108340
Submitted by: Anton Yuzhaninov <citrin@rambler-co.ru>
Diffstat (limited to 'sysutils/oak')
-rw-r--r-- | sysutils/oak/Makefile | 2 | ||||
-rw-r--r-- | sysutils/oak/files/oak.in | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/oak/Makefile b/sysutils/oak/Makefile index 27ad9a592b79..48a3242b019d 100644 --- a/sysutils/oak/Makefile +++ b/sysutils/oak/Makefile @@ -13,6 +13,8 @@ MASTER_SITES= http://www.ktools.org/dist/oak/ MAINTAINER= demon@FreeBSD.org COMMENT= System Log Reporting Tool +USE_RC_SUBR= oak + GNU_CONFIGURE= yes ALL_TARGET= oak PLIST_FILES= bin/oak diff --git a/sysutils/oak/files/oak.in b/sysutils/oak/files/oak.in new file mode 100644 index 000000000000..4796494ae354 --- /dev/null +++ b/sysutils/oak/files/oak.in @@ -0,0 +1,26 @@ +#!/bin/sh +# $FreeBSD$ + +# 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" |