Репозитории ALT
S: | 7.9-alt0.2 |
5.1: | 6.9-alt0.b2008.11.30.M51.1 |
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 |
Другие репозитории
Upstream: | 6.7 |
Группа :: Мониторинг
Пакет: awstats
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: awstats
Version: 6.9
Release: alt0.0.b2008.08.05.M41.1
%define apache_addon %_sysconfdir/httpd/conf/addon-modules.d
%define awstats_user awstats
%define awstats_group awstats
%define apache_group apache
%define awstats_home %_localstatedir/%name
Summary: Real-time logfile analyzer to get advanced web statistics
Summary(ru_RU.KOI8-R): Анализатор логов Web-сервера в режиме реального времени
License: GPL
Group: Monitoring
Packager: Igor Muratov (ALT Linux Team) <migor at altlinux.org>
Url: http://awstats.sourceforge.net
BuildArch: noarch
Requires: webserver
Source: %name-%version.tar.gz
Source2: awstats.cron
Source3: awstats.apache
Patch0: awstats-6.9-alt-conf.patch
Patch1: awstats-6.9-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
BuildRequires(pre): dos2unix
Requires: perl-Encode
%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 -p2
%patch1 -p2
for dir in tools wwwroot/{cgi-bin,classes/src,css,js}; do
find "$dir" -type f -exec dos2unix -U {} \;
done
%build
%install
mkdir -p %buildroot%awstats_home
mkdir -p %buildroot%_datadir/%name
mkdir -p %buildroot%_sysconfdir/{%name,cron.d}
mkdir -p %buildroot%apache_addon
install -m644 $RPM_BUILD_DIR/%name-%version/wwwroot/cgi-bin/awstats.model.conf \
%buildroot/%_sysconfdir/%name/awstats.model.conf.tmpl
install -m644 %SOURCE2 %buildroot/%_sysconfdir/cron.d/%name
install -m644 %SOURCE3 %buildroot/%apache_addon/%name.conf
cp -r $RPM_BUILD_DIR/%name-%version/{tools,wwwroot} \
%buildroot%_datadir/%name/
find %buildroot%_datadir/%name -type f -a ! -name \*.pl | xargs chmod 0644
find %buildroot%_datadir/%name -name \*.pl | xargs chmod 0755
# Excluded for requirements of commercial product
##rm %buildroot%_datadir/%name/wwwroot/cgi-bin/plugins/geoip.pm
# Remove broken example plugin
rm %buildroot%_datadir/%name/wwwroot/cgi-bin/plugins/example/example.pm
# Remove configs
rm %buildroot%_datadir/%name/wwwroot/cgi-bin/*.conf
# Remove old httpd_conf example
rm %buildroot%_datadir/%name/tools/httpd_conf
%pre
/usr/sbin/groupadd -r %awstats_group
/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 -G %apache_group %awstats_user
%files
%config(noreplace) %_sysconfdir/cron.d/%name
%_sysconfdir/%name/
%_datadir/%name/
%config(noreplace) %apache_addon/%name.conf
%dir %attr(1775,root,%awstats_group) %awstats_home
%files docs
%doc README.TXT docs
%changelog
…
Полный changelog можно просмотреть здесь
Version: 6.9
Release: alt0.0.b2008.08.05.M41.1
%define apache_addon %_sysconfdir/httpd/conf/addon-modules.d
%define awstats_user awstats
%define awstats_group awstats
%define apache_group apache
%define awstats_home %_localstatedir/%name
Summary: Real-time logfile analyzer to get advanced web statistics
Summary(ru_RU.KOI8-R): Анализатор логов Web-сервера в режиме реального времени
License: GPL
Group: Monitoring
Packager: Igor Muratov (ALT Linux Team) <migor at altlinux.org>
Url: http://awstats.sourceforge.net
BuildArch: noarch
Requires: webserver
Source: %name-%version.tar.gz
Source2: awstats.cron
Source3: awstats.apache
Patch0: awstats-6.9-alt-conf.patch
Patch1: awstats-6.9-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
BuildRequires(pre): dos2unix
Requires: perl-Encode
%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 -p2
%patch1 -p2
for dir in tools wwwroot/{cgi-bin,classes/src,css,js}; do
find "$dir" -type f -exec dos2unix -U {} \;
done
%build
%install
mkdir -p %buildroot%awstats_home
mkdir -p %buildroot%_datadir/%name
mkdir -p %buildroot%_sysconfdir/{%name,cron.d}
mkdir -p %buildroot%apache_addon
install -m644 $RPM_BUILD_DIR/%name-%version/wwwroot/cgi-bin/awstats.model.conf \
%buildroot/%_sysconfdir/%name/awstats.model.conf.tmpl
install -m644 %SOURCE2 %buildroot/%_sysconfdir/cron.d/%name
install -m644 %SOURCE3 %buildroot/%apache_addon/%name.conf
cp -r $RPM_BUILD_DIR/%name-%version/{tools,wwwroot} \
%buildroot%_datadir/%name/
find %buildroot%_datadir/%name -type f -a ! -name \*.pl | xargs chmod 0644
find %buildroot%_datadir/%name -name \*.pl | xargs chmod 0755
# Excluded for requirements of commercial product
##rm %buildroot%_datadir/%name/wwwroot/cgi-bin/plugins/geoip.pm
# Remove broken example plugin
rm %buildroot%_datadir/%name/wwwroot/cgi-bin/plugins/example/example.pm
# Remove configs
rm %buildroot%_datadir/%name/wwwroot/cgi-bin/*.conf
# Remove old httpd_conf example
rm %buildroot%_datadir/%name/tools/httpd_conf
%pre
/usr/sbin/groupadd -r %awstats_group
/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 -G %apache_group %awstats_user
%files
%config(noreplace) %_sysconfdir/cron.d/%name
%_sysconfdir/%name/
%_datadir/%name/
%config(noreplace) %apache_addon/%name.conf
%dir %attr(1775,root,%awstats_group) %awstats_home
%files docs
%doc README.TXT docs
%changelog
…
Полный changelog можно просмотреть здесь