Bug 136151

Summary: [patch] port security/amavisd-new add snmp subagent
Product: Ports & Packages Reporter: Olli Hauer <ohauer>
Component: Individual Port(s)Assignee: Gabor Kovesdan <gabor>
Status: Closed FIXED    
Severity: Affects Only Me CC: ohauer
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch_amavisd-new_2009-06-29
none
amavisd_Makefile.diff none

Description Olli Hauer 2009-06-29 01:10:03 UTC
amavisd-new has now a snmp-subagent.

Since p5-Net-SNMP is required for the agent it is disabled in the default OPTIONS

To use this subagent the following line in snmpd.conf is required.
 master  agentx

With the following example the values can get via snmpwalk
 snmpwalk -v $SNMPVER -c $COMMUNITY $HOSTNAME .1.3.6.1.4.1.15312.2.1

For more information see http://www.ijs.si/software/amavisd/release-notes.txt
 -> NEW FEATURES
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-29 01:10:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Olli Hauer 2009-07-27 19:16:53 UTC
Hi,

additional to the first patch /var/amavis is not replaced by
${AMAVISDIR} in amavisd self.

If someone has not uncommented MYHOME in amavisd.conf, amavisd
fails to start.

This issue is solved with the following patch:

//olli


--- patch-amavisd-new_Makefile begins here ---
--- Makefile
+++ Makefile
@@ -254,6 +254,7 @@
 			${WRKSRC}/helper-progs/config.h.in
 	@${REINPLACE_CMD} -e "s|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|" \
 				-e "s|/usr/bin/perl|${PERL}|" \
+				-e "s|/var/amavis|${AMAVISDIR}|g" \
 			${WRKSRC}/amavisd
 
 .if defined(AMAVIS_NOAMAVIS)
--- patch-amavisd-new_Makefile ends here ---
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-09-12 19:52:07 UTC
gabor       2009-09-12 18:51:59 UTC

  FreeBSD ports repository

  Modified files:
    security/amavisd-new Makefile pkg-plist 
  Added files:
    security/amavisd-new/files amavisd-snmp.sh.in patch-amavisd 
  Log:
  - Add support for SNMP subagent [1]
  - Fix bug sending 2 reject notifications [2]
  
  PR:             ports/136151 [1], ports/137333 [2]
  Submitted by:   Olli Hauer <ohauer@gmx.de>
  More info:      http://www.mail-archive.com/amavis-user@lists.sourceforge.net/msg14060.html [2]
  
  Revision  Changes    Path
  1.73      +17 -7     ports/security/amavisd-new/Makefile
  1.1       +36 -0     ports/security/amavisd-new/files/amavisd-snmp.sh.in (new)
  1.23      +72 -0     ports/security/amavisd-new/files/patch-amavisd (new)
  1.27      +3 -1      ports/security/amavisd-new/pkg-plist
_______________________________________________
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"
Comment 4 Gabor Kovesdan freebsd_committer freebsd_triage 2009-09-12 19:52:25 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 5 Herbert J. Skuhra 2009-09-13 22:52:27 UTC
Hi!

This commit introduces a severe bug:

amavisd.conf is overwritten during 'make install'.

The attached patch fixes the problem.

- Herbert