1998-12-15 16:22:46 +01:00
|
|
|
# New ports collection makefile for: skkserv
|
|
|
|
# Date created: 31 Oct 1998
|
|
|
|
# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1998-12-15 16:22:46 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 16:38:12 +02:00
|
|
|
PORTNAME= skkserv
|
|
|
|
PORTVERSION= 9.6
|
1998-12-15 16:22:46 +01:00
|
|
|
CATEGORIES= japanese
|
2001-07-07 22:55:32 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
|
2000-04-12 16:38:12 +02:00
|
|
|
DISTNAME= skk${PORTVERSION}
|
1998-12-15 16:22:46 +01:00
|
|
|
|
2002-03-15 16:47:40 +01:00
|
|
|
MAINTAINER= matusita@FreeBSD.org
|
1998-12-15 16:22:46 +01:00
|
|
|
|
2002-06-12 16:15:00 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/skk/${SKKJISYO}:${PORTSDIR}/japanese/skk-jisyo
|
1998-12-15 16:22:46 +01:00
|
|
|
|
|
|
|
SKKJISYO_SIZE?= L
|
|
|
|
SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE}
|
2002-06-12 16:15:00 +02:00
|
|
|
WRKSRC= ${WRKDIR}/skk-${PORTVERSION}
|
|
|
|
GNU_CONFIGURE= yes
|
1998-12-15 16:22:46 +01:00
|
|
|
MAKE_ARGS= SUBDIRS='skkserv'
|
2002-06-12 16:15:00 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jisyo=${SKKJISYO} --libexecdir=${PREFIX}/sbin
|
2001-07-07 22:55:32 +02:00
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/skkserv.sh
|
1998-12-15 16:22:46 +01:00
|
|
|
|
2002-06-12 16:15:00 +02:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/skkserv/skkserv ${PREFIX}/sbin
|
1998-12-15 16:22:46 +01:00
|
|
|
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} file."; \
|
2002-01-29 12:08:52 +01:00
|
|
|
${ECHO_CMD} "#!/bin/sh" > ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} 'case $$1 in' >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} "start)" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} " if [ -f ${PREFIX}/sbin/skkserv ]; then" >> \
|
1998-12-15 16:22:46 +01:00
|
|
|
${STARTUP_SCRIPT}; \
|
2002-01-29 12:08:52 +01:00
|
|
|
${ECHO_CMD} " ${ECHO_CMD} -n ' skkserv'; ${PREFIX}/sbin/skkserv" >> \
|
1998-12-15 16:22:46 +01:00
|
|
|
${STARTUP_SCRIPT}; \
|
2002-01-29 12:08:52 +01:00
|
|
|
${ECHO_CMD} " fi" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} "stop)" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} "*)" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} ' ${ECHO_CMD} "usage: $$0 {start|stop}" 1>&2' >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} " ;;" >> ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO_CMD} 'esac' >> ${STARTUP_SCRIPT}; \
|
1999-08-22 21:01:07 +02:00
|
|
|
${CHMOD} ${BINMODE} ${STARTUP_SCRIPT}; \
|
1998-12-15 16:22:46 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|