summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2006-05-18 15:45:09 +0000
committergavan <gavan@pkgsrc.org>2006-05-18 15:45:09 +0000
commit5f8eedc659224547efa4a48ce3a2c33bbc04e27b (patch)
treee202fb46c1aec27b379fde4c7f934fab78b52d6e /sysutils
parent35f1461a6de1809aee49e660c899dd2998613bae (diff)
downloadpkgsrc-5f8eedc659224547efa4a48ce3a2c33bbc04e27b.tar.gz
Add rc.d script
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tits/Makefile3
-rw-r--r--sysutils/tits/PLIST3
-rw-r--r--sysutils/tits/files/tits.sh25
3 files changed, 29 insertions, 2 deletions
diff --git a/sysutils/tits/Makefile b/sysutils/tits/Makefile
index fa29a846bd4..b914124fd37 100644
--- a/sysutils/tits/Makefile
+++ b/sysutils/tits/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2005/12/05 20:51:01 rillig Exp $
+# $NetBSD: Makefile,v 1.14 2006/05/18 15:45:09 gavan Exp $
#
DISTNAME= tits-1.1.1
@@ -11,6 +11,7 @@ COMMENT= Server which provides telnet(1) access to one or more tty ports
BINDIR= ${PREFIX}/sbin
MANDIR= ${PREFIX}/man
MAKE_ENV+= BINDIR=${BINDIR:Q} MANDIR=${MANDIR:Q}
+RCD_SCRIPTS= tits
MANCOMPRESSED_IF_MANZ= yes
diff --git a/sysutils/tits/PLIST b/sysutils/tits/PLIST
index 7f8cbd6c76b..0f72ebcb9d2 100644
--- a/sysutils/tits/PLIST
+++ b/sysutils/tits/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:57 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/05/18 15:45:09 gavan Exp $
+share/examples/rc.d/tits
share/examples/tits.conf
sbin/tits
man/man8/tits.8
diff --git a/sysutils/tits/files/tits.sh b/sysutils/tits/files/tits.sh
new file mode 100644
index 00000000000..0b557b74787
--- /dev/null
+++ b/sysutils/tits/files/tits.sh
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: tits.sh,v 1.1 2006/05/18 15:45:09 gavan Exp $
+#
+
+# PROVIDE: tits
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="tits"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="@PKG_SYSCONFDIR@/tits.conf"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${tits_flags}
+fi