aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-04-09 23:43:28 +0800
committerdes <des@FreeBSD.org>2007-04-09 23:43:28 +0800
commit74299cf2a46357da54c46e8c2ac5e827a4a96eb0 (patch)
tree3303e306d74a105cbf8aa5633f3ea086c7c608aa /comms
parent643d36514530606cab19ce2102543cbbcda56f7c (diff)
downloadfreebsd-ports-gnome-74299cf2a46357da54c46e8c2ac5e827a4a96eb0.tar.gz
freebsd-ports-gnome-74299cf2a46357da54c46e8c2ac5e827a4a96eb0.tar.zst
freebsd-ports-gnome-74299cf2a46357da54c46e8c2ac5e827a4a96eb0.zip
Add rc script. Note that IWBN to have tits keep a pidfile.
Approved by: maintainer (mich@)
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"