summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-07-31 12:33:03 +0000
committerjmmv <jmmv@pkgsrc.org>2003-07-31 12:33:03 +0000
commit0d5157f861b50d5644b96e988aefb79bbeaa06fb (patch)
tree864229bc0ac9cefba515adde3d32ef74b8efe213 /inputmethod
parentf820597e1bff84a1187203163f1e01b356594879 (diff)
downloadpkgsrc-0d5157f861b50d5644b96e988aefb79bbeaa06fb.tar.gz
Convert the rc.d script to the standard rc.subr format. Ok'ed by uebayasi@.
Bump PKGREVISION to 3.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/sj3-server-bin/Makefile16
-rw-r--r--inputmethod/sj3-server-bin/files/sj3.sh23
2 files changed, 25 insertions, 14 deletions
diff --git a/inputmethod/sj3-server-bin/Makefile b/inputmethod/sj3-server-bin/Makefile
index 380c1b38b2f..c4b189f7f92 100644
--- a/inputmethod/sj3-server-bin/Makefile
+++ b/inputmethod/sj3-server-bin/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2003/07/29 21:35:46 jmmv Exp $
+# $NetBSD: Makefile,v 1.5 2003/07/31 12:33:03 jmmv Exp $
#
DISTNAME= sj3-2.0.1.20
PKGNAME= sj3-server-bin-2.0.1.20
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= japanese inputmethod
MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
@@ -11,7 +11,6 @@ MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
COMMENT= Japanese input method (server binary)
-FILESDIR= ${.CURDIR}/../sj3-lib/files
DISTINFO_FILE= ${.CURDIR}/../sj3-lib/distinfo
PATCHDIR= ${.CURDIR}/../sj3-lib/patches
@@ -44,17 +43,6 @@ pre-configure:
do-configure:
@(cd ${WRKSRC}; ${XMKMF_CMD}; ${MAKE} Makefiles)
-post-build:
- @${ECHO} '#!${RCD_SCRIPTS_SHELL}' > ${WRKDIR}/sj3
- @${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${WRKDIR}/sj3
- @${ECHO} 'if [ -f $$sj3 ]; then' >> ${WRKDIR}/sj3
- @${ECHO} " echo -n ' sj3'" >> ${WRKDIR}/sj3
- @${ECHO} ' $$sj3' >> ${WRKDIR}/sj3
- @${ECHO} 'fi' >> ${WRKDIR}/sj3
-
-post-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/sj3 ${PREFIX}/etc/rc.d/sj3
-
.include "../../devel/nbitools/nbitools.mk"
.include "../../inputmethod/sj3-lib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/sj3-server-bin/files/sj3.sh b/inputmethod/sj3-server-bin/files/sj3.sh
new file mode 100644
index 00000000000..856749f5473
--- /dev/null
+++ b/inputmethod/sj3-server-bin/files/sj3.sh
@@ -0,0 +1,23 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: sj3.sh,v 1.1 2003/07/31 12:33:03 jmmv Exp $
+#
+# PROVIDE: sj3
+# REQUIRE: LOGIN
+#
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="sj3"
+rcvar="${name}"
+command="@PREFIX@/bin/sj3serv"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config "${name}"
+ run_rc_command "$1"
+else
+ printf " sj3"
+ eval ${command} ${sj3_flags} ${command_args}
+fi