aboutsummaryrefslogtreecommitdiff
path: root/japanese/skkserv
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-08-01 02:29:39 +0000
committerSteve Price <steve@FreeBSD.org>1999-08-01 02:29:39 +0000
commit8cb233bcacb3b7b531ce29a86ae9c1a1f4e2671a (patch)
treeafd9db89890944c3809ad49014d8a314f9b2743a /japanese/skkserv
parentb4d5c337067baaef0f4a695e13f6d5979eaf682a (diff)
downloadports-8cb233bcacb3b7b531ce29a86ae9c1a1f4e2671a.tar.gz
ports-8cb233bcacb3b7b531ce29a86ae9c1a1f4e2671a.zip
Teach the skkserv.sh script to understand correctly its start/stop
arguments. PR: 12514 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=20420
Diffstat (limited to 'japanese/skkserv')
-rw-r--r--japanese/skkserv/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/japanese/skkserv/Makefile b/japanese/skkserv/Makefile
index adced633b627..baf0006b47c2 100644
--- a/japanese/skkserv/Makefile
+++ b/japanese/skkserv/Makefile
@@ -3,7 +3,7 @@
# Date created: 31 Oct 1998
# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
#
-# $Id: Makefile,v 1.2 1998/12/23 08:50:37 kuriyama Exp $
+# $Id: Makefile,v 1.3 1998/12/23 12:02:18 asami Exp $
#
DISTNAME= skk9.6
@@ -28,12 +28,18 @@ post-install:
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} file."; \
${ECHO} "#!/bin/sh" > ${STARTUP_SCRIPT}; \
- ${ECHO} "if [ -f ${PREFIX}/sbin/skkserv ]; then" >> \
+ ${ECHO} 'case $$1 in' >> ${STARTUP_SCRIPT}; \
+ ${ECHO} "start)" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} " if [ -f ${PREFIX}/sbin/skkserv ]; then" >> \
${STARTUP_SCRIPT}; \
- ${ECHO} " echo -n ' skkserv'; ${PREFIX}/sbin/skkserv" >> \
+ ${ECHO} " echo -n ' skkserv'; ${PREFIX}/sbin/skkserv" >> \
${STARTUP_SCRIPT}; \
- ${ECHO} "fi" >> ${STARTUP_SCRIPT}; \
- chmod 755 ${STARTUP_SCRIPT}; \
+ ${ECHO} " fi" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} "stop)" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} "*)" >> ${STARTUP_SCRIPT}; \
+ ${ECHO} ' echo "usage: $$0 {start|stop}" 1>&2' >> ${STARTUP_SCRIPT}; \
fi
.include <bsd.port.mk>