e3226f9ae1
As you know, 1.71dev does chroot(2) to the directory that dictionary is located, and this makes the server configuration a little bit confused. 1.71dev also uses stderr as debugging information output, so that it may affect some clients if dbskkd-cdb is kicked from inetd(8). But these annoyed days are over. 2.00 behavior is backed to the one as of 1.01; no chroot(2), no debug output to stderr (yeah!). From this version, dbskkd-cdb uses tinycdb instead of original cdb. For Makefile simplicity, this ports BUILD_DEPENDS to tinycdb. Thanks to higher compatibility between tinycdb and cdb, you don't need to rebuild CDB dictionary file; ports/japanese/skk-jisyo-cdb is not changed. I've removed two patches, the one is just unneeded for now, and the another one is for ports understandability (patch-aa is not a good idea; I can keep this, but this is the second major version release -- it is a good time to rename the patch file.) Thank you to Kenji Rikitake, the dbskkd-cdb author, to let me to know the 2.00 release in advance, and give some time to update this ports.
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# New ports collection makefile for: dbskkd-cdb
|
|
# Date created: 17 Jun 1999
|
|
# Whom: Makoto Matsushita <matusita@jp.FreeBSD.ORG>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dbskkd-cdb
|
|
PORTVERSION= 2.00
|
|
#PORTREVISION= 0
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
#DISTVERSIONSUFFIX=
|
|
|
|
MAINTAINER= matusita@FreeBSD.org
|
|
COMMENT=Yet another dictionary server for SKK
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libcdb.a:${PORTSDIR}/databases/tinycdb
|
|
RUN_DEPENDS= ${SKKJISYOCDB}:${PORTSDIR}/japanese/skk-jisyo-cdb
|
|
|
|
PLIST_FILES= libexec/dbskkd-cdb
|
|
|
|
SKKDIR?= share/skk
|
|
SKKJISYO_TYPE?= L
|
|
SKKJISYOCDB?= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb
|
|
|
|
MAKE_ENV+= LOCALBASE="${LOCALBASE}" CFLAGS="${CFLAGS}"
|
|
MAKE_ENV+= SKKJISYOCDB="${SKKJISYOCDB}"
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= ${PORTDOCS_FILE} ${PORTDOCS_SH}
|
|
PORTDOCS_FILE= CHANGES LICENSE READMEJP \
|
|
example-daemontools.txt example-inetd.txt
|
|
PORTDOCS_SH= makeskkcdb.sh skktocdbm.sh
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
.for f in READMEJP makeskkcdb.sh
|
|
${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%SKKDIR%%!${SKKDIR}!g" -e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${PREFIX}/libexec
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for docs in ${PORTDOCS_FILE}
|
|
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
|
|
.endfor
|
|
.for docs in ${PORTDOCS_SH}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${docs} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@${SED} 's|/usr/local|${PREFIX}|' ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|