1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit apache-module depend.apache
9 DESCRIPTION="Debug segmentation faults in Apache threads"
10 HOMEPAGE="http://emptyhammock.com/projects/httpd/diag/"
11 SRC_URI="http://emptyhammock.com/downloads/wku_bt-${PV}.zip"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="=www-servers/apache-2*[debug]
19 unwind? ( sys-libs/libunwind )"
23 APACHE2_MOD_CONF="10_${PN}"
24 APACHE2_MOD_DEFINE="BACKTRACE"
28 S="${WORKDIR}/wku_bt-${PV}"
31 APXS2_ARGS="-c ${PN}.c diag.c -ldl"
33 APXS2_ARGS+=" -lunwind -DDIAG_HAVE_LIBUNWIND_BACKTRACE=1"
35 apache-module_src_compile