Bug 200036 - security/amavisd-new: clamd socket file incorrect
Summary: security/amavisd-new: clamd socket file incorrect
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-07 20:22 UTC by Bernard Spil
Modified: 2016-12-13 16:11 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gabor)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Spil freebsd_committer 2015-05-07 20:22:24 UTC

    
Comment 1 Bernard Spil freebsd_committer 2015-05-07 20:26:15 UTC
After a fresh install of security/amavisd-new the daemon can be started but not stopped/restarted.

from ${LOCALBASE}/etc/rc.d/amavisd:
pidfile=${amavisd_pidfile-"/var/run/amavisd.pid"}

from ${LOCALBASE}/etc/amavisd.conf
$MYHOME = '/var/amavis'
$pid_file  = "$MYHOME/var/amavisd.pid";
(both commented out, defaults?)
Comment 2 Bernard Spil freebsd_committer 2015-05-07 20:39:46 UTC
Additionally in amavisd.conf

  \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock.sock"],

Leading to failure.
Comment 3 Bernard Spil freebsd_committer 2015-05-07 20:43:01 UTC
Please ignore the pid-file part, that I managed to do to myself. Will check later, /var/amavis/var/run/amavisd.pid seems awkward as well
Comment 4 commit-hook freebsd_committer 2016-12-13 14:53:07 UTC
A commit references this bug:

Author: flo
Date: Tue Dec 13 14:52:24 UTC 2016
New revision: 428490
URL: https://svnweb.freebsd.org/changeset/ports/428490

Log:
  - fix clamd socket file location in default config file [1]
  - prevent error messages from amavisd-p0fanalyzer rc script [2]
  - add a patch to fix dkim siging that was broken in 2.11.0 [3]

  PR:		200036 [1], 209038 [2], 214202 [3]
  Submitted by:	barnerd [1]
  		Miroslav Lachman <000.fbsd@quip.cz> [2]
  		ari@stonepile.fi [3]

Changes:
  head/security/amavisd-new/Makefile
  head/security/amavisd-new/files/amavis-p0fanalyzer.in
  head/security/amavisd-new/files/patch-amavisd
Comment 5 Florian Smeets freebsd_committer 2016-12-13 16:11:54 UTC
Committed. Thanks.