From 43b341a6f7a6a2e45eaf2f19c67beb2a9e460239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 9 Apr 2007 15:43:28 +0000 Subject: Add rc script. Note that IWBN to have tits keep a pidfile. Approved by: maintainer (mich@) --- comms/tits/Makefile | 4 +++- comms/tits/files/tits.in | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 comms/tits/files/tits.in (limited to 'comms') diff --git a/comms/tits/Makefile b/comms/tits/Makefile index ca456c921764..4a71af9171ae 100644 --- a/comms/tits/Makefile +++ b/comms/tits/Makefile @@ -7,7 +7,7 @@ PORTNAME= tits PORTVERSION= 1.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms MASTER_SITES= http://www.mctavish.co.uk/tits/ @@ -16,6 +16,8 @@ COMMENT= A server which provides telnet(1) access to one or more tty ports MAKE_ENV= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man +USE_RC_SUBR= tits + MAN8= tits.8 MANCOMPRESSED= yes diff --git a/comms/tits/files/tits.in b/comms/tits/files/tits.in new file mode 100644 index 000000000000..2d5aa86012bb --- /dev/null +++ b/comms/tits/files/tits.in @@ -0,0 +1,33 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: tits +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these tits_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/tits +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +tits_enable="${tits_enable-NO}" +#tits_pidfile="/var/run/tits.pid" + +. %%RC_SUBR%% + +name="tits" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/tits" + +load_rc_config $name + +: ${tits_config="%%PREFIX%%/etc/tits.conf"} +: ${tits_flags="${tits_config}"} + +#pidfile="${tits_pidfile}" +required_files="${tits_config}" + +run_rc_command "$1" -- cgit v1.2.3