reverted bad changes from wip/libmaa

This commit is contained in:
Aleksey Cheusov 2006-11-18 17:00:01 +00:00 committed by Thomas Klausner
parent 1e304d1266
commit 219847abce
4 changed files with 98 additions and 36 deletions

View file

@ -1,9 +1,13 @@
The LIBMAA library provides many low-level data structures which are
helpful for writing compilers, including hash tables, sets, lists,
debugging support, and memory management. Although LIBMAA was
designed and implemented as a foundation for the Khepera
Transformation System, the data structures are generally applicable to
a wide range of programming problems.
The Dictionary Server Protocol (DICT) is a TCP transaction based
query/response protocol that allows a client to access dictionary
definitions from a set of natural language dictionary databases.
The memory management routines are especially helpful for improving the
performance of memory-intensive applications.
dictd(8) is a server which supports the DICT protocol.
dictzip(1) is a compression program which creates compressed files in the
gzip format (see RFC 1952). However, unlike gzip(1), dictzip(1) compresses
the file in pieces and stores an index to the pieces in the gzip header.
This allows random access to the file at the granularity of the compressed
pieces (currently about 64kB) while maintaining good compression ratios
(within 5% of the expected ratio for dictionary data). dictd(8) uses files
stored in this format.

View file

@ -1,33 +1,69 @@
# $NetBSD: Makefile,v 1.16 2006/11/18 16:54:29 cheusov Exp $
# $NetBSD: Makefile,v 1.17 2006/11/18 17:00:01 cheusov Exp $
PKGNAME= libmaa-0.990
DISTNAME= dictd-1.10.7
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dict/} \
ftp://ftp.dict.org/pub/dict/
.include "../../wip/dict-server/Makefile.common"
MAINTAINER= cheusov@tut.by
HOMEPAGE= http://www.dict.org/
# $NetBSD: Makefile,v 1.16 2006/11/18 16:54:29 cheusov Exp $
PKGNAME= ${DISTNAME:S/dictd/dict-server/}
COMMENT= Dictionary Service Protocol server
COMMENT= Library that provides many low-level data structures
.include "../../mk/bsd.prefs.mk"
WRKSRC= ${WRKDIR}/${DISTNAME}/libmaa
USE_TOOLS+= gmake
USE_TOOLS+= gmake yacc m4:run
GNU_CONFIGURE= yes
BUILD_TARGET= lib
CONFIGURE_ARGS+= --with-cflags=${CFLAGS:M*:Q}
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --disable-plugin
CONFIGURE_ARGS+= --disable-shared
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}= /tmp
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+= ${PKGDOCDIR}
INSTALLATION_DIRS+= share/dictd ${EGDIR} ${PKGDOCDIR}
EXTRA_DOC_FILES= COPYING.LIB README
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"

View file

@ -1,9 +1,31 @@
@comment $NetBSD: PLIST,v 1.3 2006/11/18 16:54:29 cheusov Exp $
include/maa.h
lib/libmaa.a
lib/libmaa.so
lib/libmaa.so.0.990
lib/libmaa.so.0.990.3
share/doc/${PKGBASE}/COPYING.LIB
@comment $NetBSD: PLIST,v 1.4 2006/11/18 17:00:01 cheusov Exp $
bin/dictfmt
bin/dictfmt_index2suffix
bin/dictfmt_index2word
bin/dictunformat
bin/dictzip
man/man1/dictfmt.1
man/man1/dictfmt_index2suffix.1
man/man1/dictfmt_index2word.1
man/man1/dictunformat.1
man/man1/dictzip.1
man/man8/dictd.8
sbin/dictd
share/doc/${PKGBASE}/COPYING
share/doc/${PKGBASE}/INSTALL
share/doc/${PKGBASE}/NEWS
share/doc/${PKGBASE}/README
share/examples/${PKGBASE}/dictd.conf
share/examples/${PKGBASE}/dictd1.conf
share/examples/${PKGBASE}/dictd2.conf
share/examples/${PKGBASE}/dictd3.conf
share/examples/${PKGBASE}/dictd4.conf
share/examples/${PKGBASE}/dictd_complex.conf
share/examples/${PKGBASE}/dictd_mime.conf
share/examples/${PKGBASE}/dictd_plugin_dbi.conf
share/examples/${PKGBASE}/dictd_site.txt
share/examples/${PKGBASE}/dictd_virtual.conf
share/examples/rc.d/dictd
@dirrm share/doc/${PKGBASE}
@dirrm share/examples/${PKGBASE}
@dirrm share/dictd

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.7 2006/11/18 16:54:29 cheusov Exp $
$NetBSD: distinfo,v 1.8 2006/11/18 17:00:01 cheusov Exp $
SHA1 (dictd-1.10.7.tar.gz) = 66b19ddfdfae05cc1acf4094eefa39a84ac9849d
RMD160 (dictd-1.10.7.tar.gz) = db6460ce937cef4de56299694c9635be3b63ee8d
Size (dictd-1.10.7.tar.gz) = 666825 bytes
SHA1 (patch-aa) = 1ee56965c522f3bdb499ab0fa5050ea569311549
SHA1 (patch-ab) = b75e52ff3899d936f673dcf70a0af810f49031b0
SHA1 (patch-ac) = 0d21163012ffd5f40a1777546165f5aebe0c559a
SHA1 (patch-aa) = 36fb83ae271b894aa7cc3c4cea3f5f0f8b237ba4
SHA1 (patch-ab) = 2f106d54897a3da3904dbac11da25ddb8aac7c88
SHA1 (patch-ac) = 2241ec3f661ae724c2d44e4fa0efeffbbf9430a8