diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2002-10-04 09:05:26 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2002-10-04 09:05:26 +0000 |
commit | ff34b1cf7e095bb07a852da994288e43685e1d6d (patch) | |
tree | b0eb4f31070b29fa5b9e75400d03d37d9f5077b9 /misc | |
parent | 712710364669fb643910c3709af91512c7d91c73 (diff) | |
download | pkgsrc-ff34b1cf7e095bb07a852da994288e43685e1d6d.tar.gz |
Initial import of DICTD 1.8.0.
DICTD is a DICT protocol server.
The Dictionary Server Protocol (DICT), described in RFC 2229, is a TCP
transaction based query/response protocol that allows a client to access
dictionary definitions from a set of natural language dictionary databases.
Some dictionary databases are freely available at dict.org.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dictd/DESCR | 7 | ||||
-rw-r--r-- | misc/dictd/Makefile | 29 | ||||
-rw-r--r-- | misc/dictd/PLIST | 8 | ||||
-rw-r--r-- | misc/dictd/distinfo | 8 | ||||
-rw-r--r-- | misc/dictd/patches/patch-aa | 21 | ||||
-rw-r--r-- | misc/dictd/patches/patch-ab | 42 | ||||
-rw-r--r-- | misc/dictd/patches/patch-ac | 22 | ||||
-rw-r--r-- | misc/dictd/patches/patch-ad | 13 |
8 files changed, 150 insertions, 0 deletions
diff --git a/misc/dictd/DESCR b/misc/dictd/DESCR new file mode 100644 index 00000000000..d938763834e --- /dev/null +++ b/misc/dictd/DESCR @@ -0,0 +1,7 @@ +DICTD is a DICT protocol server. + +The Dictionary Server Protocol (DICT), described in RFC 2229, is a TCP +transaction based query/response protocol that allows a client to access +dictionary definitions from a set of natural language dictionary databases. + +Some dictionary databases are freely available at dict.org. diff --git a/misc/dictd/Makefile b/misc/dictd/Makefile new file mode 100644 index 00000000000..53a9b113884 --- /dev/null +++ b/misc/dictd/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/04 09:05:26 uebayasi Exp $ + +DISTNAME= dictd-1.8.0 +CATEGORIES= misc +MASTER_SITES= ftp://ftp.dict.org/pub/dict/ + +MAINTAINER= uebayasi@netbsd.org +HOMEPAGE= http://www.dict.org/ +COMMENT= Dictionary server + +USE_BUILDLINK2= # defined +GNU_CONFIGURE= # defined +USE_GMAKE= # defined + +CPPFLAGS+= -I${BUILDLINK_DIR}/include + +# T_USER is defined in machine/trap.h and ${ARCH}/trap.h. +post-patch: + ${GREP} -lr T_USER ${WRKSRC} | \ + while read f; do \ + ${MV} $$f $${f}.orig; \ + ${SED} \ + -e 's|T_USER|T_XUSER|g' \ + -e 's|DICT_XUSER|DICT_USER|g' \ + $${f}.orig >$$f; \ + done + +.include "../../devel/libtool/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/misc/dictd/PLIST b/misc/dictd/PLIST new file mode 100644 index 00000000000..c3f11bc813e --- /dev/null +++ b/misc/dictd/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/04 09:05:27 uebayasi Exp $ +bin/dict +bin/dictfmt +bin/dictzip +sbin/dictd +man/man1/dict.1 +man/man1/dictzip.1 +man/man8/dictd.8 diff --git a/misc/dictd/distinfo b/misc/dictd/distinfo new file mode 100644 index 00000000000..6f8fb7d6842 --- /dev/null +++ b/misc/dictd/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/10/04 09:05:26 uebayasi Exp $ + +SHA1 (dictd-1.8.0.tar.gz) = c8318ae83a540d336405db126ff04bfc60b60ffc +Size (dictd-1.8.0.tar.gz) = 574796 bytes +SHA1 (patch-aa) = 4d9606af1d167da70bfd7539cbf7e54e3844166d +SHA1 (patch-ab) = b318360e5219c52b9393e51661d5f8a4bc43ed30 +SHA1 (patch-ac) = 2ea13b05de521df10b798bd30ad35ff155418554 +SHA1 (patch-ad) = 357be9c82bc3904f0b9a508ba4ebe4b6488f4b22 diff --git a/misc/dictd/patches/patch-aa b/misc/dictd/patches/patch-aa new file mode 100644 index 00000000000..0d9726e02e0 --- /dev/null +++ b/misc/dictd/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/10/04 09:05:27 uebayasi Exp $ + +Unset LIBS not to pass the value to a subsequent `configure'. ---uebayasi + + +--- configure.orig Fri Sep 13 23:37:04 2002 ++++ configure +@@ -2813,6 +2813,13 @@ + rm -fr confdefs* $ac_clean_files + test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + ++# XXX libmaa/configure fails if a variable LIBS is set to something like ++# '-Llibmaa -lmaa'. The problem is that if we path LIBS as a member of ++# CONFIGURE_ENV, LIBS becomes an environment variable so that it's passed ++# to the followint libmaa/configure. To prevent this, we unset LIBS here. ++# ---uebayasi ++unset LIBS ++ + if test "$no_recursion" != yes; then + + # Remove --cache-file and --srcdir arguments so they do not pile up. diff --git a/misc/dictd/patches/patch-ab b/misc/dictd/patches/patch-ab new file mode 100644 index 00000000000..b1aca22f8fd --- /dev/null +++ b/misc/dictd/patches/patch-ab @@ -0,0 +1,42 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/10/04 09:05:27 uebayasi Exp $ + +--- Makefile.in.orig Tue Aug 13 22:28:04 2002 ++++ Makefile.in +@@ -33,7 +33,7 @@ + srcdir= @srcdir@ + VPATH= @srcdir@ + prefix= @prefix@ +-subdirs= @allsubdirs@ regex # doc -- use rfc2229 instead ++subdirs= @allsubdirs@ # doc -- use rfc2229 instead + exec_prefix= @exec_prefix@ + man1_prefix= @mandir@/man1 + man8_prefix= @mandir@/man8 +@@ -48,6 +48,7 @@ + RANLIB= @RANLIB@ + INSTALL= @INSTALL@ + INSTALL_PROGRAM=@INSTALL_PROGRAM@ ++INSTALL_SCRIPT= $(BSD_INSTALL_SCRIPT) + INSTALL_DATA= @INSTALL_DATA@ + LEX= @LEX@ + LEXLIB= @LEXLIB@ +@@ -57,9 +58,9 @@ + -DDICT_CONFIG_PATH=\"$(conf)\" + SCFLAGS= @SCFLAGS@ + LDFLAGS= @LDFLAGS@ +-XTRACFLAGS= @WCFLAGS@ @XTRACFLAGS@ @DEFS@ @CPPFLAGS@ -I. -Iregex ++XTRACFLAGS= @WCFLAGS@ @XTRACFLAGS@ @DEFS@ @CPPFLAGS@ -I. + XTRALDFLAGS= @WLDFLAGS@ @XTRALDFLAGS@ +-LDLIBS= @LIBS@ -Lregex -lregex ++LDLIBS= @LIBS@ + + EXES= dict dictd dictzip dictfmt + +@@ -162,7 +163,7 @@ + if test ! -d $(bindir); then $(INSTALL) -d 755 $(bindir); fi + if test ! -d $(man1_prefix); then $(INSTALL) -d 755 $(man1_prefix); fi + $(INSTALL_PROGRAM) dictfmt $(bindir) +- $(INSTALL_PROGRAM) dictfmt_index2suffix $(bindir) ++ $(INSTALL_SCRIPT) dictfmt_index2suffix $(bindir) + $(INSTALL_DATA) dictfmt.1 $(man1_prefix)/dictfmt.1 + + install.dictd: dictd diff --git a/misc/dictd/patches/patch-ac b/misc/dictd/patches/patch-ac new file mode 100644 index 00000000000..a7bd59dcf00 --- /dev/null +++ b/misc/dictd/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/10/04 09:05:27 uebayasi Exp $ + +--- decl.h.orig Mon Jan 1 06:14:18 2001 ++++ decl.h +@@ -35,7 +35,7 @@ + extern long random( void ); + extern char *index( const char *, int c ); + +-#if defined(__svr4__) ++#if defined(__svr4__) || defined(__NetBSD__) + /* Just Solaris */ + extern int gethostname(char *name, int namelen); + extern int getdtablesize(void); +@@ -79,7 +79,7 @@ + extern int socket( int, int, int ); + extern int bind( int, struct sockaddr *, int ); + extern int listen( int, int ); +-extern int wait3( union wait *, int, struct rusage * ); ++extern int wait3( int *, int, struct rusage * ); + extern int getdtablesize( void ); + extern int ioctl( int, int, caddr_t ); + extern caddr_t mmap( caddr_t, size_t, int, int, int, off_t ); diff --git a/misc/dictd/patches/patch-ad b/misc/dictd/patches/patch-ad new file mode 100644 index 00000000000..136270a5f68 --- /dev/null +++ b/misc/dictd/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/10/04 09:05:27 uebayasi Exp $ + +--- dictd.c.orig Thu Sep 12 22:08:06 2002 ++++ dictd.c +@@ -119,7 +119,7 @@ + + static void reaper( int dummy ) + { +-#if defined(__osf__) || (defined(__sparc) && defined(__SVR4)) ++#if defined(__osf__) || (defined(__sparc) && defined(__SVR4)) || defined(__NetBSD__) + int status; + #else + union wait status; |