aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2007-04-09 15:43:28 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2007-04-09 15:43:28 +0000
commit43b341a6f7a6a2e45eaf2f19c67beb2a9e460239 (patch)
treec476909aaf82cc5c1fed29d7c107793ff6f0f632 /comms
parentba9a368f552258e25e0865359ed0789fbe8e7793 (diff)
downloadports-43b341a6f7a6a2e45eaf2f19c67beb2a9e460239.tar.gz
ports-43b341a6f7a6a2e45eaf2f19c67beb2a9e460239.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/tits/Makefile4
-rw-r--r--comms/tits/files/tits.in33
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"