[packages/apache-mod_whatkilledus] - up to 2.00

arekm arekm at pld-linux.org
Wed Apr 10 11:39:54 CEST 2013


commit 6bfb3e60893b9eb24b34c45bd9f0698a0409e8ea
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 10 11:39:51 2013 +0200

    - up to 2.00

 apache-mod_whatkilledus.spec | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/apache-mod_whatkilledus.spec b/apache-mod_whatkilledus.spec
index 117d450..ed575d4 100644
--- a/apache-mod_whatkilledus.spec
+++ b/apache-mod_whatkilledus.spec
@@ -3,14 +3,15 @@
 Summary:	Apache module: knows what a thread was handling in case the thread segfaults
 Summary(pl.UTF-8):	Moduł apache wiedzący, co obsługiwał wątek w przypadku naruszenia ochrony pamięci
 Name:		apache-mod_%{mod_name}
-Version:	1.0
-Release:	1.20090203.2
+Version:	2.00
+Release:	1
 License:	Apache v2.0
 Group:		Networking/Daemons/HTTP
-Source0:	http://people.apache.org/~trawick/mod_whatkilledus.c
-# Source0-md5:	ac4150a2d8b41bfd087de8d237b24378
+Source0:	http://emptyhammock.com/downloads/wku_bt-2.00.zip
+# Source0-md5:	acc3f8497b0aabaad5c24d8d34d53ff1
 Source1:	http://mirrors.ludost.net/gentoo-portage/www-apache/mod_whatkilledus/files/gen_test_char.c
 # Source1-md5:	7c4e734d1afc695a5be53581998f3700
+URL:		http://emptyhammock.com/projects/httpd/diag/
 BuildRequires:	%{apxs}
 BuildRequires:	apache-devel >= 2.0
 BuildRequires:	rpmbuild(macros) >= 1.268
@@ -30,13 +31,14 @@ połączenia, pozwalające dowiedzieć się, co obsługiwał wątek w
 sytuacji, kiedy spowodował naruszenie ochrony pamięci.
 
 %prep
-%setup -q -c -T
-install %{SOURCE0} .
+%setup -q -n wku_bt-%{version}
 
 %build
-%{__cc} $(%{_bindir}/apr-1-config --includes --cppflags) %{SOURCE1} -o gen_test_char
-./gen_test_char > test_char.h
-%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
+%{apxs} -c mod_%{mod_name}.c diag.c \
+%if "%{__lib}" == "lib64"
+	-DDIAG_BITS_64=1 \
+%endif
+	-o mod_%{mod_name}.la
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,7 +50,7 @@ touch $RPM_BUILD_ROOT/var/log/httpd/whatkilledus_log
 cat > $RPM_BUILD_ROOT%{_sysconfdir}/68_mod_%{mod_name}.conf << 'EOF'
 LoadModule %{mod_name}_module modules/mod_%{mod_name}.so
 EnableExceptionHook On
-WhatKilledUsLog /var/log/httpd/whatkilledus_log
+# WKUObscureInRequest On
 EOF
 
 %clean
@@ -63,8 +65,12 @@ if [ "$1" = "0" ]; then
 	%service -q httpd restart
 fi
 
+%triggerpostun -- %{name} < 2.00
+sed -i -e 's#^WhatKilledUsLog.*##g' %{_sysconfdir}/68_mod_%{mod_name}.conf
+
 %files
 %defattr(644,root,root,755)
+%doc CHANGES.txt NOTICE.txt 
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
 # append by webserver
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_whatkilledus.git/commitdiff/6bfb3e60893b9eb24b34c45bd9f0698a0409e8ea



More information about the pld-cvs-commit mailing list