1 |
Summary: Utility to display Apache logs with a top-like interface |
2 |
Name: apachetop |
3 |
Version: 0.12.6 |
4 |
Release: %mkrel 5 |
5 |
License: BSD |
6 |
Group: Monitoring |
7 |
URL: http://www.webta.org/projects/apachetop |
8 |
Source0: http://www.webta.org/apachetop/%name-%version.tar.bz2 |
9 |
# mandrivaize default logfile |
10 |
Patch1: %name-0.12.6-logfile.patch |
11 |
# support logfiles over 2GB (from Debian) |
12 |
Patch2: apachetop-0.12.5-large_logfile.patch |
13 |
# gcc4.1 fixes (from Debian) |
14 |
Patch3: apachetop-0.12.6-gcc41.patch |
15 |
# fix some error |
16 |
Patch4: apachetop-0.12.6-buffer_overflow.patch |
17 |
BuildRequires: ncurses-devel |
18 |
BuildRequires: m4 |
19 |
BuildRequires: pcre-devel |
20 |
BuildRequires: gamin-devel |
21 |
BuildRequires: readline-devel |
22 |
BuildRequires: autoconf2.5 |
23 |
Requires: apache |
24 |
|
25 |
%description |
26 |
ApacheTop watches a log-file generated by Apache (in standard common or |
27 |
combined log-format, although it doesn't (yet) make use of any of the extra |
28 |
fields in combined) and generates human coherent output in real-time. |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
%patch1 -p1 -b .log |
33 |
%patch2 -p1 -b .large |
34 |
%patch3 -p1 -b .gcc41 |
35 |
%patch4 -p0 |
36 |
sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/ configure.ac |
37 |
|
38 |
%build |
39 |
%configure2_5x \ |
40 |
--with-pcre=%_prefix \ |
41 |
--without-adns \ |
42 |
--with-logfile=%{_localstatedir}/log/httpd/access_log |
43 |
|
44 |
%make |
45 |
|
46 |
|
47 |
%install |
48 |
%makeinstall |
49 |
|
50 |
|
51 |
|
52 |
%files |
53 |
%defattr(-,root,root,) |
54 |
%_bindir/* |
55 |
%doc AUTHORS LICENSE README ChangeLog TODO |
56 |
%_mandir/man1/* |
57 |
|