Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2005 10:47:45 GMT
From:      Henri Hennebert <hlh@ciger.be>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/81392: Error in Makefile of security/amavisd-new if using mail/sendmail from port
Message-ID:  <200505231047.j4NAljDs085115@www.freebsd.org>
Resent-Message-ID: <200505231050.j4NAo6sC002186@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         81392
>Category:       ports
>Synopsis:       Error in Makefile of security/amavisd-new if using mail/sendmail from port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 23 10:50:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Henri Hennebert
>Release:        FreeBSD 5.4
>Organization:
CIGER sa
>Environment:
FreeBSD morzine.ciger.be 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Mon May  9 11:20:11 CEST 2005     root@morzine.ciger.be:/usr/obj/usr/src/sys/MORZINE  i386

>Description:
To install amavis-milter if sendmail is not installed as part of the
base system (NO_SENDMAIL=true in /etc/make.conf) and mail/sendmail from
ports is used:

1. You MUST configure mail/sendmail with SENDMAIL_WITH_SHARED_MILTER=yes
   to create /usr/local/lib/libmilter.so

2. You must change Makefile in security/amavisd-new to place the line
   `.include <bsd.port.pre.mk>' before the line checking for libmilter.so.
   
>How-To-Repeat:
      
>Fix:
Apply this patch:

--- Makefile.orig       Mon May 23 12:36:54 2005
+++ Makefile    Mon May 23 12:40:29 2005
@@ -56,6 +56,8 @@
                PGSQL   "PgSQL support"         off \
                LDAP    "LDAP support"          off

+.include <bsd.port.pre.mk>
+
 .if !exists(/usr/lib/libmilter.so) && !exists(${PREFIX}/lib/libmilter.so)
 AMAVIS_NOMILTER="@comment "
 .endif
@@ -79,8 +81,6 @@
                -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
                -e 's,%%PREFIX%%,${PREFIX},g' \
                -e 's,%%RC_SUBR%%,${RC_SUBR},g'
-
-.include <bsd.port.pre.mk>

 .if defined(WITH_MYSQL)
 RUN_DEPENDS+=  ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql

Moreover I think there is a better solution (no more
SENDMAIL_WITH_SHARED_MILTER=yes in the build of mail/sendmail) because
amavis-milter is statically linked against libmilter.a:

--- Makefile.orig       Mon May 23 12:36:54 2005
+++ Makefile    Mon May 23 12:42:36 2005
@@ -56,7 +56,9 @@
                PGSQL   "PgSQL support"         off \
                LDAP    "LDAP support"          off

-.if !exists(/usr/lib/libmilter.so) && !exists(${PREFIX}/lib/libmilter.so)
+.include <bsd.port.pre.mk>
+
+.if !exists(/usr/lib/libmilter.a) && !exists(${PREFIX}/lib/libmilter.a)
 AMAVIS_NOMILTER="@comment "
 .endif

@@ -79,8 +81,6 @@
                -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
                -e 's,%%PREFIX%%,${PREFIX},g' \
                -e 's,%%RC_SUBR%%,${RC_SUBR},g'
-
-.include <bsd.port.pre.mk>

 .if defined(WITH_MYSQL)
 RUN_DEPENDS+=  ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql

Thank you for your time,

Henri
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505231047.j4NAljDs085115>