diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/tits/Makefile | 4 | ||||
-rw-r--r-- | comms/tits/files/tits.in | 33 |
2 files changed, 36 insertions, 1 deletions
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" |