pkgsrc/mail/bogofilter/Makefile

30 lines
769 B
Makefile
Raw Normal View History

2017-04-22 23:03:07 +02:00
# $NetBSD: Makefile,v 1.63 2017/04/22 21:03:41 adam Exp $
2003-04-03 14:06:07 +02:00
1.2.4 2013-07-01 (released) 2013-06-28 * Fix three crashes in command line and environment variable parsers that caused NULL pointer dereferences with long option variants of bogofilter --syslog-tag, or bogoutil --timestamp-date, or when bogotune -M<file> cannot derive the bogofilter directory. Reported by Alexandre Rebert, found with Mayhem tool. * Add getopt_long_chk(), a getopt_long variant that checks if the overlapping short and long options agree on whether their argument is not required, mandatory, or optional. If they disagree, the program aborts. * Fix a crash in command line parser that causes a NULL pointer dereference when --db-cachesize is used without argument. Found with getopt_long_chk(). 2013-01-20 * Change lexer API/ABI a bit so as to work with flex 2.5.36 generated lexers (for instance, on Fedora 18 "Spherical Cow") that flip the type of yyleng from int to size_t. We use a signed long internally. 2012-12-30 * The bogofilter project was updated to the new SourceForge.net platform. This has caused the URLs to change. Use one of these commands for a read-only checkout: svn checkout svn://svn.code.sf.net/p/bogofilter/code/trunk bogofilter svn checkout http://svn.code.sf.net/p/bogofilter/code/trunk bogofilter And developers would use, replacing joe by their sf.net login: svn checkout --username=joe svn+ssh://m-a@svn.code.sf.net/p/bogofilter/code/trunk bogofilter 2012-12-03 * Add bogofilter-SA-2012-01 (CVE-2012-5468). * Fix XML form of Bulgarian FAQ so that it validates; and validate XHTML at build time. * Mark Berkeley DB 5.2.42 and 5.3.21 supported.
2014-11-22 02:36:43 +01:00
DISTNAME= bogofilter-1.2.4
2017-04-22 23:03:07 +02:00
PKGREVISION= 7
2003-04-03 14:06:07 +02:00
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bogofilter/}
EXTRACT_SUFX= .tar.bz2
2003-04-03 14:06:07 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bogofilter.sourceforge.net/
2003-04-03 14:06:07 +02:00
COMMENT= Bayesian spam filter written in C
LICENSE= gnu-gpl-v2
2003-04-03 14:06:07 +02:00
GNU_CONFIGURE= YES
2003-04-03 14:06:07 +02:00
Update bogofilter to 1.2.2. pkgsrc changes: * accept bdb3 and bdb5, rename db4 option to bdb. * accept tokyocabinet for db engine. * buildlink with libiconv for UNICODE support. ------------------------------------------------------------------------------- 1.2.2 2010-10-08 (released) 2010-07-05 * Use a better PRNG for random sleeps. That is arc4random() where available, and drand48() elsewhere. * Assorted fixes for issues found with clang analyzer: + Fix a potential NULL deference + Fix a potential division by zero + Remove dead assignments and increments * Update Doxyfile and source contrib/bogogrep.c for docs, too. 2010-07-03 * Security bugfix, CVE-2010-2494: Fix a heap corruption in base64 decoder on invalid input. Analysis and patch by Julius Plenz <plenz@cis.fu-berlin.de>. Please see doc/bogofilter-SA-2010-01 for details. 2010-04-07 * Updated sendmail milter contrib/bogofilter-milter.pl to v1.?????? (thanks to Jonathan Kamens) 2010-04-01 * Bump supported/minimum SQLite3 versions and warning threshold. See doc/README.sqlite for details. * Mark BerkeleyDB 4.8.26 and 5.0.21 supported. Note that Berkeley DB 5.0's SQLite3 compatibility API is NOT supported, it causes shifts in scores and write failures under contention. Bogofilter can use Berkeley DB 5.0's native interface, and using that is more efficient than the added SQL shim layer. 2010-03-06 * Make t.maint more robust; ignore .ENCODING token. To fix test failures on, for instance, FreeBSD with unicode enabled. 2010-02-15 * Fix several compiler warnings "array subscript has type 'char'", by casting the arguments to unsigned char. A security audit was conducted and showed that all affected functions either received the relevant input from the user running bogofilter, or the input had already been pre-validated by the token lexer. 2010-02-14 * Split error messages for ENOENT and EINVAL into new function. * Avoid divison by zero in robx computation by checking if there are at least one ham message and one spam message registered. 2009-08-13 * contrib/spamitarium.pl updated to version 0.4.0 (thanks to Tom Anderson) 2009-08-05 * Updated and integrated Ted Phelps's "Patch to prevent .ENCODING from being discarded by bogoutil -m" (SourceForge Patch #1743984). Thanks to Ted for debugging the issue and providing the patch (which was for bogofilter v1.1.5). 2009-09-15 * Promoted to "stable" 1.2.1 2009-08-01 (released) 2009-08-01 * Update configure to use "host" rather than "target", to match the newer autotools cross-build semantics. Untested. Developers changing the build system and users who build from SVN will now need automake 1.9 and autoconf 2.60. 2009-07-31 * Fix Christian Frommeyer's MIME decoding bug, Ubuntu/Launchpad Bug #320829. As a side effect, also fixes misattribution of MIME bodies as MIME headers with mime: tag. Original bug report: https://bugs.launchpad.net/ubuntu/+source/bogofilter/+bug/320829 Before this fix, bogofilter did not properly MIME-decode the first line in a body. This was especially bad with Christian's samples where the whole body was only one long base64 line. 2009-05-28 * Removed two scripts that are auto-built. * Added test case for Stephen Davies' Q-P EOL problem (see below). 2009-05-25 * Fixed EOL problem in quoted_printable text. Problem reported by Stephen Davies and identified by Pavel Kankovsky. 2009-03-28 * Promoted to "stable" 1.2.0 2009-02-21 (released) 2009-03-28 (declared stable) 2009-02-20 * Flex-2.5.35 has fix for memory allocation problem in 2.5.4, 2.5.31, and 2.5.33, making bogofilter's flex patch obsolete. 2009-02-12 * Bogofilter now uses listsort in place of qsort. 2009-01-31 * Added token-count=n, token-count-min=n, and token-count-max=n options. * Minor code cleanups. 2009-01-21 * spamitarium.pl updated to version 0.3.0 (thanks to Tom Anderson) 2009-01-11 * For compatibility with Sun's Sun Studio 12 compiler, provide a name for the anonymous union in typedef word_t. Patch provided by Jack Bailey. 2008-10-20 * update bf_compact documentation by removing explicit Berkeley DB references, as it has been fixed to work with other database drivers in March 2008. 2008-10-15 * bf_compact, bf_copy and bf_tar now support transformed program names (fixes Debian Bug#501947). * Update sqlite3 adaptor to take advantage of sqlite3_prepare_v2() API function that appeared in SQLite 3.3.9. The new _v2 interface allows for more specific error messages when executing SQL statements. Also enable extended result codes for more precise error reporting. 2008-07-21 * Update doc/integrating-with-postfix: the script now suggests sendmail -G -i (where -G will be ignored by Postfix before 2.3) to tell Postfix it's a gateway submission, not an original injection; the filter pipe(8) magic for master.cf now suggests flags=Rq (was flags=R), as per Postfix's FILTER_README. 2008-07-09 * Drop support for systems that reverse setvbuf arguments. The last systems to do that are reported to be shipped in 1987 by the autoconf manual, so ditch them.
2010-07-24 11:33:09 +02:00
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/bogofilter
2003-04-03 14:06:07 +02:00
Updated to 0.14.5.4. While updating, make bogofilter use the bsd.pkg.install.mk framework to install the configuration file into PKG_SYSCONFDIR. Patch provided by Soren Jacobsen in PR pkg/22983. Changes: Changes: 0.14.5.4 * _Really_ fix defective printing in 'bogofilter -Q' output. 0.14.5.3 * Fix parser errors that can cause: 1. Incorrect processing of html comments. 2. "fatal flex scanner internal error--end of buffer missed", which kills bogofilter. * Fix defective printing in 'bogofilter -Q' output. * Compiles with TDB again. 0.14.5.2 * bogominitrain.pl - removed email 'cruft' and revised format of verbose output. 0.14.5.1 * Fixed parameter type error in dbh_print_names() that causes segfault. * Enhanced verbose output of bogominitrain.pl * Documented '-T' option in man page. * Fixed parsing error that treated "^From " in encoded text as a message separator. * Revised format for '-T'. * Fixed defect in bogominitrain.pl's norepetition mode. 0.14.5 * Updated bogominitrain.pl to version 1.3. * Corrected parsing error (in html code) that caused bogofilter to miss message separators. * Added '-T' as terse mode (with fixed formatting). * Revised processing of From and empty lines so that parsing works correctly with both flex-2.5.4 and flex-2.5.31. 0.14.4 * Revised database API so that there are 3 distinct layers (program, datastore, and database) with a clean interface between them. * Correct exitcodes in bogoutil by using EX_ERROR. * Fixed token registration bug in 0.14.x versions. * Fixed seg fault caused by database lock contention. 0.14.3 * Fixed critical locking bug introduced into bogofilter 0.14.0 with the combined-wordlist code: when working with separate wordlists, bogofilter would lock only the first one opened, rather than all. * Documentation updates. * %g formatting is now supported by bogofilter's formatting functions. * Merged trio 1.10 (http://ctrio.sourceforge.net/) to support compilation on ancient systems (Solaris 2.5) that do not have [v]snprintf functions. Trio is Copyright (C) 1998-2000 Bjorn Reese and Daniel Stenberg. * Various documentation updates, including the FAQ. * The test suite was adjusted for older grep variants (Solaris 2.5) that don't cope with long lines. * Print database version in print_version(). * Postfix integration instructions have been upgraded. * Debug output for wordlists and databases was enhanced.
2003-09-30 09:11:48 +02:00
EGDIR= ${PREFIX}/share/examples/bogofilter
Update bogofilter to 1.2.2. pkgsrc changes: * accept bdb3 and bdb5, rename db4 option to bdb. * accept tokyocabinet for db engine. * buildlink with libiconv for UNICODE support. ------------------------------------------------------------------------------- 1.2.2 2010-10-08 (released) 2010-07-05 * Use a better PRNG for random sleeps. That is arc4random() where available, and drand48() elsewhere. * Assorted fixes for issues found with clang analyzer: + Fix a potential NULL deference + Fix a potential division by zero + Remove dead assignments and increments * Update Doxyfile and source contrib/bogogrep.c for docs, too. 2010-07-03 * Security bugfix, CVE-2010-2494: Fix a heap corruption in base64 decoder on invalid input. Analysis and patch by Julius Plenz <plenz@cis.fu-berlin.de>. Please see doc/bogofilter-SA-2010-01 for details. 2010-04-07 * Updated sendmail milter contrib/bogofilter-milter.pl to v1.?????? (thanks to Jonathan Kamens) 2010-04-01 * Bump supported/minimum SQLite3 versions and warning threshold. See doc/README.sqlite for details. * Mark BerkeleyDB 4.8.26 and 5.0.21 supported. Note that Berkeley DB 5.0's SQLite3 compatibility API is NOT supported, it causes shifts in scores and write failures under contention. Bogofilter can use Berkeley DB 5.0's native interface, and using that is more efficient than the added SQL shim layer. 2010-03-06 * Make t.maint more robust; ignore .ENCODING token. To fix test failures on, for instance, FreeBSD with unicode enabled. 2010-02-15 * Fix several compiler warnings "array subscript has type 'char'", by casting the arguments to unsigned char. A security audit was conducted and showed that all affected functions either received the relevant input from the user running bogofilter, or the input had already been pre-validated by the token lexer. 2010-02-14 * Split error messages for ENOENT and EINVAL into new function. * Avoid divison by zero in robx computation by checking if there are at least one ham message and one spam message registered. 2009-08-13 * contrib/spamitarium.pl updated to version 0.4.0 (thanks to Tom Anderson) 2009-08-05 * Updated and integrated Ted Phelps's "Patch to prevent .ENCODING from being discarded by bogoutil -m" (SourceForge Patch #1743984). Thanks to Ted for debugging the issue and providing the patch (which was for bogofilter v1.1.5). 2009-09-15 * Promoted to "stable" 1.2.1 2009-08-01 (released) 2009-08-01 * Update configure to use "host" rather than "target", to match the newer autotools cross-build semantics. Untested. Developers changing the build system and users who build from SVN will now need automake 1.9 and autoconf 2.60. 2009-07-31 * Fix Christian Frommeyer's MIME decoding bug, Ubuntu/Launchpad Bug #320829. As a side effect, also fixes misattribution of MIME bodies as MIME headers with mime: tag. Original bug report: https://bugs.launchpad.net/ubuntu/+source/bogofilter/+bug/320829 Before this fix, bogofilter did not properly MIME-decode the first line in a body. This was especially bad with Christian's samples where the whole body was only one long base64 line. 2009-05-28 * Removed two scripts that are auto-built. * Added test case for Stephen Davies' Q-P EOL problem (see below). 2009-05-25 * Fixed EOL problem in quoted_printable text. Problem reported by Stephen Davies and identified by Pavel Kankovsky. 2009-03-28 * Promoted to "stable" 1.2.0 2009-02-21 (released) 2009-03-28 (declared stable) 2009-02-20 * Flex-2.5.35 has fix for memory allocation problem in 2.5.4, 2.5.31, and 2.5.33, making bogofilter's flex patch obsolete. 2009-02-12 * Bogofilter now uses listsort in place of qsort. 2009-01-31 * Added token-count=n, token-count-min=n, and token-count-max=n options. * Minor code cleanups. 2009-01-21 * spamitarium.pl updated to version 0.3.0 (thanks to Tom Anderson) 2009-01-11 * For compatibility with Sun's Sun Studio 12 compiler, provide a name for the anonymous union in typedef word_t. Patch provided by Jack Bailey. 2008-10-20 * update bf_compact documentation by removing explicit Berkeley DB references, as it has been fixed to work with other database drivers in March 2008. 2008-10-15 * bf_compact, bf_copy and bf_tar now support transformed program names (fixes Debian Bug#501947). * Update sqlite3 adaptor to take advantage of sqlite3_prepare_v2() API function that appeared in SQLite 3.3.9. The new _v2 interface allows for more specific error messages when executing SQL statements. Also enable extended result codes for more precise error reporting. 2008-07-21 * Update doc/integrating-with-postfix: the script now suggests sendmail -G -i (where -G will be ignored by Postfix before 2.3) to tell Postfix it's a gateway submission, not an original injection; the filter pipe(8) magic for master.cf now suggests flags=Rq (was flags=R), as per Postfix's FILTER_README. 2008-07-09 * Drop support for systems that reverse setvbuf arguments. The last systems to do that are reported to be shipped in 1987 by the autoconf manual, so ditch them.
2010-07-24 11:33:09 +02:00
CONF_FILES= ${EGDIR}/bogofilter.cf.example ${PKG_SYSCONFDIR}/bogofilter.cf
Updated to 0.14.5.4. While updating, make bogofilter use the bsd.pkg.install.mk framework to install the configuration file into PKG_SYSCONFDIR. Patch provided by Soren Jacobsen in PR pkg/22983. Changes: Changes: 0.14.5.4 * _Really_ fix defective printing in 'bogofilter -Q' output. 0.14.5.3 * Fix parser errors that can cause: 1. Incorrect processing of html comments. 2. "fatal flex scanner internal error--end of buffer missed", which kills bogofilter. * Fix defective printing in 'bogofilter -Q' output. * Compiles with TDB again. 0.14.5.2 * bogominitrain.pl - removed email 'cruft' and revised format of verbose output. 0.14.5.1 * Fixed parameter type error in dbh_print_names() that causes segfault. * Enhanced verbose output of bogominitrain.pl * Documented '-T' option in man page. * Fixed parsing error that treated "^From " in encoded text as a message separator. * Revised format for '-T'. * Fixed defect in bogominitrain.pl's norepetition mode. 0.14.5 * Updated bogominitrain.pl to version 1.3. * Corrected parsing error (in html code) that caused bogofilter to miss message separators. * Added '-T' as terse mode (with fixed formatting). * Revised processing of From and empty lines so that parsing works correctly with both flex-2.5.4 and flex-2.5.31. 0.14.4 * Revised database API so that there are 3 distinct layers (program, datastore, and database) with a clean interface between them. * Correct exitcodes in bogoutil by using EX_ERROR. * Fixed token registration bug in 0.14.x versions. * Fixed seg fault caused by database lock contention. 0.14.3 * Fixed critical locking bug introduced into bogofilter 0.14.0 with the combined-wordlist code: when working with separate wordlists, bogofilter would lock only the first one opened, rather than all. * Documentation updates. * %g formatting is now supported by bogofilter's formatting functions. * Merged trio 1.10 (http://ctrio.sourceforge.net/) to support compilation on ancient systems (Solaris 2.5) that do not have [v]snprintf functions. Trio is Copyright (C) 1998-2000 Bjorn Reese and Daniel Stenberg. * Various documentation updates, including the FAQ. * The test suite was adjusted for older grep variants (Solaris 2.5) that don't cope with long lines. * Print database version in print_version(). * Postfix integration instructions have been upgraded. * Debug output for wordlists and databases was enhanced.
2003-09-30 09:11:48 +02:00
USE_TOOLS+= perl:run
.include "options.mk"
Update bogofilter to 1.2.2. pkgsrc changes: * accept bdb3 and bdb5, rename db4 option to bdb. * accept tokyocabinet for db engine. * buildlink with libiconv for UNICODE support. ------------------------------------------------------------------------------- 1.2.2 2010-10-08 (released) 2010-07-05 * Use a better PRNG for random sleeps. That is arc4random() where available, and drand48() elsewhere. * Assorted fixes for issues found with clang analyzer: + Fix a potential NULL deference + Fix a potential division by zero + Remove dead assignments and increments * Update Doxyfile and source contrib/bogogrep.c for docs, too. 2010-07-03 * Security bugfix, CVE-2010-2494: Fix a heap corruption in base64 decoder on invalid input. Analysis and patch by Julius Plenz <plenz@cis.fu-berlin.de>. Please see doc/bogofilter-SA-2010-01 for details. 2010-04-07 * Updated sendmail milter contrib/bogofilter-milter.pl to v1.?????? (thanks to Jonathan Kamens) 2010-04-01 * Bump supported/minimum SQLite3 versions and warning threshold. See doc/README.sqlite for details. * Mark BerkeleyDB 4.8.26 and 5.0.21 supported. Note that Berkeley DB 5.0's SQLite3 compatibility API is NOT supported, it causes shifts in scores and write failures under contention. Bogofilter can use Berkeley DB 5.0's native interface, and using that is more efficient than the added SQL shim layer. 2010-03-06 * Make t.maint more robust; ignore .ENCODING token. To fix test failures on, for instance, FreeBSD with unicode enabled. 2010-02-15 * Fix several compiler warnings "array subscript has type 'char'", by casting the arguments to unsigned char. A security audit was conducted and showed that all affected functions either received the relevant input from the user running bogofilter, or the input had already been pre-validated by the token lexer. 2010-02-14 * Split error messages for ENOENT and EINVAL into new function. * Avoid divison by zero in robx computation by checking if there are at least one ham message and one spam message registered. 2009-08-13 * contrib/spamitarium.pl updated to version 0.4.0 (thanks to Tom Anderson) 2009-08-05 * Updated and integrated Ted Phelps's "Patch to prevent .ENCODING from being discarded by bogoutil -m" (SourceForge Patch #1743984). Thanks to Ted for debugging the issue and providing the patch (which was for bogofilter v1.1.5). 2009-09-15 * Promoted to "stable" 1.2.1 2009-08-01 (released) 2009-08-01 * Update configure to use "host" rather than "target", to match the newer autotools cross-build semantics. Untested. Developers changing the build system and users who build from SVN will now need automake 1.9 and autoconf 2.60. 2009-07-31 * Fix Christian Frommeyer's MIME decoding bug, Ubuntu/Launchpad Bug #320829. As a side effect, also fixes misattribution of MIME bodies as MIME headers with mime: tag. Original bug report: https://bugs.launchpad.net/ubuntu/+source/bogofilter/+bug/320829 Before this fix, bogofilter did not properly MIME-decode the first line in a body. This was especially bad with Christian's samples where the whole body was only one long base64 line. 2009-05-28 * Removed two scripts that are auto-built. * Added test case for Stephen Davies' Q-P EOL problem (see below). 2009-05-25 * Fixed EOL problem in quoted_printable text. Problem reported by Stephen Davies and identified by Pavel Kankovsky. 2009-03-28 * Promoted to "stable" 1.2.0 2009-02-21 (released) 2009-03-28 (declared stable) 2009-02-20 * Flex-2.5.35 has fix for memory allocation problem in 2.5.4, 2.5.31, and 2.5.33, making bogofilter's flex patch obsolete. 2009-02-12 * Bogofilter now uses listsort in place of qsort. 2009-01-31 * Added token-count=n, token-count-min=n, and token-count-max=n options. * Minor code cleanups. 2009-01-21 * spamitarium.pl updated to version 0.3.0 (thanks to Tom Anderson) 2009-01-11 * For compatibility with Sun's Sun Studio 12 compiler, provide a name for the anonymous union in typedef word_t. Patch provided by Jack Bailey. 2008-10-20 * update bf_compact documentation by removing explicit Berkeley DB references, as it has been fixed to work with other database drivers in March 2008. 2008-10-15 * bf_compact, bf_copy and bf_tar now support transformed program names (fixes Debian Bug#501947). * Update sqlite3 adaptor to take advantage of sqlite3_prepare_v2() API function that appeared in SQLite 3.3.9. The new _v2 interface allows for more specific error messages when executing SQL statements. Also enable extended result codes for more precise error reporting. 2008-07-21 * Update doc/integrating-with-postfix: the script now suggests sendmail -G -i (where -G will be ignored by Postfix before 2.3) to tell Postfix it's a gateway submission, not an original injection; the filter pipe(8) magic for master.cf now suggests flags=Rq (was flags=R), as per Postfix's FILTER_README. 2008-07-09 * Drop support for systems that reverse setvbuf arguments. The last systems to do that are reported to be shipped in 1987 by the autoconf manual, so ditch them.
2010-07-24 11:33:09 +02:00
.include "../../converters/libiconv/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
2003-04-03 14:06:07 +02:00
.include "../../mk/bsd.pkg.mk"