Commit graph

79 commits

Author SHA1 Message Date
roy
b764dbdac3 Fix postgresql driver to escape strings properly.
Fix a tiny pkglint warning.
Bump revision.
2009-03-13 10:11:14 +00:00
joerg
3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
adrianp
081d84f114 Fix breakage caused by me when I renamed some PKG_OPTIONS incompletly
Reported by Travis Mikalson in PR 36522
2007-06-22 13:14:22 +00:00
adrianp
69d0dbcad7 Update to 3.8.0
pkglintification
Remove bdb option (this has been removed from src)
Rename some options as they are (currently) DSPAM specific
Change MASTER_SITES
Fix permissions on installed files
Thanks to xtraeme@ for reviewing the changes

* jonz: removed depricated oracle driver
* jonz: fix for dynamic storage drivers api
* jonz: added connect check for pgsql
* jonz: fix for segfault on undefined DeliveryHost or ClientHost
* jonz: fix for segfault in vsyslog()
* jonz: fix for segfault in dlopen() failure
* jonz: added OSB tokenizer
* jonz: fix for segfault on log write err
* jonz: segfault fix for UIDInSignature

See the CHANGELOG for all the details:
	http://dspam.nuclearelephant.com/text/CHANGELOG-3.8.0.txt
2007-05-07 09:29:54 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
obache
140b2a28be Must set PKG_SUPPORTED_OPTIONS before including bsd.options.mk.
Should fix PR 35439.

And remove duplicate preferences-extension and ldap options.
2007-01-18 14:22:38 +00:00
obache
a740069e3a Fix PLIST and don't install unwanted files when option backend database
is pgsql, close PR 34230.
2006-12-10 04:36:30 +00:00
xtraeme
847c32d954 Remove duplicate virtualusers option. 2006-12-10 00:30:01 +00:00
obache
0b386c6911 And also add src/tools/dspam_logrotate to REPLACE_PERL.
Bump PKGREVISION.
2006-12-05 13:16:35 +00:00
obache
14314a0cdb Add src/tools/dspam_train.in to REPLACE_PERL, pointed out in PR 35180,
and also remove inexistent tools.

Bump PKGREVISION.
2006-12-04 11:32:10 +00:00
xtraeme
e0bbe8e07c Update to 3.6.8:
BUGFIX: PostgreSQL fails to connect (always)
BUGFIX: LDAP client will not build due to header missing from makefile
2006-06-18 08:29:00 +00:00
xtraeme
8d08d304f7 Update to 3.6.7:
3.6.7 is a maintenance release

BUGFIX: Using UIDInSignature, wrong UID is written to message when using groups
BUGFIX: PostgreSQL driver does not reconnect on failure in daemon mode
BUGFIX: X-DSPAM-Probability sometimes misreported when multiple algorithms used
BUGFIX: Agent segfaults when DeliveryHost or ClientHost not specified, --client
BUGFIX: Agent segfaults on some systems when syslog is used
BUGFIX: Agent segfaults when dlopen() to storage library fails
BUGFIX: Infinite loop created when deleting preference, not using extensions
BUGFIX: ATX (agent context) does not hold enough bits for 'flags' variable

3.6.6 is a maintenance release

MAINT: Phased out deprecated Berkeley DB drivers
MAINT: Phased out legacy tools (dspam_corpus, dspam_genaliases)
BUGFIX: When using logfile, write errors result in segfault
BUGFIX: Compiler warnings with sqlite_drv and sqlite3_drv
BUGFIX: MySQLUIDInSignature causes segfault on retrain
BUGFIX: trainPristine preference "off" does not override default
2006-06-05 15:49:05 +00:00
xtraeme
b189699cfe Update to 3.6.5 (provided by Unex in PR pkg/33427):
RELEASE 3.6.5-STABLE

MAINT: PgSQL SQL tuning
MAINT: WebUI aesthetic and functional fixes
MAINT: Added --disable-syslog and --with-logfile= configuration flags
MAINT: Added -t flag for dspam_stats to total stats
MAINT: Markov result used as X-DSPAM-Confidence when Markov used
MAINT: Support for separate read/write servers to be used with mysql_drv
BUGFIX: Spam are quarantined when --deliver=summary
BUGFIX: Admin graphs malformatted when subject contains newline character
BUGFIX: WebUI does not use MAX_COL_LEN
BUGFIX: Output for dspam_admin aggr pref incorrect
BUGFIX: Flat-file preference writes fail on some systems
BUGFIX: Failure to connect to ClamAV causes segmentation fault
BUGFIX: NULL username in system causes segmentation fault
BUGFIX: ClamAV processing and cleanup issues
BUGFIX: Fragment files overwritten on retrain
BUGFIX: Miscellaneous invalid read / segmentation fault bugs
BUGFIX: If TrainingMode not specified in dspam.conf or passed in, segmentation fault
BUGFIX: No output returned when using --deliver=summary with dspamc

RELEASE 3.6.4-STABLE

DOC: Documented user preferences in README
MAINT: Added dspam_train tool, replacing most functions of dspam_corpus
MAINT: Code cleanup and performance improvements
MAINT: Significant improvements in accuracy, specifically reduced false pos.
MAINT: Removed experimental neural collaboration functions
MAINT: Added ClassAlias configuration directive to dspam.conf
MAINT: Added undo option for retraining via WebUI
MAINT: Added storeFragments support to WebUI
MAINT: Added mass-retraining support to WebUI
BUGFIX: DSPAM segfaults when invalid UID specified using UIDInSignature
BUGFIX: No output when using --classify with --client
BUGFIX: dspam_corpus overrides default dspam.conf settings
BUGFIX: Multi-driver builds fail when preferences-extension is not supported
2006-05-06 08:36:10 +00:00
rillig
9fc2d7d281 Removed the superfluous "quotes" and 'quotes' from variables that don't
need them, for example RESTRICTED and SUBST_MESSAGE.*.
2006-04-22 09:22:05 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
jwise
3043f3124b PLIST for sqlite case was out of date -- there are now separate purge
scripts for sqlite 2 and 3.
2006-03-02 18:38:20 +00:00
xtraeme
b36bf56512 ENOTIME to mantain these packages, feel free to pick it up if you are
insterested.
2006-02-12 15:24:14 +00:00
xtraeme
dd42c5be0b Update to 3.6.3:
MAINT: Modest performance improvements
MAINT: Significant improvements in accuracy (from scratch-testing anyway)
BUGFIX: "No TrustedDeliveryAgent" error occurs erroneously in some cases
BUGFIX: ChangeUserOnParse can format incorrectly
BUGFIX: The dspam_logrotate tool does not support multiple mailboxes
BUGFIX: Memory leak in Bayesian Noise Reduction
BUGFIX: LDAP calls fail to close connection to server
BUGFIX: Bayesian database is created even on LDAP user verification failure
2006-01-18 21:26:33 +00:00
xtraeme
eadc9131c8 Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
2006-01-08 18:35:08 +00:00
adrianp
7e723cc81b Fix dspam building on NetBSD-1.6.x
Problem identified by Alan Horn in PR# 32089
2006-01-02 19:59:33 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
xtraeme
7f28c4ad16 Update to 3.6.2:
BUGFIX: Token values incorrectly calculated, cause false positives
BUGFIX: Daemon mode + hash_drv results in crashes without HashConcurrentUser
BUGFIX: Invalid call to calloc() in hash_drv can lead to crashes
2005-12-02 08:10:24 +00:00
adrianp
67edfebd6a Update to dspam 3.6.1 ok'ed xtraeme@
Package changes:

- Add DSPAM_WWWUSER and DSPAM_WWWGROUP as BUILD_DEFS
  (not everyone uses apache)
- Change group ownership on dspam.conf to ${DSPAM_WWWGROUP}
  Pointed out in tech-pkg@ by matt (at) bodgit-n-scarper.com
- Remove patch-ac as that's been applied upstream
- PLIST fixes for css* tools installed with hash driver

From DSPAM RELEASE_NOTES:

BUGFIX: ParseToHeaders can segfault on malformatted To header
BUGFIX: TrackSources does not correctly parse messages when used with QMail
BUGFIX: Missing check for existing strcasestr
BUGFIX: X-DSPAM-Reclassified heading appears blank
BUGFIX: Plused-Detail support does not work with domains
BUGFIX: Hash databases are not 8-byte aligned (do not work with 64-bit systems)
BUGFIX: Certain daemon-mode operations append a trailing period
BUGFIX: DataSource 'document' option causes improper processing
BUGFIX: Segfaults occur on malformed Content-Type header
BUGFIX: History appears blank in dspam.cgi
2005-11-12 16:53:19 +00:00
recht
97d51d7c1a fix typo (missing quote) 2005-10-29 12:36:50 +00:00
adrianp
5666683929 Update to dspam 3.60
ok'ed xtraeme@

From the RELEASE file:
Automatic Whitelisting Improvements
Dynamically Loadable Storage Driver Support
PostgreSQL Performance Enhancements
LDAP Verification
Unified Spam Alias / UID in Signature Support
Domain Based Delivery Hosts
Integrated Clam A/V Support
Markovian Discrimination
Self-Contained Hash Driver
Fallback Domain-Based User Support
Improved, Unified Logging
Activity logging has also been improved
Plused Detail Support
Message Fragments Support
Domain Blocklisting Support
User preferences made case-insensitive
LMTP error codes now include messages from relay host
RBLInoculate option allows RBL'd emails to be quarantined or learned as spam
MySQL and PgSQL object creation scripts updated to improve performance
Added 'date' to quarantine display and sorted most recent at top
Significant code cleanup and audit
Domain-based groups changed from @domain.tld to *@domain.tld
X-DSPAM-Result expanded to support Virus, Blacklisted, and Blocklisted results
DSPAM WebUI now supports history paging
Rewritten documentation for ease of installation
2005-10-20 08:33:13 +00:00
xtraeme
b5b3227200 Apply patch from Jim Bernard:
* dspam can run too early in the boot process: add REQUIRE: servers.
* dspam=YES is always assumed in rc.conf: fixed by using checkyesno $rcvar.

This closes PR pkg/31571.
2005-10-12 20:22:55 +00:00
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