2013-07-12 12:44:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.23 2013/07/12 10:44:55 jperkin Exp $
|
2004-12-28 03:47:40 +01:00
|
|
|
|
2013-07-12 12:44:52 +02:00
|
|
|
PKGREVISION= 5
|
2003-09-23 17:14:54 +02:00
|
|
|
CANNA_MODULE= server
|
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
.include "../../inputmethod/canna/Makefile.common"
|
2003-09-23 17:14:54 +02:00
|
|
|
|
2010-02-20 11:48:00 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
INSTALL_TARGET= instserver
|
2003-09-23 17:14:54 +02:00
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
MESSAGE_SUBST+= CANNA_USER=${CANNA_USER}
|
|
|
|
MESSAGE_SUBST+= CANNA_GROUP=${CANNA_GROUP}
|
2003-09-23 17:14:54 +02:00
|
|
|
|
|
|
|
PKG_GROUPS= ${CANNA_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${CANNA_USER}:${CANNA_GROUP}
|
2003-09-23 17:14:54 +02:00
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
MAKE_DIRS+= ${IMDICTDIR}
|
2007-02-22 20:26:05 +01:00
|
|
|
OWN_DIRS+= ${IMDICTDIR}/canna
|
|
|
|
OWN_DIRS+= ${IMDICTDIR}/canna/canna
|
2006-07-05 06:48:28 +02:00
|
|
|
OWN_DIRS_PERMS+= ${CANNA_SPOOL} \
|
|
|
|
${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE}
|
2003-09-23 17:14:54 +02:00
|
|
|
|
|
|
|
RCD_SCRIPTS= canna
|
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
.include "../../inputmethod/canna-lib/buildlink3.mk"
|
|
|
|
|
2003-09-23 17:14:54 +02:00
|
|
|
post-patch:
|
|
|
|
${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
|
|
|
|
${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
|
|
|
|
-e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \
|
|
|
|
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
|
|
|
|
${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
|
|
|
|
${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
|
|
|
|
${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
|
|
|
|
|
2006-07-05 06:48:28 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|