Commit graph

49 commits

Author SHA1 Message Date
jwise
e80cbb3cea Add a small patch for daemon mode -- if running on NetBSD, call daemon() to
properly dissociate ourselves from the controlling terminal (and more).

This is still not enough to make daemon mode stable for me on 3.0_BETA, but
it's certainly a step in the right direction.
2005-08-24 01:44:07 +00:00
jlam
7820875fff Remove the abuse of buildlink that was pkg-config/buildlink3.mk. That
file's sole purpose was to provide a dependency on pkg-config and set
some environment variables.  Instead, turn pkg-config into a "tool"
in the tools framework, where the pkg-config wrapper automatically
adds PKG_CONFIG_LIBDIR to the environment before invoking the real
pkg-config.

For all package Makefiles that included pkg-config/buildlink3.mk, remove
that inclusion and replace it with USE_TOOLS+=pkg-config.
2005-08-10 20:56:10 +00:00
xtraeme
683c437a6c Update to 3.4.9
Changes:

BUGFIX: File descriptor leaks when connection to delivery host fails
BUGFIX: Decoding NUL characters causes message truncation
BUGFIX: Many files not written to group directory when using managed groups
BUGFIX: Some LDAs/MTAs truncate message when single dots not properly quoted
BUGFIX: 7BIT encoding contains 8BIT characters
BUGFIX: Messages to multiple local recipients may fail to decode completely
2005-08-08 11:10:15 +00:00
wiz
d774725534 Change path from devel/pkgconfig to devel/pkg-config.
No PKGREVISION bump since pkg-config is only a BUILD_DEPENDS.
2005-07-21 16:29:42 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
xtraeme
3b8da8adb1 Update to 3.4.8, bugfix release.
Changes:

BUGFIX: File descriptor leaks when connection to delivery host fails
BUGFIX: Decoding NUL characters causes message truncation
BUGFIX: Many files not written to group directory when using managed groups
BUGFIX: Some LDAs/MTAs truncate message when single dots not properly quoted
BUGFIX: 7BIT encoding contains 8BIT characters
BUGFIX: Messages to multiple local recipients may fail to decode completely
2005-06-15 16:26:36 +00:00
xtraeme
79eddea4e7 Update to 3.4.7 that fixes some critical bugs.
Changes:

BUGFIX: Delivery of false positives fails in managed groups
BUGFIX: LMTP/SMTP delivery fails on non-250 2xx response code
BUGFIX: Messages missing a terminating boundary fail to receive a signature
2005-06-07 02:47:33 +00:00
cube
c96fc5c185 o Fix PKG_SUPPORTED_OPTIONS to list all possible options [hi xtraeme!],
otherwise whatever the user provides in PKG_OPTIONS_VAR gets silently
  ignored [hi dillo!].
o Fix PLIST which was missing a header file.  PKGREVISION++.
2005-05-25 15:36:06 +00:00
rillig
f795c2e475 Removed trailing white-space. 2005-05-23 08:26:03 +00:00
xtraeme
0be5a83510 Update to 3.4.6.
Changes:

BUGFIX: segfault can occur when loose signature provided without
	space delimiter
2005-05-09 11:10:54 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
jwise
54b7b4d1b9 Fix typo -- was looking for distccd_flags' instead of dspam_flags'. 2005-04-26 15:43:26 +00:00
xtraeme
94221a9ce8 Update to 3.4.5
Version 3.4.5-STABLE

This version is a maintenance release and contains bug fixes only

BUGFIX: First run / first spam notifications don't send for users in groups
BUGFIX: Permissions on dspam.sock are wrong mode
BUGFIX: Bogus signature retrieval errors in logs
BUGFIX: LMTP error codes reporting permanent errors for temporary failures
BUGFIX: ParseToHeaders' notspam- alias fails to change user correctly
2005-04-26 08:49:46 +00:00
xtraeme
8596ac4197 Add missing argument for mysql storage: "--enable-mysql4-initialization"
needed to properly start mysql4 databases.
2005-04-14 23:37:11 +00:00
xtraeme
559389bdd2 * Replace hardcoded www user/group with APACHE_{USER,GROUP}.
* Modify permissions for DSPAM_HOME, it should be
  ${DSPAM_USER}:${APACHE_GROUP}, so that the CGI interface works
  correctly without modifications.

Bump PKGREVISION.
2005-04-14 20:39:59 +00:00
xtraeme
25474ba313 * Enable support for sqlite3 storage driver.
* Don't enable daemon mode globally, only for mysql/pgsql.
2005-04-14 05:32:37 +00:00
xtraeme
112179d277 Update to 3.4.4.
Version 3.4.4-STABLE

This version if a maintenance release and contains bug fixes only

BUGFIX: Message-based signatures do not appear in quoted-printable/base64 parts

RELEASE 3.4.3-STABLE

This version is a maintenance release and contains bug fixes only

BUGFIX: When using LMTP/SMTP delivery, QuarantineAgent is ignored
BUGFIX: Domain-scale uses wrong data path in admin script
BUGFIX: DSPAM fails to build on Cygwin
BUGFIX: optIn does not work when using preferences extensions
BUGFIX: showFactors does not set/unset properly in user preferences
BUGFIX: Supplying an empty spamSubject raises errors in user preferences
BUGFIX: Signature-related errors are not reported (except to debug)
BUGFIX: Formatting bug in system.log
2005-04-14 04:59:14 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
xtraeme
17c69dc078 Update to 3.4.2.
Changes:

BUGFIX: Minior memory leaks in multi-word tokenizer
BUGFIX: When using --classify, the system/user log is appended to
BUGFIX: Using signatureLocation=headers should prefer signature in headers
BUGFIX: History-based training only works for admins
BUGFIX: Long usernames malformatted in dspam_stats
BUGFIX: Daemon connection deadlocks when NULL characters are sent
BUGFIX: Other minor memory leaks
BUGFIX: PostgreSQL connections stay open in daemon mode
2005-04-06 17:52:36 +00:00
xtraeme
52dd527b2f Update to 3.4.1.
Changes:

	o Accuracy Enhancements
	o Bayesian Noise Reduction v2.0
	o TUM-Mode Enhancements
	o Library Performance Enhancements
	o PostgreSQL Storage Driver Enhancements
	o SQLite3 Storage Driver Support
	o Daemonized LMTP Server
	o LMTP Delivery

And more... more info in the RELEASE.NOTES file.

pkgsrc changes:

	o Add a dspam rc.d script to start the daemon.
	o The cgi configuration files were modified to support
	  CONF_FILES and PKG_SYSCONFDIR.

When using a NetBSD system, mount_umap(8) will be useful to mount
the cgi directory with www permissions, and you won't need to modify
any file in there! yay.
2005-03-21 21:35:52 +00:00
xtraeme
39b5bece9d Update to 3.2.8 (bugfix release).
Changes:

BUGFIX: TOE Training mode breaks automatic whitelisting
2005-03-07 21:00:20 +00:00
agc
8758983939 Add RMD160 digests. 2005-02-24 09:59:20 +00:00
xtraeme
a0437b8bfa Update to 3.2.7.
BUGFIX: Signature not written to some email, making them untrainable.
BUGFIX: DSPAM Segfaults if dspam_process() fails after loading a signature.
2005-02-20 00:05:51 +00:00
xtraeme
c638f9303e Update to 3.2.6
RELEASE 3.2.6-STABLE

BUGFIX: Sedation level instantiates when not specified
	(should default to off)

RELEASE 3.2.5-STABLE

BUGFIX: statisticalSedation preference is ignored
2005-01-19 22:33:59 +00:00
xtraeme
3b32995253 Update to 3.2.4.
Changes:

BUGFIX: MIME boundaries using broken RFC are misread
BUGFIX: Tools will not build when CFLAGS is provided
BUGFIX: DSPAM misreads lines after -- as headers and fails to decode them
BUGFIX: DSPAM misreads lines after -- and adds colons to them

Enhancements:

PostgreSQL Storage Driver
Some minor fixes have been made to the PostgreSQL storage driver which may
affect performance.
2005-01-05 00:57:39 +00:00
xtraeme
477bd6e1a4 Update to 3.2.3.
Version 3.2.3 is a maintenance release and contains corrections to
v3.2 only.

BUGFIX: DSPAM misreads boundary delimiter in signed Apple Mail messages
BUGFIX: Signature is not written to multipart blocks with no content type
BUGFIX: dspam_dump for a particular token fails with MySQL 4.1
BUGFIX: Bayesian Noise Reduction is never instantiated
2004-11-29 07:59:53 +00:00
xtraeme
193b1d3dbc Define GNU_CONFIGURE before USE_LIBTOOL, so the check for _OPSYS_MAX_CMDLEN
defined in mk/platform/${OPSYS}.mk is not skipped.
2004-11-17 13:26:17 +00:00
xtraeme
569b2585a4 Update mail/dspam to 3.2.2.
Version 3.2.2 is a maintenance release and contains corrections
to v3.2 only.

BUGFIX: optOut preference no longer works
BUGFIX: Source address tracking doesn't work when using TOE
BUGFIX: LocalMX tag doesn't work in dspam.conf
BUGFIX: dspam.conf default permissions 0750
BUGFIX: Using SignatureLocation=headers no longer works with
        fwd attachments
BUGFIX: Source address tracking is disabled by legacy #ifdef's
BUGFIX: Chi-Square cutoff is identical to default token value
BUGFIX: Tokens from lines 2+ of multi-line headers are not processed
BUGFIX: Signature scan segfaults when scanning some emails
BUGFIX: Signature encoding can cause segfault in sqlite_drv

Other Notable Changes:

CHANGE: TrackSources 'ham' token changed to 'nonspam'
CHANGE: Agent loose signature match changed from DSPAM: to
        X-DSPAM-Signature:
2004-11-15 08:13:13 +00:00
xtraeme
2c91b23d48 Update mail/dspam to 3.2.1.
Version 3.2.1 is a maintenance release and contains bugfixes to v3.2.0 only.

BUGFIX: PGP Messages cause pop3filter to hang
BUGFIX: Invalid read of free()'d memory caused by parsing multi-line headers
BUGFIX: SQLite driver fails to call PRAMA specified in dspam.conf
BUGFIX: MySQL generates DUPLICATE KEY errors on simultaneous inserts
BUGFIX: Memory leaks in dspam_clean
BUGFIX: dspam_clean crashes with SQLite driver
BUGFIX: Signatures include leading whitespace when in loose match
BUGFIX: Some versions of PostgreSQL don't support PQfreemem()
BUGFIX: Memory mishandling in PostgreSQL driver
BUGFIX: Message delimiters mangled when processing a PGP signed message
BUGFIX: --with-delivery-agent configure option no longer present
BUGFIX: Default log directory /var/log not writable by some installs
BUGFIX: Man page installation doesn't prefix with $(DESTDIR)
BUGFIX: Emails ending with http:// cause invalid memory read
2004-11-01 23:15:15 +00:00
xtraeme
c5b686aff3 Use mk/mysql.buildlink3.mk instead of databases/mysql-client/buildlink3.mk,
so that we'd not force dependance on specific MySQL version, and instead pick
the currently installed mysql*-client (or install the default if there
is no mysql-client package installed yet)

this makes package buildable with arbitrary MySQL version, such as 3.23.x,
4.0.x or 4.1.x
2004-10-29 07:07:44 +00:00
wiz
fd7576a082 Remove trailing whitespace. 2004-10-28 13:32:20 +00:00
adrianp
91d049a05f - Do a PERL_REPLACE on cgi/configure.pl.in not configure.pl.in
- dspam.conf can contain sensitive information such as SQL
  username/password accounts.  So change ownership to root:dspam and mode to
  0640.
- The cgi template cgi/templates/nav_performance.html contains a
  @yourdomain.com which should be customised on install.
  Added an extra BUILD_DEFS called DSPAM_DOMAIN to allow users to do this.

ok'ed xtraeme@
2004-10-28 10:12:47 +00:00
xtraeme
6023604429 Permissions for ${DSPAM_HOME} should be 0775 not 0770 (needed to use
the CGI frontend), regen distinfo for patch-ab missed in previous.
2004-10-28 06:03:18 +00:00
xtraeme
be1126acff Add missing OWN_DIRS_PERMS for DSPAM_LOGDIR. 2004-10-27 23:31:57 +00:00
xtraeme
008533d825 Apply patch from dspam CVS to fix some errors when using MySQL-4.1.x.
Bump PKGREVISION.
2004-10-27 23:27:00 +00:00
xtraeme
a913388e91 Update mail/dspam to 3.2.0 (latest stable version).
Version 3.2 adds many significant enhancements, these include the
introduction of a dspam.conf master configuration, an aesthetically
redesigned web interface, support for SQLite, support for Windows, and
and many other enhancements.

More information:

http://www.nuclearelephant.com/projects/dspam/text/RELEASE-3.2.0.txt

pkgsrc changes:

* Default storage driver has been changed to SQLite, to sync with dspam's
 defaults.
* Deprecated options has been removed totally, now you'll have to specify
 them via PKG_OPTIONS.dspam=foo bar baz.
2004-10-22 05:43:28 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
snj
a4e7fead1c Capitalize COMMENT and drop trailing whitespace. 2004-08-30 19:18:18 +00:00
jlam
9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework.  Instead of appending to
${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS.  This causes
the default options to be the union of PKG_DEFAULT_OPTIONS and any
old USE_* and FOO_USE_* settings.

This fixes PR pkg/26590.
2004-08-22 19:32:51 +00:00
jlam
c03c270fac Avoid calling mkdir() with a trailing slash, as some systems don't
support it.  DSPAM now correctly creates per-user statistics files on
NetBSD 1.6.2.  Bump PKGREVISION.
2004-08-09 20:14:21 +00:00
jlam
cce4afe622 Support building more options:
"long-usernames" allows usernames longer than allowed by the underlying
operating system.  This may be needed if you use DSPAM as a Postfix content
filter.

"spam-subject" prepends "[SPAM]" to the Subject: of messages classified as
spam.
2004-08-09 07:02:59 +00:00
jlam
c9c9c8ecd7 The permissions on /var/dspam should be 0770, not 0755. This affects the
binary package, but ride the last PKGREVISION bump.
2004-08-07 18:26:25 +00:00
jlam
eb9463c7ff The dspam binary must be setuid to the dspam user, so we must list
the file in SPECIAL_PERMS to ensure that when installing from a binary
package, it is automatically set to the correct ownership and file
permissions.  Also manage ${DSPAM_HOME} using OWN_DIRS_PERMS since it
must exist for dspam to work properly, and must also be writable by
the dspam user.

Bump the PKGREVISION to 3.
2004-08-07 06:12:20 +00:00
jlam
fc2f366c22 There is no "large" subst class. 2004-08-06 21:27:52 +00:00
jlam
a448c47ada * Only include bdb.buildlink3.mk if we are using DB[34] as a storage
driver backend.

* Convert to use bsd.options.mk.  DSPAM_DELIVERY_AGENT_ARGS has been
  deprecated -- just set DSPAM_DELIVERY_AGENT to the LDA instead of
  "custom".

* Only install the documentation for the storage driver used by DSPAM.

* Drop the default signature lifetime from 15 days to 14 days to match
  the DSPAM defaults.

Bump the PKGREVISION to 2.
2004-08-06 21:24:13 +00:00
recht
6078f1509c Use mk/pgsql.buildlink3.mk for choosing the PostgreSQL version to be used. 2004-07-24 23:06:56 +00:00
recht
9ed5ad3166 Fix a typo: It's user:group and not group:user.
bump PKGREVISION to 1.
2004-07-07 15:18:34 +00:00
xtraeme
4f5de69b89 Initial import of dspam-3.0.0 from pkgsrc-wip.
DSPAM (as in De-Spam) is an extremely scalable, open-source statistical hybrid
anti-spam filter. While most commercial solutions only provide a mere 95%
accuracy (1 error in 20), a majority of DSPAM users frequently see between
99.95% (1 error in 2000) all the way up to 99.991% (2 errors in 22,786).

DSPAM is currently effective as both a server-side agent for UNIX email servers
and a developer's library for mail clients, other anti-spam tools, and similar
projects requiring drop-in spam filtering. DSPAM has been implemented on many
large and small scale systems with the largest systems being reported at about
125,000 mailboxes.
2004-06-20 19:41:23 +00:00