The recent source update to MailScanner uses the mktemp command without any options. This works OK on linux, but the FreeBSD version needs to be supplied an option, or else you get an error like this when running mailscanner --lint MailScanner.conf says "Virus Scanners = clamd" usage: mktemp [-d] [-q] [-t prefix] [-u] template ... mktemp [-d] [-q] [-u] -t prefix /usr/local/libexec/MailScanner/bitdefender-wrapper: Cannot create temporary file usage: mktemp [-d] [-q] [-t prefix] [-u] template ... mktemp [-d] [-q] [-u] -t prefix /usr/local/libexec/MailScanner/clamav-wrapper: Cannot make name for temporary dir Note: on my system with postfix, running mailscanner --lint without this fix besides producing the above error, clobbers the permissions on the quarantine directories causing a lot of problems. Fix: Apply attached patch file. Patch attached with submission follows: How-To-Repeat: Run mailscanner --lint and check the output.
Class Changed From-To: sw-bug->maintainer-update Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->crees crees@ wants this port PRs (via the GNATS Auto Assign Tool)
State Changed From-To: open->feedback Hi Kevin! How about using sed instead? Much less space needed than patches :) http://www.bayofrum.net/~crees/patches/mailscanner-mktempfix.diff
OK, a slightly modified version of Chris' patch (I think there was a misplaced "\") Seems to work fine in my testing.
State Changed From-To: feedback->open You're quite correct.... I seem to fail at basic things when hacking MailScanner :(
State Changed From-To: open->closed Committed. Thanks!
crees 2012-04-18 07:30:16 UTC FreeBSD ports repository Modified files: mail/mailscanner Makefile mail/mailscanner/files CHANGES.port Log: Fix mktemp use (GNUism optional -t part for directory) PR: ports/167000 Submitted by: Kevin Kobb <kkobb@skylinecorp.com> (maintainer) Revision Changes Path 1.102 +10 -2 ports/mail/mailscanner/Makefile 1.30 +10 -2 ports/mail/mailscanner/files/CHANGES.port _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"