64723c13ac
- info messages moved to ${PKGMESSAGE} for pkg_add(1). - remove old messages. - employ PLIST_FILES. - respect CFLAGS if user wants. - add WWW: line. - add messages for old users that why this daemon runs as root. Submitted by: sf (except WWW: line)
70 lines
2.1 KiB
Makefile
70 lines
2.1 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= 1.71
|
|
PORTREVISION= 1
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= http://www.ne.jp/asahi/bdx/info/software/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}dev
|
|
|
|
MAINTAINER= matusita@FreeBSD.org
|
|
COMMENT=Yet another dictionary server for SKK
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${CDBPORTSDIR}:build
|
|
RUN_DEPENDS= ${INSTALLEDJISYO}:${PORTSDIR}/japanese/skk-jisyo-cdb
|
|
|
|
USE_REINPLACE= yes
|
|
PLIST_FILES= libexec/dbskkd-cdb
|
|
|
|
SKKDIR?= share/skk
|
|
SKKJISYO_TYPE?= L
|
|
SKKJISYOCDB?= /SKK-JISYO.${SKKJISYO_TYPE}.cdb
|
|
SERVER_DIR?= ${LOCALBASE}/${SKKDIR}
|
|
|
|
CDBPORTSDIR= ${PORTSDIR}/databases/cdb
|
|
INSTALLEDJISYO= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb
|
|
MAKE_ENV+= SERVER_DIR=${SERVER_DIR} SKKJISYOCDB=${SKKJISYOCDB}
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= ${PORTDOCS_FILE} ${PORTDOCS_SH}
|
|
PORTDOCS_FILE= CHANGES LICENSE READMEJP run.example run.log.example
|
|
PORTDOCS_SH= makeskkcdb.sh skktocdbm.sh
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
CDBDIR!= cd ${CDBPORTSDIR}; ${MAKE} -V WRKSRC
|
|
|
|
pre-fetch:
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} "Note:"
|
|
@${ECHO_CMD} " This daemon does chroot(2) to ${SERVER_DIR}, then"
|
|
@${ECHO_CMD} " use ${SKKJISYOCDB} as a dictionary file."
|
|
@${ECHO_CMD} " Please set SERVER_DIR/SKKJISYOCDB variables if you don't like much."
|
|
@${ECHO_CMD} ""
|
|
|
|
post-patch:
|
|
.for f in READMEJP copyfromcdb.sh
|
|
${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%SKKDIR%%!${SKKDIR}!g" -e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" -e "s!%%CDBDIR%%!${CDBDIR}!g" ${WRKSRC}/${f}
|
|
.endfor
|
|
${CHMOD} +x ${WRKSRC}/copyfromcdb.sh
|
|
${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' ${WRKSRC}/Makefile
|
|
|
|
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>
|