Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2007 12:37:18 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        krion@freebsd.org, Xin LI <delphij@delphij.net>, freebsd-ports@freebsd.org
Subject:   Re: request add db45/db46 support to mail/exim port
Message-ID:  <790a9fff0708111037m1d25e164ma760a286f6d70cb8@mail.gmail.com>
In-Reply-To: <70f41ba20708111013g296134ecw57bf152846718e91@mail.gmail.com>
References:  <70f41ba20708110931i4262c224kd0479290616c4fa8@mail.gmail.com> <46BDEA06.9030503@delphij.net> <70f41ba20708111013g296134ecw57bf152846718e91@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
------=_Part_35181_22845588.1186853838813
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 8/11/07, snowcrash+freebsd <schneecrash+freebsd@gmail.com> wrote:
> hi,
>
> > Sounds great, just one point: I'd prefer seeing that exim would make use
> > of bsd.database.mk.
>
> i /thought/ that use of WITH_BDB_VER/USE_BDB *is* 'making use of'
> bsd.database.mk, wherein,
>
>  ...
>  .if defined(WITH_BDB_VER)
>  . if ${WITH_BDB_VER} == 4
>  USE_BDB=    40
>  . elif ${WITH_BDB_VER} != 1
>  USE_BDB=    ${WITH_BDB_VER}
>  . endif
>  .endif
>  _WANT_BDB_VER=  ${USE_BDB}
>  ...
>
> but, changes in exim port may well be required for 'compliance'.
>
> >   I have Cc'ed maintainer (krion@).
>

Here's the correct code for BDB detection:

.if ${WITH_BDB_VER} == 1
DB_LIBS=
DB_INCLUDES=
SEDLIST+=       -e 's,^(DBMLIB=),\# \1,'
.else
USE_BDB= 40+
INVALID_BDB_VER=        2 3
DB_LIBS=        -L${BDB_LIB_DIR} -l${BDB_LIB_NAME}
DB_INCLUDES=    -I${BDB_INCLUDE_DIR}
.endif

Scot
-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.

------=_Part_35181_22845588.1186853838813
Content-Type: text/x-diff; name="exim.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="exim.patch"
X-Attachment-Id: file0

SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvcG9ydHMvbWFp
bC9leGltL01ha2VmaWxlLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjIyOApkaWZmIC11IC1yMS4y
MjggTWFrZWZpbGUKLS0tIE1ha2VmaWxlCTQgQXVnIDIwMDcgMTE6NDE6MDAgLTAwMDAJMS4yMjgK
KysrIE1ha2VmaWxlCTExIEF1ZyAyMDA3IDE3OjM1OjMzIC0wMDAwCkBAIC0zMjcsMjggKzMyNywx
MSBAQAogREJfTElCUz0KIERCX0lOQ0xVREVTPQogU0VETElTVCs9CS1lICdzLF4oREJNTElCPSks
XCMgXDEsJwotLmVsaWYgKCR7V0lUSF9CREJfVkVSfSA9PSA0KQotREJfTElCUz0JLUwke0xPQ0FM
QkFTRX0vbGliIC1sZGI0Ci1EQl9JTkNMVURFUz0JLUkke0xPQ0FMQkFTRX0vaW5jbHVkZS9kYjQK
LUxJQl9ERVBFTkRTKz0JZGI0LjA6JHtQT1JUU0RJUn0vZGF0YWJhc2VzL2RiNAotLmVsaWYgKCR7
V0lUSF9CREJfVkVSfSA9PSA0MSkKLURCX0xJQlM9CS1MJHtMT0NBTEJBU0V9L2xpYiAtbGRiNDEK
LURCX0lOQ0xVREVTPQktSSR7TE9DQUxCQVNFfS9pbmNsdWRlL2RiNDEKLUxJQl9ERVBFTkRTKz0J
ZGI0MS4xOiR7UE9SVFNESVJ9L2RhdGFiYXNlcy9kYjQxCi0uZWxpZiAoJHtXSVRIX0JEQl9WRVJ9
ID09IDQyKQotREJfTElCUz0JLUwke0xPQ0FMQkFTRX0vbGliIC1sZGItNC4yCi1EQl9JTkNMV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MSVRFX0xJQlNfWFgs
LUwke0xPQ0FMQkFTRX0vbGliIC1sc3FsaXRlMywnIFwKIAkJLWUgJ3MsWFhfU1FMSVRFX0ZMQUdT
X1hYLC1JJHtMT0NBTEJBU0V9L2luY2x1ZGUsJyBcCiAJCS1lICdzLF5cIyAoTE9PS1VQX1NRTElU
RT0pLFwxLCcKLUxJQl9ERVBFTkRTKz0Jc3FsaXRlMy44OiR7UE9SVFNESVJ9L2RhdGFiYXNlcy9z
cWxpdGUzCiAuZWxzZQogU0VETElTVCs9CS1lICdzLFhYX1NRTElURV9MSUJTX1hYLCwnIFwKIAkJ
LWUgJ3MsWFhfU1FMSVRFX0ZMQUdTX1hYLCwnCg==
------=_Part_35181_22845588.1186853838813--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?790a9fff0708111037m1d25e164ma760a286f6d70cb8>