Import dict 1.9.15

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.

This package contains a client which can access DICT servers from
the command line.

From Deanna Phillips <deanna@sdf.lonestar.org>
This commit is contained in:
alek 2006-04-19 17:11:52 +00:00
parent a352c86bbc
commit aaa2632ed5
11 changed files with 164 additions and 0 deletions

47
net/dictd/Makefile Normal file
View File

@ -0,0 +1,47 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
COMMENT= "Dictionary Server Protocol client"
COMMENT-server= "Dictionary Server Protocol server"
DISTNAME= dictd-1.9.15
PKGNAME= ${DISTNAME:S/-/-client-/}
PKGNAME-server= ${DISTNAME:S/-/-server-/}
CATEGORIES= net education
HOMEPAGE= http://www.dict.org
MAINTAINER= Deanna Phillips <deanna@sdf.lonestar.org>
# GPL v2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c z
MASTER_SITES= ftp://ftp.us0.dict.org/pub/dict/ \
ftp://ftp.at0.dict.org/pub/dict/
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --without-local-zlib \
--enable-dictorg
MULTI_PACKAGES= -server
SUBPACKAGE?=
NO_REGRESS= Yes
pre-build:
@perl -pi -e "s,/etc,${SYSCONFDIR},g" ${WRKSRC}/*.[18]
@perl -pi -e "s,/usr/sbin,${LOCALBASE}/sbin,g" ${WRKSRC}/*.[18]
@perl -pi -e "s,/usr/share,${LOCALBASE}/share,g" ${WRKSRC}/*.[18]
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dictd/
${INSTALL_DATA} ${WRKSRC}/example* \
${PREFIX}/share/examples/dictd
.include <bsd.port.mk>

4
net/dictd/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (dictd-1.9.15.tar.gz) = 68c1cffa952012ba85a7271311de55e9
RMD160 (dictd-1.9.15.tar.gz) = 4cdef7132855d4ef949ba7ceacbea16881e3ef5d
SHA1 (dictd-1.9.15.tar.gz) = 081ea97a4a6a936855af30d9c2a31f5733985822
SIZE (dictd-1.9.15.tar.gz) = 741597

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
--- Makefile.in.orig Sat Apr 15 13:08:43 2006
+++ Makefile.in Sat Apr 15 13:08:59 2006
@@ -300,6 +300,7 @@ install.dictfmt: dictfmt dictfmt_index2w
$(INSTALL_DATA) dictfmt_index2word.1 $(DESTDIR)$(man1_prefix); \
$(INSTALL_DATA) dictfmt_index2suffix.1 $(DESTDIR)$(man1_prefix); \
$(INSTALL_DATA) dictunformat.1 $(DESTDIR)$(man1_prefix); \
+ $(INSTALL_DATA) dictfmt_virtual.1 $(DESTDIR)$(man1_prefix); \
test _$(USE_PLUGIN) != _ && \
$(INSTALL_SCRIPT) dictfmt_plugin $(DESTDIR)$(bindir) || true

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-configure,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
--- configure.orig Sat Apr 15 12:30:38 2006
+++ configure Sat Apr 15 12:30:41 2006
@@ -2484,7 +2484,6 @@ fi
REALCC="$CC"
if test "$CC" = gcc; then
- CFLAGS='-g -O'
WCFLAGS='-Wall'
case "$host" in
*linux*)
@@ -2495,8 +2494,6 @@ if test "$CC" = gcc; then
esac
# Silence flex/bison output
SCFLAGS="-Wno-implicit -Wno-unused"
-else
- CFLAGS='-g'
fi
local_dmalloc=0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-decl_h,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
--- decl.h.orig Tue Apr 18 15:20:35 2006
+++ decl.h Tue Apr 18 15:20:45 2006
@@ -28,7 +28,7 @@
declarations for standard library calls. We provide them here for
situations that we know about. */
-#if defined(__sparc__) && !defined(__linux__)
+#if defined(__sparc__) && !defined(__linux__) && !defined(__OpenBSD__)
/* Both SunOS and Solaris */
extern int getrusage( int who, struct rusage * );
extern void bcopy( const void *, void *, int );

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-libmaa_configure,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
--- libmaa/configure.orig Sat Apr 15 12:30:24 2006
+++ libmaa/configure Sat Apr 15 12:30:26 2006
@@ -2501,10 +2501,7 @@ fi
REALCC="$CC"
if test "$CC" = gcc; then
- CFLAGS='-g -O'
WCFLAGS='-Wall -pedantic'
-else
- CFLAGS='-g'
fi
needs_xmalloc=1

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libmaa_decl_h,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
--- libmaa/decl.h.orig Tue Apr 18 15:21:21 2006
+++ libmaa/decl.h Tue Apr 18 15:21:31 2006
@@ -28,7 +28,7 @@
declarations for standard library calls. We provide them here for
situations that we know about. */
-#if defined(__sparc__) && !defined(linux)
+#if defined(__sparc__) && !defined(linux) && !defined(__OpenBSD__)
#include <sys/resource.h>
/* Both SunOS and Solaris */
extern int getrusage( int who, struct rusage * );

6
net/dictd/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
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.
This package contains a client which can access DICT servers from
the command line.

View File

@ -0,0 +1,2 @@
This package contains server implementing the Dictionary Server Protocol
(DICT) described in RFC 2229.

7
net/dictd/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
bin/dict
bin/dictl
@man man/man1/dict.1
@man man/man1/dictl.1
share/examples/dictd/
share/examples/dictd/example.dictrc

View File

@ -0,0 +1,29 @@
@comment $OpenBSD: PLIST-server,v 1.1.1.1 2006/04/19 17:11:52 alek Exp $
bin/colorit
bin/dictdplugin-config
bin/dictfmt
bin/dictfmt_index2suffix
bin/dictfmt_index2word
bin/dictfmt_plugin
bin/dictfmt_virtual
bin/dictunformat
bin/dictzip
include/dictdplugin.h
@man man/man1/colorit.1
@man man/man1/dictfmt.1
@man man/man1/dictfmt_index2suffix.1
@man man/man1/dictfmt_index2word.1
@man man/man1/dictfmt_virtual.1
@man man/man1/dictunformat.1
@man man/man1/dictzip.1
@man man/man8/dictd.8
sbin/dictd
share/examples/dictd/
share/examples/dictd/example.conf
share/examples/dictd/example.site
share/examples/dictd/example2.conf
share/examples/dictd/example3.conf
share/examples/dictd/example_complex.conf
share/examples/dictd/example_plugin_dbi.conf
share/examples/dictd/example_popen.conf
share/examples/dictd/example_virtual.conf