summaryrefslogtreecommitdiff
path: root/security/clamav/options.mk
diff options
context:
space:
mode:
authorkefren <kefren@pkgsrc.org>2010-12-24 07:11:05 +0000
committerkefren <kefren@pkgsrc.org>2010-12-24 07:11:05 +0000
commit714210b407efe799c5d242c305e72936c3c0cba1 (patch)
tree3f1d0bae663209e5fff710c304060ad0bd106ba4 /security/clamav/options.mk
parenta7783b57190fdd71ce8057e1e210cd11501da7d3 (diff)
downloadpkgsrc-714210b407efe799c5d242c305e72936c3c0cba1.tar.gz
Move clamav into security/. No objections on tech-pkg@
Part of PR/32554
Diffstat (limited to 'security/clamav/options.mk')
-rw-r--r--security/clamav/options.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/security/clamav/options.mk b/security/clamav/options.mk
new file mode 100644
index 00000000000..b9098ab3bbe
--- /dev/null
+++ b/security/clamav/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD: options.mk,v 1.1.1.1 2010/12/24 07:11:05 kefren Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
+PKG_SUPPORTED_OPTIONS= milter clamav-experimental
+
+.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_SRC+= ${PKGDIR}/PLIST.milter
+.else
+CONFIGURE_ARGS+= --disable-milter
+# XXX --disable-milter doesn't work as expected, so we need this
+CONFIGURE_ENV+= ac_cv_header_libmilter_mfapi_h=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mclamav-experimental)
+CONFIGURE_ARGS+= --enable-experimental
+.endif