Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
Glimpse (which stands for GLobal IMPlicit SEarch) is an indexing
and query system that allows you to search through all your
files very quickly. For example, finding 296 lines containing
'whitehouse' in 8750 files occupying 104MB took 6 seconds on a
SUN Sparc 5. Glimpse supports most of agrep's options (agrep is our
powerful version of grep) including approximate matching (e.g.,
finding mis- spelled words), Boolean queries, and even some limited
forms of regular expressions. It is used in the same way, except that
you don't have to specify file names. So, if you are looking for a
needle anywhere in your file system, all you have to do is say
glimpse needle and all lines containing needle will appear preceded
by the file name.
+31
View File
@@ -0,0 +1,31 @@
# $NetBSD: Makefile,v 1.40 2012/10/25 06:55:50 asau Exp $
DISTNAME= glimpse-4.18.5
PKGREVISION= 1
CATEGORIES= textproc databases
MASTER_SITES= http://webglimpse.net/trial/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://webglimpse.net/
COMMENT= Text search engine
LICENSE= glimpse-license
RESTRICTED= Redistribution only on non-profit basis.
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
# both install bin/agrep (approx. grep)
CONFLICTS+= tre>=0.7.5nb6
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake lex
GNU_CONFIGURE= yes
MAKE_FLAGS= mandir=${PREFIX}/${PKGMANDIR}/man1
INSTALLATION_DIRS= share/doc/glimpse
post-install:
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DESTDIR}${PREFIX}/share/doc/glimpse
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/glimpse
.include "../../mk/bsd.pkg.mk"
+16
View File
@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:16 joerg Exp $
bin/agrep
bin/buildcast
bin/cast
bin/glimpse
bin/glimpseindex
bin/glimpseserver
bin/tbuild
bin/uncast
bin/wgconvert
man/man1/agrep.1
man/man1/glimpse.1
man/man1/glimpseindex.1
man/man1/glimpseserver.1
share/doc/glimpse/COPYRIGHT
share/doc/glimpse/README
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: distinfo,v 1.12 2012/11/19 03:05:04 joerg Exp $
SHA1 (glimpse-4.18.5.tar.gz) = a7a6168f3decab6cb6c674914259e2cf71be4e40
RMD160 (glimpse-4.18.5.tar.gz) = c1012980e0e09de9c71e07ffed075817e0814eec
Size (glimpse-4.18.5.tar.gz) = 410157 bytes
SHA1 (patch-aa) = 86ba67ee09b876ccbdc34cd19b2f50fd90ace01d
SHA1 (patch-ab) = fdced623c88a201a3e28aadc8896d50c51774a66
SHA1 (patch-ac) = be5a951ac1f4db5ab3c99ca8a6ef82c042019690
SHA1 (patch-ad) = 6e1981e7b6e02eb2b3137e3adddc290ce3002f71
SHA1 (patch-ae) = f61418e46a704f1488a00a7b8873e0cf499de797
SHA1 (patch-af) = 0ef79bdb8477b6426c9fd9a5b708dde7b7c0c6d7
SHA1 (patch-ag) = 6ef9548db620934e1e7c91c456053898a07cb5f3
SHA1 (patch-ah) = d374536e090c8f1571ee2e1145c06febce96eee2
SHA1 (patch-ai) = a42f2feefd087661f84a853e3616584527402db0
SHA1 (patch-aj) = e4f8f557f23213f2b2224084b853d1c269caf091
SHA1 (patch-ak) = 35b637bf404fa0f22d669e922eeb33f7a37010c6
SHA1 (patch-al) = 84ee54521e8086e83f68a78db40a2d6f0cd86cc9
SHA1 (patch-am) = 6438bb41b5816d5b7172a20a02472632d0e3bf82
SHA1 (patch-an) = 7ffe1d0528fc7ce4737633ec0270bd3b32714517
SHA1 (patch-ao) = 3c35916cc59d0e94fd2ad97d39357a20b5990485
SHA1 (patch-ap) = ff5f0223544631fca4c3fcc9f1448a7c46b818e8
SHA1 (patch-aq) = b39d669c1a362724668781762376583df6039d87
SHA1 (patch-ar) = 26be8fc0e9bb75d286ed68451355e8a1c348f43c
SHA1 (patch-as) = e684ae15474231d103a8341c4d1d68fb035807ee
SHA1 (patch-at) = 6f4d94c03fe0804e9b4fc240bf1b899e9a4bf4a5
SHA1 (patch-au) = 12b657e845627f5819711354b73ba3cf213c7434
SHA1 (patch-compress_main__tbuild.c) = e582a9f0c7bf273b482b6967396a3b2235bc0650
SHA1 (patch-compress_misc.c) = f585414bca6d6db29a32853146d447154c7e29da
SHA1 (patch-get__filename.c) = 3ba7e0e2574b416744a3907b261c7048681af4e5
SHA1 (patch-index_io.c) = 375697d29b0a0272204437a25b03086734dbffec
+18
View File
@@ -0,0 +1,18 @@
/* $NetBSD: autoconf.h,v 1.2 1999/06/30 13:13:03 agc Exp $ */
/*
* preprocessor variables used during build of glimpse-4.1
*/
#define HAVE_DIRENT_H 1
#ifdef __NetBSD__
#define HAVE_FLOCK 1
#else
#undef HAVE_FLOCK
#endif
#define HAVE_GETDTABLESIZE 1
#define HAVE_SETLINEBUF 1
#define HAVE_SETRLIMIT 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_SYSCONF 1
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aa,v 1.6 2008/06/05 17:21:48 ghen Exp $
--- main.c.orig 2006-03-13 20:35:22.000000000 +0100
+++ main.c 2008-06-05 17:04:54.000000000 +0200
@@ -27,7 +27,9 @@
/* Borrowed from C-Lib */
extern char **environ;
+#ifndef errno
extern int errno;
+#endif
#if CLIENTSERVER
#include "communicate.c"
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ab,v 1.6 2005/06/04 10:44:28 wiz Exp $
--- agrep/agrep.c.orig 2003-01-25 21:15:05.000000000 +0100
+++ agrep/agrep.c
@@ -11,7 +11,9 @@
#define PRINT(s)
extern char **environ;
+#ifndef errno
extern int errno;
+#endif
int pattern_index; /* index in argv where the pattern is */
int glimpse_isserver=0; /* so that there is no user interaction */
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1 2005/06/04 10:44:28 wiz Exp $
--- agrep/asearch.c.orig 1999-11-03 21:37:06.000000000 +0100
+++ agrep/asearch.c
@@ -9,7 +9,9 @@ extern long CurrentFileTime;
extern int I, num_of_matched, prev_num_of_matched, TRUNCATE;
extern int CurrentByteOffset;
+#ifndef errno
extern int errno;
+#endif
extern CHAR *agrep_inbuffer;
extern int agrep_inlen;
extern int agrep_initialfd;
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ad,v 1.2 2005/06/04 10:44:28 wiz Exp $
--- agrep/bitap.c.orig 2002-11-30 01:47:27.000000000 +0100
+++ agrep/bitap.c
@@ -34,7 +34,9 @@ extern CHAR *agrep_outbuffer;
extern int agrep_outlen;
extern int agrep_outpointer;
extern FILE *agrep_finalfp;
+#ifndef errno
extern int errno;
+#endif
extern int NEW_FILE, POST_FILTER;
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ae,v 1.4 2008/06/05 17:21:48 ghen Exp $
--- index/glimpse.c.orig 2006-03-25 03:13:55.000000000 +0100
+++ index/glimpse.c 2008-06-05 18:21:07.000000000 +0200
@@ -9,7 +9,9 @@
#include <errno.h>
extern char **environ;
+#ifndef errno
extern int errno;
+#endif
extern FILE *TIMEFILE; /* file descriptor for sorting .glimpse_filenames by time */
#if BG_DEBUG
extern FILE *LOGFILE; /* file descriptor for LOG output */
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-af,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/checkfile.c.orig 1999-11-03 21:37:06.000000000 +0100
+++ agrep/checkfile.c
@@ -24,7 +24,9 @@
#define MAXLINE 512
extern char Progname[];
+#ifndef errno
extern int errno;
+#endif
unsigned char ibuf[MAXLINE];
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ag,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- libtemplate/util/Makefile.in.orig 2001-05-21 06:49:00.000000000 +0200
+++ libtemplate/util/Makefile.in
@@ -21,7 +21,7 @@ DEFS =
DEBUG =
INCLUDE = -I../include
-CFLAGS = $(DEFS) $(INCLUDE)
+CFLAGS = -D__STRICT_ANSI__ $(DEFS) $(INCLUDE)
LIBFILE = libutil.a
LIBDIR = ../lib
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ah,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/checksg.c.orig 2002-09-27 23:41:09.000000000 +0200
+++ agrep/checksg.c
@@ -3,7 +3,9 @@
#include "checkfile.h"
#include <errno.h>
+#ifndef errno
extern int errno;
+#endif
extern CHAR Progname[MAXNAME];
extern int SGREP, PAT_FILE, PAT_BUFFER, EXITONERROR, SIMPLEPATTERN,
CONSTANT, D, NOUPPER, JUMP, I, LINENUM, INVERSE, WORDBOUND, WHOLELINE,
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ai,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/compat.c.orig 2003-01-25 21:09:08.000000000 +0100
+++ agrep/compat.c
@@ -16,7 +16,9 @@ extern JUMP;
extern char Progname[MAXNAME];
extern int agrep_initialfd;
extern int EXITONERROR;
+#ifndef errno
extern int errno;
+#endif
int
compat()
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aj,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/maskgen.c.orig 2002-09-27 23:41:09.000000000 +0200
+++ agrep/maskgen.c
@@ -8,7 +8,9 @@ extern int AND, REGEX, NOUPPER, D_length
extern unsigned char Progname[];
extern int agrep_initialfd;
extern int EXITONERROR;
+#ifndef errno
extern int errno;
+#endif
int
maskgen(Pattern, D)
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ak,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/newmgrep.c.orig 1999-11-03 21:37:06.000000000 +0100
+++ agrep/newmgrep.c
@@ -66,7 +66,9 @@ extern FILE *agrep_finalfp;
extern int agrep_outpointer;
extern int agrep_outlen;
extern CHAR * agrep_outbuffer;
+#ifndef errno
extern int errno;
+#endif
extern int NEW_FILE, POST_FILTER;
extern int tuncompressible();
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-al,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/preprocess.c.orig 2002-09-27 23:41:09.000000000 +0200
+++ agrep/preprocess.c
@@ -26,7 +26,9 @@ extern CHAR tc_D_pattern[MaxDelimit * 2]
extern int table[WORD][WORD];
extern int agrep_initialfd;
extern int EXITONERROR;
+#ifndef errno
extern int errno;
+#endif
extern int multifd;
extern char *multibuf;
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-am,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- agrep/sgrep.c.orig 1999-11-01 21:32:58.000000000 +0100
+++ agrep/sgrep.c
@@ -65,7 +65,9 @@ extern CHARTYPE * agrep_outbuffer;
extern int NEW_FILE, POST_FILTER;
extern int EXITONERROR;
+#ifndef errno
extern int errno;
+#endif
extern int TCOMPRESSED;
extern int EASYSEARCH;
extern char FREQ_FILE[MAX_LINE_LEN], HASH_FILE[MAX_LINE_LEN], STRING_FILE[MAX_LINE_LEN];
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-an,v 1.2 2012/11/19 03:05:04 joerg Exp $
--- get_index.c.orig 2002-09-27 21:41:07.000000000 +0000
+++ get_index.c
@@ -15,7 +15,9 @@ extern int WHOLEFILESCOPE;
extern unsigned int *dest_index_set;
extern unsigned char *dest_index_buf;
extern int mask_int[32];
+#ifndef errno
extern int errno;
+#endif
extern int ByteLevelIndex;
extern int RecordLevelIndex;
extern int rdelim_len;
@@ -53,6 +55,7 @@ free_list(p1)
}
/* Unions offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2: f += #elems added */
+void
sorted_union(list1, list2, f, pf, cf)
struct offsets **list1, **list2;
int *f, pf, cf;
@@ -115,6 +118,7 @@ sorted_union(list1, list2, f, pf, cf)
}
/* Intersects offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2 */
+void
sorted_intersection(filenum, list1, list2, f)
struct offsets **list1, **list2;
int *f;
+76
View File
@@ -0,0 +1,76 @@
$NetBSD: patch-ao,v 1.2 2012/11/19 03:05:04 joerg Exp $
--- index/build_in.c.orig 2002-10-11 05:28:32.000000000 +0000
+++ index/build_in.c
@@ -125,6 +125,12 @@ extern struct indices *ip;
extern int HashTableSize;
struct token **hash_table; /*[MAX_64K_HASH];*/
+void remove_filename(int fileindex, int new_partition);
+void merge_in(FILE *f1, FILE *f2, FILE *f3);
+void init_hash_table(void);
+void build_hash(void);
+
+void
build_index()
{
int i;
@@ -599,13 +605,16 @@ next_token:
#endif
}
+void
traverse1()
{
FILE *i1, *i2, *i3;
int ret;
char s[MAX_LINE_LEN], es1[MAX_LINE_LEN], es2[MAX_LINE_LEN], es3[MAX_LINE_LEN];
char s1[MAX_LINE_LEN];
+#ifndef errno
extern int errno;
+#endif
static int maxsortlinelen = 0;
int i;
@@ -781,7 +790,8 @@ build_hash():
input: a set of filenames in name_list[], a partition table p_table[]
output: a hash table hash_table[].
-----------------------------------------------------------------------*/
-build_hash()
+void
+build_hash(void)
{
int fd; /* opened file number */
int i, pn; /* pn: current partition */
@@ -1230,7 +1240,8 @@ try_again_1:
my_free(buffer_begin, BLOCK_SIZE + 10);
}
-init_hash_table()
+void
+init_hash_table(void)
{
int i;
@@ -1481,8 +1492,8 @@ extern unsigned char *dest_index_buf;
extern unsigned char *merge_index_buf;
/* merge index file f1 and f2, then put the result in index file f3 */
-merge_in(f1, f2, f3)
-FILE *f1, *f2, *f3;
+void
+merge_in(FILE *f1, FILE *f2, FILE *f3)
{
int src_mark, dest_mark;
int src_num, dest_num;
@@ -1895,8 +1906,8 @@ fprintf(stderr,"Realloc #4, new size is
return;
}
-remove_filename(fileindex, new_partition)
- int fileindex, new_partition;
+void
+remove_filename(int fileindex, int new_partition)
{
if ((fileindex < 0) || (fileindex >= MaxNum24bPartition)) return;
#if BG_DEBUG
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ap,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- index/convert.c.orig 2002-05-03 06:43:17.000000000 +0200
+++ index/convert.c
@@ -43,7 +43,9 @@ int allocate_and_fill(/* out unsigned c
/* Imported variables */
+#ifndef errno
extern int errno;
+#endif
extern int get_index_type(); /* from io.c */
extern int file_num; /* from io.c */
extern int mask_int[32]; /* from io.c */
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aq,v 1.1 2005/06/04 10:44:29 wiz Exp $
--- index/partition.c.orig 2002-09-27 23:41:11.000000000 +0200
+++ index/partition.c
@@ -28,7 +28,9 @@ int new_partition;
int files_per_partition;
int files_in_partition;
int ATLEASTONEFILE = 0;
+#ifndef errno
extern int errno;
+#endif
char patbuf[MAX_PAT];
extern unsigned char *src_index_buf;
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-ar,v 1.1 2007/08/09 18:26:57 joerg Exp $
--- Makefile.in.orig 2007-08-09 20:20:05.000000000 +0200
+++ Makefile.in
@@ -93,16 +93,16 @@ install: all installdirs install-man
( cd $$d; $(MAKE) $@ ); \
done
for d in $(BINDIR)/$(PROG) $(BINDIR)/$(PROGSERVER) ; do \
- $(INSTALL) $$d $(bindir) ; \
+ $(INSTALL) $$d ${DESTDIR}$(bindir) ; \
done
install-man:
for d in $(MANUAL) ; do \
- $(INSTALL_MAN) $$d $(mandir) ; \
+ $(INSTALL_MAN) $$d ${DESTDIR}$(mandir) ; \
done
installdirs: mkinstalldirs
- $(srcdir)/mkinstalldirs $(bindir) $(mandir)
+ $(srcdir)/mkinstalldirs ${DESTDIR}$(bindir) ${DESTDIR}$(mandir)
clean:
for d in $(SUBDIRS); do \
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-as,v 1.1 2007/08/09 18:26:57 joerg Exp $
--- index/Makefile.in.orig 2007-08-09 20:22:05.000000000 +0200
+++ index/Makefile.in
@@ -69,7 +69,7 @@ NOTSall: $(NOTSCASTPROG) $(NOTSPROG) not
install: all install-man
for i in $(BINDIR)/$(CASTPROG) $(BINDIR)/$(PROG) $(BINDIR)/wgconvert ; do \
- $(INSTALL) $$i $(bindir) ; \
+ $(INSTALL) $$i ${DESTDIR}$(bindir) ; \
done
install-man:
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-at,v 1.1 2007/08/09 18:26:57 joerg Exp $
--- compress/Makefile.in.orig 2007-08-09 20:22:55.000000000 +0200
+++ compress/Makefile.in
@@ -48,7 +48,7 @@ all: $(LIB) tbuild cast uncast
install: all
for i in tbuild cast uncast ; do \
- $(INSTALL) $$i $(bindir) ; \
+ $(INSTALL) $$i ${DESTDIR}$(bindir) ; \
done
install-man:
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-au,v 1.1 2007/08/09 18:26:57 joerg Exp $
--- agrep/Makefile.in.orig 2007-08-09 20:23:23.000000000 +0200
+++ agrep/Makefile.in
@@ -61,10 +61,10 @@ LIB = $(LIBDIR)/lib$(PROG).a
all: $(LIB) $(NOTCPROG)
install: all install-man
- $(INSTALL) $(PROG) $(bindir)
+ $(INSTALL) $(PROG) ${DESTDIR}$(bindir)
install-man: $(MAN1)
- $(INSTALL_MAN) $(MAN1) $(mandir)
+ $(INSTALL_MAN) $(MAN1) ${DESTDIR}$(mandir)
clean:
rm -f $(LIB) $(OBJS) dummyfilters.o main.o core a.out $(PROG)
@@ -0,0 +1,13 @@
$NetBSD: patch-compress_main__tbuild.c,v 1.1 2012/11/19 03:05:04 joerg Exp $
--- compress/main_tbuild.c.orig 2012-11-19 01:18:30.000000000 +0000
+++ compress/main_tbuild.c
@@ -25,7 +25,7 @@ char *progname;
int
main(argc, argv)
int argc;
- unsigned char *argv[];
+ char *argv[];
{
char comp_dir[MAX_LINE_LEN];
int threshold, specialwords;
@@ -0,0 +1,12 @@
$NetBSD: patch-compress_misc.c,v 1.1 2012/11/19 03:05:04 joerg Exp $
--- compress/misc.c.orig 2012-11-18 22:59:30.000000000 +0000
+++ compress/misc.c
@@ -288,6 +288,7 @@ int flags;
return 1;
}
+void
uninitialize_common()
{
initialize_common_done = 0;
@@ -0,0 +1,12 @@
$NetBSD: patch-get__filename.c,v 1.1 2012/11/19 03:05:04 joerg Exp $
--- get_filename.c.orig 2012-11-18 22:58:10.000000000 +0000
+++ get_filename.c
@@ -481,6 +481,7 @@ endofinput:
return 0;
}
+void
get_filenames(index_vect, argc, argv, dummylen, dummypat, file_num)
int *index_vect;
int argc; /* the arguments to agrep for -F */
+62
View File
@@ -0,0 +1,62 @@
$NetBSD: patch-index_io.c,v 1.1 2012/11/19 03:05:04 joerg Exp $
--- index/io.c.orig 2012-11-18 22:53:18.000000000 +0000
+++ index/io.c
@@ -365,7 +365,7 @@ static int copy_file(const char *source,
-
+void
read_filters(index_dir, dofilter)
char *index_dir;
int dofilter;
@@ -1460,6 +1460,7 @@ get_filename_index(name)
return e->index;
}
+void
insert_filename(name, name_index)
char *name;
int name_index;
@@ -1512,6 +1513,7 @@ insert_filename(name, name_index)
(*pe)->index = name_index;
}
+void
change_filename(name, len, index, newname)
char *name;
int len;
@@ -1534,6 +1536,7 @@ change_filename(name, len, index, newnam
return;
}
+void
delete_filename(name, name_index)
char *name;
int name_index;
@@ -1577,6 +1580,7 @@ delete_filename(name, name_index)
return;
}
+void
init_filename_hashtable()
{
int i;
@@ -1584,6 +1588,8 @@ init_filename_hashtable()
}
int built_filename_hashtable = 0;
+
+void
build_filename_hashtable(names, num)
char **names[];
int num;
@@ -1595,6 +1601,7 @@ build_filename_hashtable(names, num)
built_filename_hashtable = 1;
}
+void
destroy_filename_hashtable()
{
int i;