head	1.25;
access;
symbols
	pkgsrc-2026Q1:1.25.0.66
	pkgsrc-2026Q1-base:1.25
	pkgsrc-2025Q4:1.25.0.64
	pkgsrc-2025Q4-base:1.25
	pkgsrc-2025Q3:1.25.0.62
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.25.0.60
	pkgsrc-2025Q2-base:1.25
	pkgsrc-2025Q1:1.25.0.58
	pkgsrc-2025Q1-base:1.25
	pkgsrc-2024Q4:1.25.0.56
	pkgsrc-2024Q4-base:1.25
	pkgsrc-2024Q3:1.25.0.54
	pkgsrc-2024Q3-base:1.25
	pkgsrc-2024Q2:1.25.0.52
	pkgsrc-2024Q2-base:1.25
	pkgsrc-2024Q1:1.25.0.50
	pkgsrc-2024Q1-base:1.25
	pkgsrc-2023Q4:1.25.0.48
	pkgsrc-2023Q4-base:1.25
	pkgsrc-2023Q3:1.25.0.46
	pkgsrc-2023Q3-base:1.25
	pkgsrc-2023Q2:1.25.0.44
	pkgsrc-2023Q2-base:1.25
	pkgsrc-2023Q1:1.25.0.42
	pkgsrc-2023Q1-base:1.25
	pkgsrc-2022Q4:1.25.0.40
	pkgsrc-2022Q4-base:1.25
	pkgsrc-2022Q3:1.25.0.38
	pkgsrc-2022Q3-base:1.25
	pkgsrc-2022Q2:1.25.0.36
	pkgsrc-2022Q2-base:1.25
	pkgsrc-2022Q1:1.25.0.34
	pkgsrc-2022Q1-base:1.25
	pkgsrc-2021Q4:1.25.0.32
	pkgsrc-2021Q4-base:1.25
	pkgsrc-2021Q3:1.25.0.30
	pkgsrc-2021Q3-base:1.25
	pkgsrc-2021Q2:1.25.0.28
	pkgsrc-2021Q2-base:1.25
	pkgsrc-2021Q1:1.25.0.26
	pkgsrc-2021Q1-base:1.25
	pkgsrc-2020Q4:1.25.0.24
	pkgsrc-2020Q4-base:1.25
	pkgsrc-2020Q3:1.25.0.22
	pkgsrc-2020Q3-base:1.25
	pkgsrc-2020Q2:1.25.0.20
	pkgsrc-2020Q2-base:1.25
	pkgsrc-2020Q1:1.25.0.16
	pkgsrc-2020Q1-base:1.25
	pkgsrc-2019Q4:1.25.0.18
	pkgsrc-2019Q4-base:1.25
	pkgsrc-2019Q3:1.25.0.14
	pkgsrc-2019Q3-base:1.25
	pkgsrc-2019Q2:1.25.0.12
	pkgsrc-2019Q2-base:1.25
	pkgsrc-2019Q1:1.25.0.10
	pkgsrc-2019Q1-base:1.25
	pkgsrc-2018Q4:1.25.0.8
	pkgsrc-2018Q4-base:1.25
	pkgsrc-2018Q3:1.25.0.6
	pkgsrc-2018Q3-base:1.25
	pkgsrc-2018Q2:1.25.0.4
	pkgsrc-2018Q2-base:1.25
	pkgsrc-2018Q1:1.25.0.2
	pkgsrc-2018Q1-base:1.25
	pkgsrc-2017Q4:1.24.0.20
	pkgsrc-2017Q4-base:1.24
	pkgsrc-2017Q3:1.24.0.18
	pkgsrc-2017Q3-base:1.24
	pkgsrc-2017Q2:1.24.0.14
	pkgsrc-2017Q2-base:1.24
	pkgsrc-2017Q1:1.24.0.12
	pkgsrc-2017Q1-base:1.24
	pkgsrc-2016Q4:1.24.0.10
	pkgsrc-2016Q4-base:1.24
	pkgsrc-2016Q3:1.24.0.8
	pkgsrc-2016Q3-base:1.24
	pkgsrc-2016Q2:1.24.0.6
	pkgsrc-2016Q2-base:1.24
	pkgsrc-2016Q1:1.24.0.4
	pkgsrc-2016Q1-base:1.24
	pkgsrc-2015Q4:1.24.0.2
	pkgsrc-2015Q4-base:1.24
	pkgsrc-2015Q3:1.23.0.18
	pkgsrc-2015Q3-base:1.23
	pkgsrc-2015Q2:1.23.0.16
	pkgsrc-2015Q2-base:1.23
	pkgsrc-2015Q1:1.23.0.14
	pkgsrc-2015Q1-base:1.23
	pkgsrc-2014Q4:1.23.0.12
	pkgsrc-2014Q4-base:1.23
	pkgsrc-2014Q3:1.23.0.10
	pkgsrc-2014Q3-base:1.23
	pkgsrc-2014Q2:1.23.0.8
	pkgsrc-2014Q2-base:1.23
	pkgsrc-2014Q1:1.23.0.6
	pkgsrc-2014Q1-base:1.23
	pkgsrc-2013Q4:1.23.0.4
	pkgsrc-2013Q4-base:1.23
	pkgsrc-2013Q3:1.23.0.2
	pkgsrc-2013Q3-base:1.23
	pkgsrc-2013Q2:1.22.0.28
	pkgsrc-2013Q2-base:1.22
	pkgsrc-2013Q1:1.22.0.26
	pkgsrc-2013Q1-base:1.22
	pkgsrc-2012Q4:1.22.0.24
	pkgsrc-2012Q4-base:1.22
	pkgsrc-2012Q3:1.22.0.22
	pkgsrc-2012Q3-base:1.22
	pkgsrc-2012Q2:1.22.0.20
	pkgsrc-2012Q2-base:1.22
	pkgsrc-2012Q1:1.22.0.18
	pkgsrc-2012Q1-base:1.22
	pkgsrc-2011Q4:1.22.0.16
	pkgsrc-2011Q4-base:1.22
	pkgsrc-2011Q3:1.22.0.14
	pkgsrc-2011Q3-base:1.22
	pkgsrc-2011Q2:1.22.0.12
	pkgsrc-2011Q2-base:1.22
	pkgsrc-2011Q1:1.22.0.10
	pkgsrc-2011Q1-base:1.22
	pkgsrc-2010Q4:1.22.0.8
	pkgsrc-2010Q4-base:1.22
	pkgsrc-2010Q3:1.22.0.6
	pkgsrc-2010Q3-base:1.22
	pkgsrc-2010Q2:1.22.0.4
	pkgsrc-2010Q2-base:1.22
	pkgsrc-2010Q1:1.22.0.2
	pkgsrc-2010Q1-base:1.22
	pkgsrc-2009Q4:1.21.0.8
	pkgsrc-2009Q4-base:1.21
	pkgsrc-2009Q3:1.21.0.6
	pkgsrc-2009Q3-base:1.21
	pkgsrc-2009Q2:1.21.0.4
	pkgsrc-2009Q2-base:1.21
	pkgsrc-2009Q1:1.21.0.2
	pkgsrc-2009Q1-base:1.21
	pkgsrc-2008Q4:1.20.0.4
	pkgsrc-2008Q4-base:1.20
	pkgsrc-2008Q3:1.20.0.2
	pkgsrc-2008Q3-base:1.20
	cube-native-xorg:1.19.0.12
	cube-native-xorg-base:1.19
	pkgsrc-2008Q2:1.19.0.10
	pkgsrc-2008Q2-base:1.19
	cwrapper:1.19.0.8
	pkgsrc-2008Q1:1.19.0.6
	pkgsrc-2008Q1-base:1.19
	pkgsrc-2007Q4:1.19.0.4
	pkgsrc-2007Q4-base:1.19
	pkgsrc-2007Q3:1.19.0.2
	pkgsrc-2007Q3-base:1.19
	pkgsrc-2007Q2:1.18.0.4
	pkgsrc-2007Q2-base:1.18
	pkgsrc-2007Q1:1.18.0.2
	pkgsrc-2007Q1-base:1.18
	pkgsrc-2006Q4:1.17.0.4
	pkgsrc-2006Q4-base:1.17
	pkgsrc-2006Q3:1.17.0.2
	pkgsrc-2006Q3-base:1.17
	pkgsrc-2006Q2:1.16.0.2
	pkgsrc-2006Q2-base:1.16
	pkgsrc-2006Q1:1.15.0.2
	pkgsrc-2006Q1-base:1.15
	pkgsrc-2005Q4:1.13.0.2
	pkgsrc-2005Q4-base:1.13
	pkgsrc-2005Q3:1.12.0.2
	pkgsrc-2005Q3-base:1.12
	pkgsrc-2005Q2:1.11.0.2
	pkgsrc-2005Q2-base:1.11
	pkgsrc-2005Q1:1.10.0.2
	pkgsrc-2005Q1-base:1.10
	pkgsrc-2004Q4:1.9.0.6
	pkgsrc-2004Q4-base:1.9
	pkgsrc-2004Q3:1.9.0.4
	pkgsrc-2004Q3-base:1.9
	pkgsrc-2004Q2:1.9.0.2
	pkgsrc-2004Q2-base:1.9
	pkgsrc-2004Q1:1.8.0.2
	pkgsrc-2004Q1-base:1.8
	pkgsrc-2003Q4:1.6.0.2
	pkgsrc-2003Q4-base:1.6
	netbsd-1-6-1:1.4.0.2
	netbsd-1-6-1-base:1.4
	netbsd-1-6:1.2.0.8
	netbsd-1-6-RELEASE-base:1.2
	pkgviews:1.2.0.4
	pkgviews-base:1.2
	buildlink2-base:1.2
	buildlink2:1.2.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.25
date	2018.03.23.04.43.36;	author rin;	state Exp;
branches;
next	1.24;
commitid	zhmWmq7jBYqkpxvA;

1.24
date	2015.10.18.03.58.31;	author tsutsui;	state Exp;
branches;
next	1.23;
commitid	oYpfg0VCy8eAGxFy;

1.23
date	2013.07.12.10.44.55;	author jperkin;	state Exp;
branches;
next	1.22;
commitid	vVOw5ngQ2VNQxaXw;

1.22
date	2010.02.20.10.48.00;	author obache;	state Exp;
branches;
next	1.21;

1.21
date	2009.01.10.05.13.01;	author obache;	state Exp;
branches;
next	1.20;

1.20
date	2008.09.18.12.35.27;	author taca;	state Exp;
branches;
next	1.19;

1.19
date	2007.07.04.20.54.39;	author jlam;	state Exp;
branches;
next	1.18;

1.18
date	2007.02.22.19.26.37;	author wiz;	state Exp;
branches;
next	1.17;

1.17
date	2006.07.05.04.48.28;	author jlam;	state Exp;
branches;
next	1.16;

1.16
date	2006.04.23.00.12.37;	author jlam;	state Exp;
branches;
next	1.15;

1.15
date	2006.03.14.01.14.29;	author jlam;	state Exp;
branches;
next	1.14;

1.14
date	2005.12.29.06.21.45;	author jlam;	state Exp;
branches;
next	1.13;

1.13
date	2005.12.05.20.50.23;	author rillig;	state Exp;
branches;
next	1.12;

1.12
date	2005.08.23.11.48.47;	author rillig;	state Exp;
branches;
next	1.11;

1.11
date	2005.04.11.21.46.11;	author tv;	state Exp;
branches;
next	1.10;

1.10
date	2004.12.28.02.47.43;	author reed;	state Exp;
branches;
next	1.9;

1.9
date	2004.04.27.20.51.10;	author reed;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.23.04.41.01;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.05.19.09.22;	author minskim;	state Exp;
branches;
next	1.6;

1.6
date	2003.09.23.15.14.55;	author uebayasi;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.01.11.40.57;	author uebayasi;	state dead;
branches;
next	1.4;

1.4
date	2002.12.27.08.41.25;	author uebayasi;	state Exp;
branches;
next	1.3;

1.3
date	2002.12.02.03.40.21;	author itojun;	state Exp;
branches;
next	1.2;

1.2
date	2002.06.10.09.52.15;	author sakamoto;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2002.05.31.13.01.33;	author seb;	state Exp;
branches
	1.1.1.1;
next	;

1.2.2.1
date	2002.06.10.09.52.15;	author jlam;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2002.06.23.18.47.23;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	2002.05.31.13.01.33;	author seb;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Fix buffer over run in mkdic, found by stack protector.
Bump PKGREVISION for Canna-server.
@
text
@# $NetBSD: Makefile,v 1.24 2015/10/18 03:58:31 tsutsui Exp $

PKGREVISION=	1
CANNA_MODULE=	server

.include "../../inputmethod/canna/Makefile.common"

PKG_DESTDIR_SUPPORT=	destdir

INSTALL_TARGET=	instserver

MESSAGE_SUBST+=	CANNA_USER=${CANNA_USER}
MESSAGE_SUBST+=	CANNA_GROUP=${CANNA_GROUP}

PKG_GROUPS=	${CANNA_GROUP}
PKG_USERS=	${CANNA_USER}:${CANNA_GROUP}

MAKE_DIRS+=		${IMDICTDIR}
OWN_DIRS+=		${IMDICTDIR}/canna
OWN_DIRS+=		${IMDICTDIR}/canna/canna
OWN_DIRS_PERMS+=	${CANNA_SPOOL}					\
			${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE}

RCD_SCRIPTS=	canna

.include "../../inputmethod/canna-lib/buildlink3.mk"

post-patch:
	${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib/RK lib/RKindep 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

.include "../../mk/bsd.pkg.mk"
@


1.24
log
@Update canna packages to 3.7pl3.

pkgsrc changes:
 - reorganize patch filenames for maintainability
  - patch-ac is also merged into existing patch-dic_phono_Imakefile
 - fix a missed 64 bit time_t issue in libRK
 - add a hook in cmd.tmpl to disable installation of cmd/forcpp and
   cmd/kpdic in canna-lib
 - tweak SUBDIRS patches in Makefiles to avoid unnecessary builds
   for each packages
 - pull various updates to canuum from the original FreeWnn's uum,
   including posix_openpt(3) support, and disable the default but
   obsolete libspt support
 - reorganize curses(3) ops in canuum per curses(3) documents
 - fix misc compiler warnings
 - take maintainership

Upstream changes:

 All changes are noted in ChangeLog and CHANGES.jp in distfile.
 I won't bother to quote ~1700 line ChangeLogs here,
 because this latest 3.7pl3 was released on 2004/05/20 and
 the previous 3.6pl4 was 2003/09/22.
 Highlight points are:
  - binary dictionary format is changed
  - shlib versions are bumped to 1.2 from 1.1
  - new APIs for wchar
  - experimental 64 bit architecture support
  - IPv6 support

Both server and clients (canuum and mule-1.1) are tested on
NetBSD/i386 7.0, NetBSD/amd64 7.0, and NetBSD/luna68k 7.0.
Also thanks to Nobuyoshi SATO, for his initial patch posted
to tech-pkg-ja@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2013/07/12 10:44:55 jperkin Exp $
d3 1
@


1.23
log
@Bump PKGREVISION of all packages which create users, to pick up change of
sysutils/user_* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2010/02/20 10:48:00 obache Exp $
a2 1
PKGREVISION=	5
d29 1
a29 1
	${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
@


1.22
log
@Marked as destdir support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2009/01/10 05:13:01 obache Exp $
d3 1
a3 1
PKGREVISION=	4
@


1.21
log
@Need CANNA_SPOOL at configure phase to generate cannaconf.h, it's for ERRDIR.
Add CANNA_ENV to SCRIPTS_ENV for imake.

This is only affect to canna-server, as reported by MOCHIDA Shuji by PR 40349.
Bump PKGREVISION of canna-server package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2008/09/18 12:35:27 taca Exp $
d8 2
@


1.20
log
@Bump PKGREVISION of inputmethod/canna* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2007/07/04 20:54:39 jlam Exp $
d3 1
a3 1
PKGREVISION=	3
@


1.19
log
@Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2007/02/22 19:26:37 wiz Exp $
d3 1
a3 1
PKGREVISION=	2
@


1.18
log
@Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2006/07/05 04:48:28 jlam Exp $
a9 1
BUILD_DEFS+=	CANNA_USER CANNA_GROUP
@


1.17
log
@* Convert to USE_TOOLS+=itools instead of including nbitools/buildlink3.mk.

* Fully convert to the pkginstall framework by using it to manage
  directories required at install time.

* Rewrite the canna rc.d script to ensure that all needed directories
  are present before the daemon is started.

* Miscellaneous touch ups to the DESCR and MESSAGE files.

* Remove the need to explicitly set PREFIX.  These packages now install
  into ${LOCALBASE} and use symlinks and file copies to put the files
  into the ${IMDICTDIR}.

Bump the PKGREVISIONs for the canna* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2006/04/23 00:12:37 jlam Exp $
d18 2
a19 2
OWN_DIRS+=        	${IMDICTDIR}/canna
OWN_DIRS+=	        ${IMDICTDIR}/canna/canna
@


1.16
log
@Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.15 2006/03/14 01:14:29 jlam Exp $
#
.include "../../inputmethod/canna/Makefile.common"
d3 2
a4 1
PKGREVISION=	1
d6 1
a6 1
CANNA_MODULE=	server
a9 2
.include "../../mk/bsd.prefs.mk"

d11 2
a12 2
MESSAGE_SUBST+=	CANNA_USER="${CANNA_USER}"
MESSAGE_SUBST+=	CANNA_GROUP="${CANNA_GROUP}"
d17 5
a21 1
OWN_DIRS_PERMS=	${CANNA_SPOOL} ${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE}
d25 2
d36 1
a36 7
do-configure:
	@@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}

.include "../../devel/nbitools/buildlink3.mk"
.include "../../inputmethod/canna-lib/buildlink3.mk"

.include "../../inputmethod/canna/Makefile.include"
@


1.15
log
@Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2005/12/29 06:21:45 jlam Exp $
d18 1
a18 1
PKG_USERS=	${CANNA_USER}:${CANNA_GROUP}::Canna\ user
@


1.14
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2005/12/05 20:50:23 rillig Exp $
a10 2
INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL

@


1.13
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2005/08/23 11:48:47 rillig Exp $
a10 1
USE_PKGINSTALL=	YES
@


1.12
log
@The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2005/04/11 21:46:11 tv Exp $
d3 1
a3 1
.include "../canna/Makefile.common"
d42 1
a42 1
.include "../canna/Makefile.include"
@


1.11
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2004/12/28 02:47:43 reed Exp $
d21 1
a21 1
PKG_USERS=	${CANNA_USER}:${CANNA_GROUP}::Canna\\ user
@


1.10
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/04/27 20:51:10 reed Exp $
a8 1
USE_BUILDLINK3=	yes
@


1.9
log
@Installation of the RCD_SCRIPTS rc.d script is done automatic
here. So don't install it twice.

(Anyways, ${PREFIX}/etc/rc.d is not the correct location; the
RCD_SCRIPTS uses ${RCD_SCRIPTS_EXAMPLEDIR}.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/03/23 04:41:01 jlam Exp $
d5 2
@


1.8
log
@USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2004/03/05 19:09:22 minskim Exp $
a37 3
post-install:
	@@${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna

@


1.7
log
@Make Canna* packages use the buildlink framework.  It will fix the
build problem reported by Yasushi Oshima on tech-pkg-ja@@jp.NetBSD.org.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2003/09/23 15:14:55 uebayasi Exp $
d7 1
a7 1
USE_BUILDLINK3=	# defined
@


1.6
log
@canna-server-bin -> canna-server
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/09/23 15:07:00 uebayasi Exp $
d7 1
a7 1
USE_BUILDLINK2=	# defined
d41 2
a42 2
.include "../../devel/nbitools/buildlink2.mk"
.include "../../inputmethod/canna-lib/buildlink2.mk"
@


1.5
log
@Make sure these are removed.  Noted by Toru Takamizu.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.4 2002/12/27 08:41:25 uebayasi Exp $
d5 1
a5 4
DISTNAME=	Canna-server-3.6.1
CATEGORIES=	japanese inputmethod
MASTER_SITES=	# empty
DISTFILES=	# empty
d7 2
a8 2
MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
COMMENT=	Kana-Kanji conversion system (server)
d10 2
a11 2
DEPENDS+=	Canna-server-bin>=3.6.1:../canna-server-bin
DEPENDS+=	Canna-dict>=3.6.1:../canna-dict
d13 1
a13 3
EXTRACT_ONLY=	# empty
NO_BUILD=	YES
NO_CHECKSUM=	YES
d15 3
a17 1
do-install:	# empty
d19 26
a44 1
.include "../../mk/bsd.pkg.mk"
@


1.4
log
@Update Canna to 3.6p1.

Changes from 3.5b2 are:
	* Add -inet option not to allow TCP connections by default.
	* Fix a buffer overflow.  (This fix was already incorpolated
	  in Pkgsrc version.)
	* Improve dicionary.
	* Improve conversion engine.
	* Other bug fixes.

Patch is made by Yoshifumi Hiramatsu.  Tested by Toru Takamizu.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2002/12/02 03:40:21 itojun Exp $
@


1.3
log
@apply point patch to solve remote buffer overrun vuln.
(should upgrade to 3.6p1)
http://canna.sourceforge.jp/sec/Canna-2002-01.txt
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/06/10 09:52:15 sakamoto Exp $
d3 1
a3 2
DISTNAME=	Canna-server-3.5.2
PKGREVISION=	3
d11 2
a12 2
DEPENDS+=	Canna-server-bin>=3.5.2nb3:../canna-server-bin
DEPENDS+=	Canna-dict>=3.5.2nb2:../canna-dict
@


1.2
log
@bump PKGREVISION.
split out into canna-dict and canna-server-bin,
canna-server is meta package for these packages.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
a4 1
PKGREVISION=	2
d12 1
a12 1
DEPENDS+=	Canna-server-bin>=3.5.2nb2:../canna-server-bin
@


1.2.2.1
log
@file Makefile was added on branch buildlink2 on 2002-06-23 18:47:23 +0000
@
text
@d1 21
@


1.2.2.2
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@a0 21
# $NetBSD: Makefile,v 1.2.2.1 2002/06/23 18:47:23 jlam Exp $

DISTNAME=	Canna-server-3.5.2
PKGREVISION=	2
CATEGORIES=	japanese inputmethod
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
COMMENT=	Kana-Kanji conversion system (server)

DEPENDS+=	Canna-server-bin>=3.5.2nb2:../canna-server-bin
DEPENDS+=	Canna-dict>=3.5.2nb2:../canna-dict

EXTRACT_ONLY=	# empty
NO_BUILD=	YES
NO_CHECKSUM=	YES

do-install:	# empty

.include "../../mk/bsd.pkg.mk"
@


1.1
log
@Initial revision
@
text
@d3 2
a4 2
DISTNAME=	Canna35b2
PKGNAME=	Canna-server-3.5.2
d6 2
a7 6
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
a9 1
HOMEPAGE=	http://www.nec.co.jp/japanese/product/computer/soft/canna/
d12 2
a13 46
DEPENDS+=	Canna-lib>=3.5.2:../../inputmethod/canna-lib

FILESDIR=	${.CURDIR}/../../inputmethod/canna-lib/files
DISTINFO_FILE=	${.CURDIR}/../../inputmethod/canna-lib/distinfo
PATCHDIR=	${.CURDIR}/../../inputmethod/canna-lib/patches

BUILD_DEFS+=	USE_INET6
USE_X11BASE=	yes

.include "../../mk/bsd.prefs.mk"
.if 0	# ${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}

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
	${FIND} ${WRKSRC} -name Imakefile -print | \
	while read f; do \
		${CP} $$f $${f}.orig; \
		( \
			${ECHO} '/#include ".*\/Canna.conf"$$/a\'; \
			${ECHO} '#include "${FILESDIR}/LinkFileList.rules"'; \
		) | ${SED} -f /dev/stdin $${f}.orig >$$f; \
	done


do-configure:
	@@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})
d15 3
a17 3
post-build:
	@@${SED} -e 's|@@PREFIX@@|${PREFIX}|g' ${FILESDIR}/canna \
		> ${WRKDIR}/canna
d19 1
a19 6
post-install:
	@@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
	@@${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna
	@@${INSTALL_DATA_DIR} ${CANNA_SPOOL}
	@@${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL}
	@@${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL}
@


1.1.1.1
log
@Reimport of package Canna-server from japanese/canna-server into inputmethod/canna-server.
This is part of the japanese category retirement.
CATEGORIES and pathnames to japanese/ adjusted.
@
text
@@
