1 |
juancho |
219078 |
Summary: Utility to display Apache logs with a top-like interface |
2 |
|
|
Name: apachetop |
3 |
|
|
Version: 0.12.6 |
4 |
|
|
Release: %mkrel 1 |
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: libgamin-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 |
|
|
|
37 |
|
|
%build |
38 |
|
|
%configure \ |
39 |
|
|
--with-pcre \ |
40 |
|
|
--without-adns \ |
41 |
|
|
--with-logfile=%{_localstatedir}/log/httpd/access_log |
42 |
|
|
|
43 |
|
|
%make |
44 |
|
|
|
45 |
|
|
|
46 |
|
|
%install |
47 |
|
|
%makeinstall |
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
%files |
52 |
|
|
%defattr(-,root,root,) |
53 |
|
|
%_bindir/* |
54 |
|
|
%doc AUTHORS LICENSE README ChangeLog TODO |
55 |
|
|
%_mandir/man1/* |
56 |
|
|
|