diff options
author | gavan <gavan> | 2006-05-18 15:45:09 +0000 |
---|---|---|
committer | gavan <gavan> | 2006-05-18 15:45:09 +0000 |
commit | e815a0777236bd8be8820f95f71de25e76756840 (patch) | |
tree | e202fb46c1aec27b379fde4c7f934fab78b52d6e /sysutils | |
parent | b74b2a72f2ba5e2fe6aed72de6af2868d7cc124d (diff) | |
download | pkgsrc-e815a0777236bd8be8820f95f71de25e76756840.tar.gz |
Add rc.d script
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/tits/Makefile | 3 | ||||
-rw-r--r-- | sysutils/tits/PLIST | 3 | ||||
-rw-r--r-- | sysutils/tits/files/tits.sh | 25 |
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 |