Package apachetop: Specfile

%def_without fam

Name: apachetop
Version: 0.12.6
Release: alt2

Epoch: 20060605

Summary: ApacheTop is top-like utility for Apache 
License: BSD
Group: Monitoring

Url: http://clueful.shagged.org/apachetop
Source: %url/files/%name-%version.tar.gz
Patch0: http://security.debian.org/pool/updates/main/a/apachetop/apachetop_0.12.5-1sarge1.diff.gz
Patch1: apachetop-0.12.6-gcc41.patch

Summary(ru_RU.KOI8-R): ApacheTop -- top'\xcf\xcf\xc2\xd2\xc1\xda\xce\xc1\xd1 \xd5\xd4\xc9\xcc\xc9\xd4\xc1 \xc4\xcc\xd1 Apache
Summary(uk_UA.KOI8-U): ApacheTop -- top'\xcf\xcf\xc2\xd2\xc1\xda\xce\xc1 \xd5\xd4\xc9̦\xd4\xc1 \xc4\xcc\xd1 Apache

# Automatically added by buildreq on Mon Jun 05 2006
BuildRequires: gcc-c++ libadns-devel libncurses-devel libpcre-devel libreadline-devel

%if_with fam
BuildRequires: libgamin-devel
%endif

%description
A curses-based top-like display for Apache information, including requests per
second, bytes per second, most popular URLs, etc.

%description -l ru_RU.KOI8-R
\xeb\xcf\xce\xd3\xcf\xcc\xd8\xce\xc1\xd1 \xd5\xd4\xc9\xcc\xc9\xd4\xc1 \xc4\xcc\xd1 \xcd\xcf\xce\xc9\xd4\xcf\xd2\xc9\xce\xc7\xc1 web-\xd3\xc5\xd2\xd7\xc5\xd2\xc1 Apache, \xd0\xcf\xcb\xc1\xda\xd9\xd7\xc1\xc0\xdd\xc1\xd1 \xcb\xcf\xcc\xc9\xde\xc5\xd3\xd4\xd7\xcf
\xda\xc1\xd0\xd2\xcf\xd3\xcf\xd7/\xc2\xc1\xca\xd4 \xd7 \xd3\xc5\xcb\xd5\xce\xc4\xd5, \xce\xc1\xc9\xc2\xcf\xcc\xc5\xc5 \xd0\xcf\xd0\xd5\xcc\xd1\xd2\xce\xd9\xc5 \xc1\xc4\xd2\xc5\xd3\xc1 \xc9 \xd4.\xd0.

%description -l uk_UA.KOI8-U
\xeb\xcf\xce\xd3\xcf\xcc\xd8\xce\xc1 \xd5\xd4\xc9̦\xd4\xc1 \xc4\xcc\xd1 \xcd\xcfΦ\xd4\xcf\xd2\xc9\xce\xc7\xd5 web-\xd3\xc5\xd2\xd7\xc5\xd2\xd5 Apache, \xdd\xcf \xd0\xcf\xcb\xc1\xdaդ ˦\xcc\xd8˦\xd3\xd4\xd8
\xda\xc1\xd0\xc9Ԧ\xd7/\xc2\xc1\xca\xd4 \xd5 \xd3\xc5\xcb\xd5\xce\xc4\xd5, \xce\xc1\xca¦\xcc\xd8\xdb \xd0\xcf\xd0\xd5\xcc\xd1\xd2Φ \xc1\xc4\xd2\xc5\xd3\xc9 \xd4\xc1 \xa6\xce.

%prep
%setup -q
%patch1 -b .gcc41

%build
subst 's,pcre.h,pcre/pcre.h,g' src/apachetop.h configure
%configure --with-logfile=%_logdir/httpd/access_log --without-fam
%make_build

%install
%makeinstall

%files
%_bindir/*
%doc AUTHORS ChangeLog LICENSE NEWS README TODO
%doc %_man1dir/*

# TODO:
# - some wrapper to point at /var/log/httpd/access_log ?
#   (until proper multi-host infrastructure is in place)

%changelog
* Tue Feb 05 2019 Michael Shigorin <mike@altlinux.org> 20060605:0.12.6-alt2
- rebuilt against readline7

* Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 20060605:0.12.6-alt1.qa1
- NMU: rebuilt for debuginfo.

* Mon Jun 05 2006 Michael Shigorin <mike@altlinux.org> 20060605:0.12.6-alt1
- 0.12.6
- applied gcc41 patch from Gentoo
- removed separate CAN-2005-2660 patch (fixed upstream)
- noticed --with-fam; after some consideration left disabled by default

* Wed Oct 05 2005 Michael Shigorin <mike@altlinux.org> 20051005:0.12.5-alt2
- applied Debian patch to fix CAN-2005-2660:
  Eric Romang discovered an insecurely created temporary file in
  apachetop, a realtime monitoring tool for the Apache webserver that
  could be exploited with a symlink attack to overwrite arbitrary files
  with the user id that runs apachetop.

* Wed Jan 19 2005 Alex Murygin <murygin@altlinux.ru> 20050119:0.12.5-alt1
- new version
- moved apachetop from sbin to bin (due to upstream)

* Thu Nov 11 2004 Alex Murygin <murygin@altlinux.ru> 20041111:0.12-alt1
- new version
- fixed for pcre
- configured with adns and pcre support
- configured without fam support
- removed README.ALT, because it looks for correct log
- added NEWS to docs

* Tue Oct 14 2003 Michael Shigorin <mike@altlinux.ru> 20031014:0.7-alt1
- 0.7 (code cleanup)

* Mon Oct 06 2003 Michael Shigorin <mike@altlinux.ru> 20031006:0.6-alt1
- should fix "cpu-hungry bug" as reported against 0.4
- spec cleanup due to upstream switch to autotools
- binary location changed from %_bindir to %_sbindir (upstream install)
- added README.ALT with sample command
- updated %%files

* Mon Sep 29 2003 Michael Shigorin <mike@altlinux.ru> 20030929:0.4-alt1
- built for ALT Linux