blob: f4e025dbfdfebdb696c7a53501d5e1e0363aa74b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# New ports collection makefile for: skkserv
# Date created: 31 Oct 1998
# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
#
# $FreeBSD$
#
PORTNAME= skkserv
PORTVERSION= 9.6
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
DISTNAME= skk${PORTVERSION}
MAINTAINER= matusita@FreeBSD.org
BUILD_DEPENDS= ${NONEXISTENT}:${SKK_MASTERDIR}:configure
RUN_DEPENDS= ${PREFIX}/share/skk/${SKKJISYO}:${SKK_MASTERDIR}
SKKJISYO_SIZE?= L
SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE}
SKK_MASTERDIR= ${.CURDIR}/../../japanese/skk-jisyo
WRKSRC= ${WRKDIRPREFIX}${SKK_MASTERDIR}/work/skk-${PORTVERSION}
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_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" >> \
${STARTUP_SCRIPT}; \
${ECHO_CMD} " ${ECHO_CMD} -n ' skkserv'; ${PREFIX}/sbin/skkserv" >> \
${STARTUP_SCRIPT}; \
${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}; \
${CHMOD} ${BINMODE} ${STARTUP_SCRIPT}; \
fi
.include <bsd.port.mk>
|