Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2018 06:48:39 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: security/clamav-milter fails to compile (preliminary patch included)
Message-ID:  <20181223.064839.1749206782508827440.yasu@utahime.org>
In-Reply-To: <E3A96E14-75EE-4773-A24E-226B99F77540@ellael.org>
References:  <F996759A-B68C-423C-BB68-488BB8762F34@ellael.org> <20181223.060942.605982698335285185.yasu@utahime.org> <E3A96E14-75EE-4773-A24E-226B99F77540@ellael.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Michael Grimm <trashcan@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



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