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. Fix: Apply this patch: +.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: -.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--9SLdVfGy41iRmWEKzgFeoXobwY9sELSszspDO53PnJKnkUSm Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- 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
State Changed From-To: open->feedback Forward PR to maintainer.
Responsible Changed From-To: freebsd-ports-bugs->flz Grab.
Dear maintainer, could you review the following PR ? > http://www.freebsd.org/cgi/query-pr.cgi?pr=81392 -- Florent Thoumie flz@xbsd.org
> Dear maintainer, could you review the following PR ? >> http://www.freebsd.org/cgi/query-pr.cgi?pr=81392 I agree that the second solution in the patch (verify that /usr/lib/libmilter.a exists instead of libmilter.so) is the best one, please commit.
State Changed From-To: feedback->closed Committed, thanks!