summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-07-29 21:35:46 +0000
committerjmmv <jmmv>2003-07-29 21:35:46 +0000
commite0503d9d63bc5d5ab0df348e922fae62540fbc49 (patch)
tree2b114b9cf9d6bf9d6fe09ac18084dd1267ee1505 /inputmethod
parent710b4fda6e3316d42c9417e3ff088703f2e638db (diff)
downloadpkgsrc-e0503d9d63bc5d5ab0df348e922fae62540fbc49.tar.gz
Use bsd.pkg.install.mk to manage the rc.d script. While here, add SJ3OWNER
and SJ3GROUP variables to BUILD_DEFS. Bump PKGREVISION to 2.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/sj3-server-bin/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/inputmethod/sj3-server-bin/Makefile b/inputmethod/sj3-server-bin/Makefile
index f308f65833f..380c1b38b2f 100644
--- a/inputmethod/sj3-server-bin/Makefile
+++ b/inputmethod/sj3-server-bin/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2003/07/17 21:43:47 grant Exp $
+# $NetBSD: Makefile,v 1.4 2003/07/29 21:35:46 jmmv Exp $
#
DISTNAME= sj3-2.0.1.20
PKGNAME= sj3-server-bin-2.0.1.20
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= japanese inputmethod
MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
@@ -16,16 +16,17 @@ DISTINFO_FILE= ${.CURDIR}/../sj3-lib/distinfo
PATCHDIR= ${.CURDIR}/../sj3-lib/patches
USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
.include "../../mk/bsd.prefs.mk"
+BUILD_DEFS+= SJ3OWNER SJ3GROUP
SJ3OWNER?= daemon
SJ3GROUP?= daemon
MAKE_ENV+= SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"
-STARTUP_SCRIPT= etc/rc.d/sj3
-STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP
+RCD_SCRIPTS= sj3
pre-configure:
@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
@@ -44,15 +45,15 @@ do-configure:
@(cd ${WRKSRC}; ${XMKMF_CMD}; ${MAKE} Makefiles)
post-build:
- @${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC}
- @${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${STARTUP_SCRIPT_SRC}
- @${ECHO} 'if [ -f $$sj3 ]; then' >> ${STARTUP_SCRIPT_SRC}
- @${ECHO} " echo -n ' sj3'" >> ${STARTUP_SCRIPT_SRC}
- @${ECHO} ' $$sj3' >> ${STARTUP_SCRIPT_SRC}
- @${ECHO} 'fi' >> ${STARTUP_SCRIPT_SRC}
+ @${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} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}
+ @${INSTALL_SCRIPT} ${WRKDIR}/sj3 ${PREFIX}/etc/rc.d/sj3
.include "../../devel/nbitools/nbitools.mk"
.include "../../inputmethod/sj3-lib/buildlink2.mk"