From bebbde452f7a57c0d45dc832d1466fc7cd7b3fc6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 17 Dec 2014 23:59:13 -0500 Subject: [PATCH] =www-apache/mod_backtrace-2.01: new package. --- www-apache/mod_backtrace/Manifest | 4 +++ .../mod_backtrace/files/10_mod_backtrace.conf | 4 +++ www-apache/mod_backtrace/metadata.xml | 11 ++++++ .../mod_backtrace/mod_backtrace-2.01.ebuild | 36 +++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 www-apache/mod_backtrace/Manifest create mode 100644 www-apache/mod_backtrace/files/10_mod_backtrace.conf create mode 100644 www-apache/mod_backtrace/metadata.xml create mode 100644 www-apache/mod_backtrace/mod_backtrace-2.01.ebuild diff --git a/www-apache/mod_backtrace/Manifest b/www-apache/mod_backtrace/Manifest new file mode 100644 index 0000000..ee01156 --- /dev/null +++ b/www-apache/mod_backtrace/Manifest @@ -0,0 +1,4 @@ +AUX 10_mod_backtrace.conf 113 SHA256 ceb4a1cf7c4d528a58e6d2807851cf2b31c38ab042fe966d21a5b919981a3d5a SHA512 ed2f22ac750411d46508d9f5e740c9c3c32e2eb43c909c0eea743101f6d4213f7a2d3ccded0efdb5e10a148c407fb9f0213a01c5e741b1ee96dc4e5145642a3e WHIRLPOOL 055dc6aa6c6b04147334c9b47be3bbb92b383b45585bf4286408bed88e837853fd2c11262538b484fefcb9e1ccb1c8c64a81c8be8dbacfb9245dfc0e1646e3ae +DIST wku_bt-2.01.zip 933169 SHA256 3033a07b284a67e519e3b2d09a255b9cd8ce5902d3d9971d4cf182dec75c7d27 SHA512 c1bde8a26b395fc5fc66cd83c9282a8c519f34d27bef628ec502cec4245a7d446300178c9c94a5c5c0eb817bb8dd146587607760f9c9e780986d6ec53f03fb4c WHIRLPOOL dc2fa4debac883909f084562ffa0d9ab9e7f60a76bd02ee0054a0258444165f6fa63490bfefeaa03fe476ca9abc1ba93e2ad60858ba3ee4611b227b48e49bf1f +EBUILD mod_backtrace-2.01.ebuild 789 SHA256 568a1926dbc9c71e55fecb4749cffad15f3adf5d7d1f9a30a684fe985b6fe2cb SHA512 002d2e28875f886c2eace76ff07eccdddacd492d765addfcf777ae13eb996af7f99b1a17b71301b337b80abf635b6e29f4fbbc70229b7dd5ae1faaefcf973bac WHIRLPOOL f6ebcd85fc909cc1deb279e0042d923d558ee6e4dcff7fd13f6285243bf27b590ed4bd84536802c18e2614ea627a5d524bce37cb1014f54e2605f93878c0de83 +MISC metadata.xml 344 SHA256 3232d9d7118f9ff5469bbfb74b044375be6761b02abd29e75bd4feb2b412119b SHA512 e906152151402e756419ca2fba90f0fc14fac7bfca691795afd1691ad3c6330d5048a616343268fdb2d4b4b6b2c6249583490d6cf63bd54147e0c9bc1a6f5066 WHIRLPOOL 53210bb748be2f325089e966d0d07e87a5db1b84772adaf23cd433101f9d35cfa838ea39d4eaecaadb2bbc633116b45e7657b8acb7995e52d093149b0afd0b69 diff --git a/www-apache/mod_backtrace/files/10_mod_backtrace.conf b/www-apache/mod_backtrace/files/10_mod_backtrace.conf new file mode 100644 index 0000000..822efd2 --- /dev/null +++ b/www-apache/mod_backtrace/files/10_mod_backtrace.conf @@ -0,0 +1,4 @@ + + LoadModule backtrace_module modules/mod_backtrace.so + EnableExceptionHook On + diff --git a/www-apache/mod_backtrace/metadata.xml b/www-apache/mod_backtrace/metadata.xml new file mode 100644 index 0000000..e4ed96a --- /dev/null +++ b/www-apache/mod_backtrace/metadata.xml @@ -0,0 +1,11 @@ + + + +maintainer-needed@gentoo.org + + + Use sys-libs/libunwind to provide better resolution of + function names. + + + diff --git a/www-apache/mod_backtrace/mod_backtrace-2.01.ebuild b/www-apache/mod_backtrace/mod_backtrace-2.01.ebuild new file mode 100644 index 0000000..05e403b --- /dev/null +++ b/www-apache/mod_backtrace/mod_backtrace-2.01.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit apache-module depend.apache + +DESCRIPTION="Debug segmentation faults in Apache threads" +HOMEPAGE="http://emptyhammock.com/projects/httpd/diag/" +SRC_URI="http://emptyhammock.com/downloads/wku_bt-${PV}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unwind" + +RDEPEND="=www-servers/apache-2*[debug] + unwind? ( sys-libs/libunwind )" +DEPEND="${RDEPEND} + app-arch/unzip" + +APACHE2_MOD_CONF="10_${PN}" +APACHE2_MOD_DEFINE="BACKTRACE" + +need_apache2 + +S="${WORKDIR}/wku_bt-${PV}" + +src_compile() { + APXS2_ARGS="-c ${PN}.c diag.c -ldl" + if use unwind; then + APXS2_ARGS+=" -lunwind -DDIAG_HAVE_LIBUNWIND_BACKTRACE=1" + fi + apache-module_src_compile +} -- 2.44.2