summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2000-10-26 12:36:46 +0000
committerMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2000-10-26 12:36:46 +0000
commit7abc16b279de8baf5f2e9a34d1608848d3c6cc20 (patch)
tree8a42962f89a278e3ceab12e3b1a0e67c494856ba /japanese
parentjapanese/jtex209-both and jtex209-ntt was broken only on package (diff)
startup script know about the two options `start' and `stop'.
OKed by: maintainer
Diffstat (limited to 'japanese')
-rw-r--r--japanese/dserver/Makefile1
-rw-r--r--japanese/dserver/files/README.FreeBSD-setup.euc21
-rw-r--r--japanese/dserver/files/setup.sh.standalone23
3 files changed, 36 insertions, 9 deletions
diff --git a/japanese/dserver/Makefile b/japanese/dserver/Makefile
index ee22adefa328..a22b7db5b8b0 100644
--- a/japanese/dserver/Makefile
+++ b/japanese/dserver/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dserver
PORTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.pu-toyama.ac.jp/pub/misc/ \
${MASTER_SITE_PORTS_JP} \
diff --git a/japanese/dserver/files/README.FreeBSD-setup.euc b/japanese/dserver/files/README.FreeBSD-setup.euc
index e713bf371560..c32b72c80a65 100644
--- a/japanese/dserver/files/README.FreeBSD-setup.euc
+++ b/japanese/dserver/files/README.FreeBSD-setup.euc
@@ -60,11 +60,24 @@ ndtp 2010/tcp #Network Dictionary Transfer Protocol
これにより, OS ブート時に dserver が自動的に起動します.
-----
+#!/bin/sh
# dserver - dictionary server
-if [ -f /usr/local/lib/dserver/dserver ] ; then
- /usr/local/lib/dserver/dserver&
- echo -n 'dserver'
-fi
+case "$1" in
+start)
+ if [ -x /usr/local/lib/dserver/dserver ] ; then
+ /usr/local/lib/dserver/dserver &
+ echo -n ' dserver'
+ fi
+ ;;
+stop)
+ ;;
+*)
+ echo "Usage: setup.sh.standalone {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
-----
I.2. 辞書のコピー・マウント
diff --git a/japanese/dserver/files/setup.sh.standalone b/japanese/dserver/files/setup.sh.standalone
index 51dfe5d08ccc..1b49a2b5860c 100644
--- a/japanese/dserver/files/setup.sh.standalone
+++ b/japanese/dserver/files/setup.sh.standalone
@@ -34,11 +34,24 @@ esac
echo
echo "Adding startup shell script to PREFIX_DIR/etc/rc.d/"
echo "Do you like to add startup shell script automatically? (y/n) [y]" ;
-(echo "# dserver - dictionary server" ;
- echo "if [ -x PREFIX_DIR/lib/dserver/dserver ] ; then" ;
- echo " PREFIX_DIR/lib/dserver/dserver &" ;
- echo " echo -n ' dserver'" ;
- echo "fi") > /tmp/dserver.sh
+(echo "#!/bin/sh" ;
+ echo "# dserver - dictionary server" ;
+ echo "case \"\$1\" in" ;
+ echo "start)" ;
+ echo " if [ -x PREFIX_DIR/lib/dserver/dserver ] ; then" ;
+ echo " PREFIX_DIR/lib/dserver/dserver &" ;
+ echo " echo -n ' dserver'" ;
+ echo " fi" ;
+ echo " ;;" ;
+ echo "stop)" ;
+ echo " ;;" ;
+ echo "*)" ;
+ echo " echo \"Usage: `basename $0` {start|stop}\" >&2" ;
+ echo " exit 64" ;
+ echo " ;;" ;
+ echo "esac" ;
+ echo "" ;
+ echo "exit 0") > /tmp/dserver.sh
read ans;
case x${ans} in
xn*|xN*)