From owner-freebsd-ports@freebsd.org Sat Dec 22 21:50:14 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9095133D476 for ; Sat, 22 Dec 2018 21:50:13 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7083C7361F for ; Sat, 22 Dec 2018 21:50:12 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 1A68423B6C; Sun, 23 Dec 2018 06:50:07 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 97B522D77E; Sun, 23 Dec 2018 06:50:06 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 0544F2D77D; Sun, 23 Dec 2018 06:50:02 +0900 (JST) Date: Sun, 23 Dec 2018 06:48:39 +0900 (JST) Message-Id: <20181223.064839.1749206782508827440.yasu@utahime.org> To: freebsd-ports@FreeBSD.org Subject: Re: security/clamav-milter fails to compile (preliminary patch included) From: Yasuhiro KIMURA In-Reply-To: References: <20181223.060942.605982698335285185.yasu@utahime.org> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 7083C7361F X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2018 21:50:14 -0000 From: Michael Grimm 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