pkgsrc/textproc/dict-server/Makefile
cheusov f0d929d8a0 Update dict-client and dictd-server to 1.13.0
dictd:
       * add support for IPv6 (the default is IPv4)
         - Add global configuration option "address_family" and
           command line options --address-family
         - Options "listen_to" and --listen-to accepts host name
           in addition to IP address, "*" means "bind to all interfaces".
  dict:
       * add support for IPv6.
         - New command line options -4 and -6.
         - dict + dict:// URL: add support for IPv6 address
           surrounded by [ and ] symbols
  dictfmt:
       * fix overlap of source and destination buffers in memcpy(3).
         Use memmove(3) instead. This fixes failures on Linux/musl.
       * DICTFMT_SORT environment variable may be used for
         setting non-default sort(1)

  Fix build on recent Solaris/IllumOS (missing -lnsl at link time)

  Remove support for --use-dictorg and socks5. Clean-ups for build system.

  Remove support for non-utf8 dictionaries.

  tests:
      * new test for dictd as a daemon
      * always use @AWK@
      * test/dictzip_test.in: avoid printing binary \0. This fixes test on some systems
2020-03-30 13:38:57 +00:00

70 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.34 2020/03/30 13:38:58 cheusov Exp $
.include "../../textproc/dict-server/Makefile.common"
PKGNAME= ${DISTNAME:S/dictd/dict-server/}
CATEGORIES= textproc
COMMENT= Dictionary Service Protocol server
LICENSE= gnu-gpl-v2
.include "../../mk/bsd.prefs.mk"
USE_TOOLS+= gmake yacc lex m4:run
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-plugin
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/dictd
BUILD_DEFS+= VARBASE
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}
AUTO_MKDIRS= yes
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} ${.CURDIR}/files/dictd.conf ${DESTDIR}${EGDIR}/
.for i in ${EXTRA_DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PKGDOCDIR}
.endfor
.for i in ${EXTRA_EXAMPLES_FILES}
${INSTALL_DATA} ${WRKSRC}/examples/${i} ${DESTDIR}${EGDIR}
.endfor
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/libmaa/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"