On Sun, Mar 08, 2015 at 02:20:34PM -0400, el kalin wrote:
> i have an apache 2.4 build from prksrc on an netbsd 6.0 and now trying to
> add mod_secure to it. every time i try to add it via pkg_add or make
> install i get:
>
> "A different version of apache-2.2.27 is already installed: apache-2.4.3nb1"
>
> how does that make sense?
The "ap-modsecure" package doesn't support Apache 2.4.x because
"mod_secure" version 1.x doesn't compile with that version of Apache.
As a result it automatically pulls in apache-2.2.27 as a dependence
because apache-2.4.3nb1 cannot be used. But you cannot install those
two apache packages at the same time.
> and how do i get to build the latest mod_secure for the apache version i
> have?
You have to use (or build) the "ap-modsecure2" package which supports
both Apache 2.2.x and 2.4.x.
Kind regards
P.S. The mailing list "pkgsrc-users%NetBSD.org@localhost" might be more
appropriate for this discussion.
--
Matthias Scheler https://zhadum.org.uk/