Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37569509
en ru br
ALT Linux repositórios
S:7.9-alt0.2
5.0: 6.9-alt0.b2008.11.30
4.1: 6.9-alt0.0.b2008.08.05.M41.1
4.0: 6.9-alt0.b2008.11.30.M40.1
3.0: 6.4-alt1

Outros repositórios

Group :: Monitoramento
RPM: awstats

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define apache %_sysconfdir/httpd
%define apache_conf %apache/conf
%define apache_addon %apache_conf/addon-modules
%define awstats_user awstats
%define awstats_group apache
%define awstats_home %_localstatedir/%name

Name: awstats
Version: 6.4
Release: alt1

Summary: Real-time logfile analyzer to get advanced web statistics
Summary(ru_RU.KOI8-R): áÎÁÌÉÚÁÔÏÒ ÌÏÇÏ× Web-ÓÅÒ×ÅÒÁ × ÒÅÖÉÍÅ ÒÅÁÌØÎÏÇÏ ×ÒÅÍÅÎÉ
License: GPL
Group: Monitoring
Url: http://awstats.sourceforge.net
BuildArch: noarch
Requires: apache

Source: %name-%version.tgz
Source2: awstats.cron
Source3: awstats.apache
Patch0: awstats-6.2-alt-conf.patch
Patch1: awstats-6.4-alt-perl.patch

# Automatically added by buildreq on Wed Oct 22 2003 (-bi)

BuildRequires: perl-HTML-Parser perl-HTML-Tagset perl-URI perl-libwww-perl

%description
AWStats is a short for Advanced Web Statistics. It's a free tool that generates
advanced web (but also ftp, syslog or mail) server access statistics
graphically. This log analyzer works as a CGI or from command line and shows
you all possible information your log contains, in few graphical web pages. It
uses a partial information file to be able to process large log files, often
and quickly. It can analyze log files from IIS (W3C log format), Apache log
files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar and
most of all web, proxy, wap, streaming servers (and even syslog, ftp servers or
mail logs).

%description -l ru_RU.KOI8-R
AWStats ÜÔÏ ÓÏËÒÁÝÅÎÉÅ ÏÔ Advanced Web Statistics (ÒÁÓÛÉÒÅÎÁÑ ÷ÅÂ-ÓÔÁÔÉÓÔÉËÁ).
üÔÏ ÂÅÓÐÌÁÔÎÙÊ ÉÎÓÔÒÕÍÅÎÔ ÄÌÑ ÇÅÎÅÒÁÃÉÉ ÒÁÓÛÉÒÅÎÏÊ ÓÔÁÔÉÓÔÉËÉ ÇÒÁÆÉËÏ× Ï ÒÁÂÏÔÅ
http (Á ÔÁË ÖÅ ftp, syslog ÉÌÉ mail) ÓÅÒ×ÉÓÏ×. äÁÎÎÙÊ ÁÎÁÌÉÚÁÔÏÒ ÒÁÂÏÔÁÅÔ ËÁË
ÉÚ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ ÔÁË É × ×ÉÄÅ CGI-ÓËÒÉÐÔÁ.

%package docs
Summary: AWStats documentation set
Group: Monitoring

%description docs
AWStats is a short for Advanced Web Statistics. It's a free tool that generates
advanced web (but also ftp, syslog or mail) server access statistics
graphically. This log analyzer works as a CGI or from command line and shows
you all possible information your log contains, in few graphical web pages. It
uses a partial information file to be able to process large log files, often
and quickly. It can analyze log files from IIS (W3C log format), Apache log
files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar and
most of all web, proxy, wap, streaming servers (and even syslog, ftp servers or
mail logs).

%prep
%setup -q
%patch0
%patch1

%build

%install
mkdir -p $RPM_BUILD_ROOT%awstats_home
mkdir -p $RPM_BUILD_ROOT%_datadir/%name
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/{%name,cron.d}
mkdir -p $RPM_BUILD_ROOT%apache_addon

%__install -m644 $RPM_BUILD_DIR/%name-%version/wwwroot/cgi-bin/awstats.model.conf \
$RPM_BUILD_ROOT/%_sysconfdir/%name/awstats.model.conf.tmpl

%__install -m755 %SOURCE2 $RPM_BUILD_ROOT/%_sysconfdir/cron.d/%name
%__install -m644 %SOURCE3 $RPM_BUILD_ROOT/%apache_addon/%name.conf

%__cp -r $RPM_BUILD_DIR/%name-%version/{tools,wwwroot} \
$RPM_BUILD_ROOT%_datadir/%name/

find $RPM_BUILD_ROOT%_datadir/%name -type f -a ! -name \*.pl | xargs chmod 0644
find $RPM_BUILD_ROOT%_datadir/%name -name \*.pl | xargs chmod 0755

# Excluded for requirements of commercial product

##%__rm $RPM_BUILD_ROOT%_datadir/%name/wwwroot/cgi-bin/plugins/geoip.pm
# Remove configs
%__rm $RPM_BUILD_ROOT%_datadir/%name/wwwroot/cgi-bin/*.conf
# Remove old httpd_conf example
%__rm $RPM_BUILD_ROOT%_datadir/%name/tools/httpd_conf

%pre
/usr/sbin/useradd -g %awstats_group -c 'WWW server logs analyzer' \
-d %awstats_home -s '/dev/null' -r %awstats_user 2>/dev/null || :
/usr/sbin/usermod -g %awstats_group %awstats_user

%files
%_sysconfdir/cron.d/%name
%_sysconfdir/%name/
%_datadir/%name/
%config(noreplace) %apache_addon/%name.conf
%dir %attr(751,%awstats_user,%awstats_group) %awstats_home

%files docs
%doc README.TXT docs

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009