1998-12-15 15:22:46 +00:00
|
|
|
# New ports collection makefile for: skkserv
|
|
|
|
# Version required: 9.6
|
|
|
|
# Date created: 31 Oct 1998
|
|
|
|
# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-12-15 15:22:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= skk9.6
|
|
|
|
PKGNAME= ja-skkserv-9.6
|
|
|
|
CATEGORIES= japanese
|
|
|
|
MASTER_SITES= ftp://skk.kuis.kyoto-u.ac.jp/skk/9.6/
|
|
|
|
|
|
|
|
MAINTAINER= matusita@jp.freebsd.org
|
|
|
|
|
1998-12-23 08:50:37 +00:00
|
|
|
BUILD_DEPENDS= /nonexistent:${SKK_MASTERDIR}:configure
|
1998-12-15 15:22:46 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/share/skk/${SKKJISYO}:${SKK_MASTERDIR}
|
|
|
|
|
|
|
|
SKKJISYO_SIZE?= L
|
|
|
|
SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE}
|
|
|
|
SKK_MASTERDIR= ${.CURDIR}/../../japanese/skk-jisyo
|
1998-12-23 12:02:18 +00:00
|
|
|
WRKSRC= ${WRKDIRPREFIX}${SKK_MASTERDIR}/work/skk-9.6
|
1998-12-15 15:22:46 +00:00
|
|
|
MAKE_ARGS= SUBDIRS='skkserv'
|
|
|
|
|
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/skkserv.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${STARTUP_SCRIPT}; \
|
1999-08-01 02:29:39 +00:00
|
|
|
${ECHO} 'case $$1 in' >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} "start)" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} " if [ -f ${PREFIX}/sbin/skkserv ]; then" >> \
|
1998-12-15 15:22:46 +00:00
|
|
|
${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} " ${ECHO} -n ' skkserv'; ${PREFIX}/sbin/skkserv" >> \
|
1998-12-15 15:22:46 +00:00
|
|
|
${STARTUP_SCRIPT}; \
|
1999-08-01 02:29:39 +00:00
|
|
|
${ECHO} " fi" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} "stop)" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} "*)" >> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} ' ${ECHO} "usage: $$0 {start|stop}" 1>&2' >> ${STARTUP_SCRIPT}; \
|
1999-08-17 19:08:35 +00:00
|
|
|
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} 'esac' >> ${STARTUP_SCRIPT}; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} ${BINMODE} ${STARTUP_SCRIPT}; \
|
1998-12-15 15:22:46 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|