Группа :: Мониторинг
Пакет: awstats
Главная Изменения Спек Патчи Загрузить Bugs and FR
%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.5
Release: alt0.M24.2
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.tar.gz
Source2: awstats.cron
Source3: awstats.apache
Source4: seamonkey.png
Patch0: awstats-6.2-alt-conf.patch
Patch1: awstats-6.5-alt-perl.patch
Patch2: awstats-ua-seamonkey.diff
# 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
%patch2
%__cp %SOURCE4 wwwroot/icon/browser/seamonkey.png
%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
…
Полный changelog можно просмотреть здесь
%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.5
Release: alt0.M24.2
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.tar.gz
Source2: awstats.cron
Source3: awstats.apache
Source4: seamonkey.png
Patch0: awstats-6.2-alt-conf.patch
Patch1: awstats-6.5-alt-perl.patch
Patch2: awstats-ua-seamonkey.diff
# 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
%patch2
%__cp %SOURCE4 wwwroot/icon/browser/seamonkey.png
%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
…
Полный changelog можно просмотреть здесь