73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.22 2008/02/01 22:29:48 cheusov Exp $
|
|
|
|
.include "../../wip/dict-server/Makefile.common"
|
|
|
|
PKGNAME= ${DISTNAME:S/dictd/dict-server/}
|
|
PKGREVISION= 2
|
|
COMMENT= Dictionary Service Protocol server
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
USE_TOOLS+= gmake yacc lex m4:run
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-cflags=${CFLAGS:M*:Q}
|
|
CONFIGURE_ARGS+= --disable-plugin
|
|
CONFIGURE_ARGS+= --disable-shared
|
|
CONFIGURE_ARGS+= --with-local-libmaa
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/dictd
|
|
|
|
MESSAGE_SUBST+= VARBASE="${VARBASE}"
|
|
MESSAGE_SUBST+= PATH_TO_M4="${TOOLS_PATH.m4}"
|
|
FILES_SUBST+= PATH_TO_M4="${TOOLS_PATH.m4}"
|
|
|
|
DICTD_USER?= dictd
|
|
.if ${OPSYS} == "Interix"
|
|
DICTD_GROUP?= nogroup
|
|
.else
|
|
DICTD_GROUP?= dictd
|
|
.endif
|
|
|
|
PKG_GROUPS= ${DICTD_GROUP}
|
|
PKG_USERS= ${DICTD_USER}:${DICTD_GROUP}
|
|
PKG_GECOS.${DICTD_USER}= Dictionary\ protocol\ server\ user
|
|
#PKG_HOME.${DICT_USER}= /nonexistent
|
|
#PKG_SHELL.${DICT_USER}= ${NOLOGIN}
|
|
|
|
RCD_SCRIPTS= dictd
|
|
|
|
# for -L /var/log/dictd/<filename_or_pattern>
|
|
OWN_DIRS_PERMS= ${VARBASE}/log/dictd dictd dictd 0750
|
|
|
|
|
|
BUILD_TARGET= dictd dictzip dictfmt
|
|
|
|
INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
PKGDOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
INSTALLATION_DIRS+= share/dictd ${EGDIR} ${PKGDOCDIR}
|
|
|
|
CONF_FILES= ${EGDIR}/dictd.conf \
|
|
${PKG_SYSCONFDIR}/dictd.conf
|
|
|
|
EXTRA_DOC_FILES= COPYING NEWS README INSTALL
|
|
EXTRA_EXAMPLES_FILES= dictd1.conf dictd2.conf \
|
|
dictd3.conf dictd4.conf dictd_complex.conf \
|
|
dictd_mime.conf dictd_plugin_dbi.conf \
|
|
dictd_site.txt dictd_virtual.conf
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${.CURDIR}/files/dictd.conf ${EGDIR}/
|
|
.for i in ${EXTRA_DOC_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PKGDOCDIR}
|
|
.endfor
|
|
.for i in ${EXTRA_EXAMPLES_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${i} ${EGDIR}
|
|
.endfor
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|