Apache 2.2(and 2.[01] also) can use BerkleyDB 2-4 as a storage data backend. At the moment version of the database is selected with separate switch and contains quite complex logic for finding appropriate libraries and headers. Moreover, it's not always up-to-date with the latest BerkleyDB versions - it took quite a while to add db44 support for example. Also, if port configuration is stored in make.conf or pkgtools.conf it's easy to forget about dependency on DBD in case of upgrade to a newer version, so it's potential source of multiple installations of BerkleyDB in the system, which isn't goot for maintaince. So, to eliminate all that issues I suggest to use more standard USE_BDB knob to select appropriate version of BerkleyDB with all it's benefits, like usage of the highest available version automatically, set up paths and dependencies and global selection of the version to use. Here I propose a patch, that do all this. It was tested in my environment and worked ok. One note - USE_BDB knob doesn't cover usage of legacy db185, so a separate know for it still have to remain.
Responsible Changed From-To: freebsd-ports-bugs->clement Over to maintainer
Responsible Changed From-To: clement->apache apache team
Responsible Changed From-To: apache->pgollucci this one can go in the next round too
State Changed From-To: open->closed Committed. Thanks!