# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=apache-mod-backtrace
pkgver=0
pkgrel=2
pkgdesc="A module which uses system functions to format a backtrace to show what code did the dirty deed."
url="http://people.apache.org/~trawick/exception_hook.html"
arch="all"
license="ASL 2.0"
depends="apache2"
makedepends="apache2-dev apr-dev autoconf"
install=""
subpackages=""
source="http://people.apache.org/~trawick/mod_backtrace.c
	configure.in
	Makefile.in"

build() {
	cd "$srcdir"
	autoconf
	./configure
	make DESTDIR="$pkgdir" || return 1
}

package() {
	cd "$srcdir"
	install -D -m755 "$srcdir"/.libs/mod_backtrace.so "$pkgdir"/usr/lib/apache2/mod_backtrace.so
}

md5sums="6535f86200e759722d5145a1f29ef966  mod_backtrace.c
623409fd18dea63d6da509f2818491ef  configure.in
e796e84b98ad73f2420ad8ef6fc5c01b  Makefile.in"
sha256sums="285d38fb1ccb2824c1194e8951846d2660a64747c8b10a3f238e0d62beb6e87c  mod_backtrace.c
a679a358e0bffc448cc9250081a38ff10c15e045e2be8abdd5d97d2c87def9a8  configure.in
a6856d67302d79a9d85881a49a0c9119e070b3ebedd4e8d814fa7e045e84c5d6  Makefile.in"
sha512sums="ac8fff0c531fc46f6e6eba32b7eeaaf0fc3945927bca4e7c822f268d2132a1c3521ccc3b3593cb4ee6bc4d8c531c536fbc6c8c2c4a034213267d40f865774efc  mod_backtrace.c
bd21dc9c2b2c176478a47dc47bb6eaf1d2348dfbd2ffcb689605aa8f9270ebfd623a9dac1b30b27c3622bf025e74233a58096b9f21c8f31147e90009dd5031d3  configure.in
2805d1ad2efb0c82a54aa53fd6fb999c5d332909af7a97da8cc47a36d539dfa8dbfca94165cd78dde85aef88db437516f65ed04078dcd1de2e71608a6790ed5c  Makefile.in"