diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-07-05 17:09:23 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-07-05 17:09:23 +0000 |
commit | e63ad781eca98de0abf4ca9ce4a0eef5bfcfb62c (patch) | |
tree | 90b6b6e28c671bf27219cb46b19579cfed13b3e4 /japanese | |
parent | Add ftpcopy, a two command line ftp tools. (diff) |
Replace the startup script with the new one that supports {start|stop}.
Notes
Notes:
svn path=/head/; revision=30242
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/vje30-trial/Makefile | 1 | ||||
-rw-r--r-- | japanese/vje30-trial/files/vje.sh | 27 | ||||
-rw-r--r-- | japanese/vje30/Makefile | 1 | ||||
-rw-r--r-- | japanese/vje30/files/vje.sh | 27 |
4 files changed, 56 insertions, 0 deletions
diff --git a/japanese/vje30-trial/Makefile b/japanese/vje30-trial/Makefile index 399623bfa628..ee46b866e00f 100644 --- a/japanese/vje30-trial/Makefile +++ b/japanese/vje30-trial/Makefile @@ -50,6 +50,7 @@ BINSTUFF= vje \ post-patch: @cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar @find ${WRKSRC} -name '*.orig' -delete + @${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/ do-install: @cd ${WRKSRC} && tar cf - . | tar xf - -C ${PREFIX} diff --git a/japanese/vje30-trial/files/vje.sh b/japanese/vje30-trial/files/vje.sh new file mode 100644 index 000000000000..8ae895bedb0e --- /dev/null +++ b/japanese/vje30-trial/files/vje.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ + +vjed="/usr/local/vje30/bin/vjed" + +case "$1" in +start) + if [ -x $vjed ] ; then + echo -n ' vje30:' + $vjed & + fi + ;; +stop) + if killall vjed 2>/dev/null; then + echo -n ' vje30' + else + echo -n ' vje30: not running' + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/japanese/vje30/Makefile b/japanese/vje30/Makefile index 002d68832512..d5a415beadcf 100644 --- a/japanese/vje30/Makefile +++ b/japanese/vje30/Makefile @@ -82,6 +82,7 @@ post-extract: post-patch: @cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar @find ${WRKSRC} -name '*.orig' -delete + @${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/ .if defined(WITH_MINORUPDATE) @${MV} ${WRKDIR}/vje ${WRKSRC}/vje30/bin/ .endif diff --git a/japanese/vje30/files/vje.sh b/japanese/vje30/files/vje.sh new file mode 100644 index 000000000000..8ae895bedb0e --- /dev/null +++ b/japanese/vje30/files/vje.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ + +vjed="/usr/local/vje30/bin/vjed" + +case "$1" in +start) + if [ -x $vjed ] ; then + echo -n ' vje30:' + $vjed & + fi + ;; +stop) + if killall vjed 2>/dev/null; then + echo -n ' vje30' + else + echo -n ' vje30: not running' + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |