Force use of pkgsrc libmilter, not builtin. If the builtin version is 8.12
(as with NetBSD 2, for instance), but pkgsrc sendmail 8.13 is installed, then clamav will attempt to use the 8.13 milter API, and fail linking. (It probably should use an autoconf symbol test instead.) This change forces an API at least new enough to match the latest version offered via pkgsrc; and since libmilter is a static library, it still ends up with no runtime DEPENDS. No PKGREVISION bump required, as milter is a non-default option.
This commit is contained in:
parent
e049e63bad
commit
3fd560be8d
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.41 2005/06/24 05:58:42 grant Exp $
|
||||
# $NetBSD: Makefile,v 1.42 2005/07/14 02:26:09 tv Exp $
|
||||
|
||||
DISTNAME= clamav-${CLAMAV_VERSION}
|
||||
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
|
||||
|
@ -61,6 +61,10 @@ PKG_SUGGESTED_OPTIONS= curl
|
|||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mmilter)
|
||||
# force use of pkgsrc version of libmilter -- clamav uses the sendmail binary
|
||||
# to check API compatibility(!), so it must build with as new a version of
|
||||
# libmilter as pkgsrc is capable of providing
|
||||
USE_BUILTIN.libmilter= no
|
||||
. include "../../mail/libmilter/buildlink3.mk"
|
||||
CONFIGURE_ARGS+= --enable-milter
|
||||
PLIST_SUBST+= MILTER=
|
||||
|
|
Loading…
Reference in a new issue