blob: 459ac098d84e379acf72faa4a28f56030f5f0622 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.6 2000/12/01 03:15:34 itojun Exp $
DISTNAME= Canna35b2
PKGNAME= Canna-server-3.5b2
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna35/
PATCH_SITES= http://www.jaist.ac.jp/~fujieda/canna/
PATCHFILES= Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \
Canna35b2-hack1.patch.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= tech-pkg-ja@jp.netbsd.org
HOMEPAGE= http://www.nec.co.jp/japanese/product/computer/soft/canna/
DEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
MASTERDIR= ${.CURDIR}/../../japanese/canna-lib
FILESDIR= ${MASTERDIR}/files
PATCHDIR= ${MASTERDIR}/patches
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if ${USE_INET6} == "YES"
INET6= -DINET6
.else
INET6= # empty
.endif
CANNAOWNER?= daemon
CANNAGROUP?= daemon
CANNA_SPOOL= /var/spool/canna
CANNA_MODE= 0755
DICT_DIR?= /var/dict
MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
CANNA_SPOOL=${CANNA_SPOOL} DICT_DIR=${DICT_DIR} INET6=${INET6}
PLIST_SUBST= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
CANNA_SPOOL=${CANNA_SPOOL} CANNA_MODE=${CANNA_MODE} \
DICT_DIR=${DICT_DIR} PREFIX=${PREFIX}
STARTUP_SCRIPT= etc/rc.d/canna.sh
STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP
INSTALL_TARGET= instserver instclient
post-patch:
@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
@${SED} -e 's|\(SUBDIRS = .*\) misc\(.*\)|\1\2|' \
-e 's|\(SERVERDIR = .*\) dic/phono\(.*\)|\1\2|' \
-e 's|\(CLIENTDIR = .*\) dic/phono misc|\1|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
do-configure:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})
post-build:
@${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC}
@${ECHO} 'canna=${PREFIX}/sbin/cannaserver' >> ${STARTUP_SCRIPT_SRC}
@${ECHO} 'if [ -f $$canna ]; then' >> ${STARTUP_SCRIPT_SRC}
@${ECHO} " echo -n ' Canna'" >> ${STARTUP_SCRIPT_SRC}
@${ECHO} ' $$canna' >> ${STARTUP_SCRIPT_SRC}
@${ECHO} "fi" >> ${STARTUP_SCRIPT_SRC}
post-install:
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
@${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}
@${MKDIR} ${CANNA_SPOOL}
@${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL}
@${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL}
.include "../../mk/bsd.pkg.mk"
|