security/clamav-milter fails to compile (preliminary patch included)

Yasuhiro KIMURA yasu at utahime.org
Sat Dec 22 21:50:14 UTC 2018


From: Michael Grimm <trashcan at ellael.org>
Subject: Re: security/clamav-milter fails to compile (preliminary patch included)
Date: Sat, 22 Dec 2018 22:20:04 +0100

> If I do set the option to create the milter interface (sp?) in security/clamav I do run into the same error "Cannot find libmilter".
> 
> I didn't try to build security/clamav without milter support, though. Due to obvious reasons, because I do need the milter support for postfix.

Thank you for replay. Then please try following patch. With it
security/clamav (and security/clamav-milter) should depend on
mail/libmilter only when there isn't sendmail in base system.

Index: Makefile
===================================================================
--- Makefile	(revision 488063)
+++ Makefile	(working copy)
@@ -15,6 +15,10 @@
 LIB_DEPENDS=	libltdl.so:devel/libltdl \
 		libcurl.so:ftp/curl
 
+.if !exists(/usr/lib/libmilter.so)
+LIB_DEPENDS+=	libmilter.so:mail/libmilter
+.endif
+
 USES=		cpe gmake gnome libtool ncurses pathfix pkgconfig ssl
 USE_RC_SUBR=	clamav-clamd clamav-freshclam
 USE_LDCONFIG=	yes

Best Regards.

---
Yasuhiro KIMURA


More information about the freebsd-ports mailing list