2013-03-03 11:59:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2013/03/03 10:59:08 shattered Exp $
|
2002-12-13 10:39:15 +01:00
|
|
|
#
|
|
|
|
|
2013-03-03 11:59:08 +01:00
|
|
|
DISTNAME= ifile-1.3.8
|
2002-12-13 10:39:15 +01:00
|
|
|
CATEGORIES= mail
|
2013-03-03 11:59:08 +01:00
|
|
|
MASTER_SITES= http://qwone.com/~jason/ifile/
|
2004-12-13 00:39:36 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
Updated to version 1.3.0.
Changes:
- add local patch for configure generated with new autoconf, the old
one doesn't accept CFLAGS & the like. (already fixed in ifile cvs)
1.3.0:
======
- include/extendable_array.h: Fixed bug in EXT_ARRAY_INIT_N_SET()
macro. Fixes bug 2516, where new folders caused the database to
be garbled.
- Performance improvements: On a Sun SPARC-based system running
Solaris 10, with a database of about 16500 words, got a 40%
improvement in words processed per second when reading the
database, using the changes listed here.
- include/ifile.h: Changed prototypes for readline(),
ifile_read_header() and ifile_read_word_frequencies() to reflect
new calling conventions.
- include/extendable_array.h: New macro EXT_ARRAY_INIT_N_SET()
combines the effects of EXT_ARRAY_INIT() and multiple calls to
EXT_ARRAY_SET() in a smarter way, saving many realloc() calls and
many manipulations of the array metadata.
- utils.c: Rewrote readline to take a char-- bufp and use the
data within -bufp to parse a line, and update -bufp to point
beyond the first line. This avoids at least one copy of the
data.
- primes.c: Cast values returned by ifile_realloc() correctly.
- int4str.c: Cast argument to free() to void - in
ifile_int4str_free_contents(), to fix compiler complaints.
- hash.c: Added an include of <string.h> to fix compiler
complaints.
- database.c: Made ifile_read_db() read the whole database in one
fell swoop and modified callers of readline() to just pass in a
pointer to the buffered database.
Also made ifile_read_word_entry() call a new macro
EXT_ARRAY_INIT_N_SET() in place of EXT_ARRAY_INIT() and multiple
calls to EXT_ARRAY_SET(), saving many calls to realloc() and many
manipulations of the extendable array metadata.
2003-02-25 12:34:37 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= salo@NetBSD.org
|
2013-03-03 11:59:08 +01:00
|
|
|
HOMEPAGE= http://qwone.com/~jason/ifile/
|
2002-12-13 10:39:15 +01:00
|
|
|
COMMENT= Intelligent mail filtering system
|
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2002-12-13 10:39:15 +01:00
|
|
|
|
2010-02-04 03:20:24 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ifile ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ifile.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
|
2002-12-13 10:39:15 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|