summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron>2013-01-12 15:58:53 +0000
committertron <tron>2013-01-12 15:58:53 +0000
commit5bb34684e2d3651f8468585cb99281560105a81c (patch)
treed9809ff14538f4a059f04cd4014f67930eba04fb /mail
parent7f2c98040717ae9de801b2b5df3fd6b95594653f (diff)
downloadpkgsrc-5bb34684e2d3651f8468585cb99281560105a81c.tar.gz
Attempt to fix build problems under Solaris (11 at least) if the "drac"
option is used. Problem reported by Richard Palo in PR pkg/47420.
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-greylist/options.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/milter-greylist/options.mk b/mail/milter-greylist/options.mk
index 7bc06f7dc4a..5c66a829434 100644
--- a/mail/milter-greylist/options.mk
+++ b/mail/milter-greylist/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2009/09/22 16:52:02 tron Exp $
+# $NetBSD: options.mk,v 1.10 2013/01/12 15:58:53 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.milter-greylist
PKG_OPTIONS_REQUIRED_GROUPS= mta
@@ -33,6 +33,18 @@ CONFIGURE_ARGS+= --disable-drac
DRACD_DB?= /etc/mail/dracd.db
CONFIGURE_ARGS+= --enable-drac --with-drac-db=${DRACD_DB}
+
+USE_DB185= yes
+. if ${OPSYS} == "SunOS"
+BDB_ACCEPTED= db2 db3 db4 db5
+BDB185_DEFAULT= ${BDB_DEFAULT}
+. endif
+. include "../../mk/bdb.buildlink3.mk"
+. if ${BDB_TYPE} != "db1"
+CPPFLAGS+= -DUSE_DB185_EMULATION
+. endif
+LIBS+= ${BDB_LIBS}
+
.endif
###