Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
awstats
> awstats.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File awstats.spec of Package awstats (Revision 19)
Currently displaying revision
19
,
show latest
# # spec file for package awstats (Version 6.8) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: awstats Requires: apache2 perl perl-Net-DNS BuildRequires: java2-devel-packages License: GNU General Public License (GPL) Group: Productivity/Networking/Web/Utilities Autoreqprov: on Version: 6.8 Release: 45 URL: http://awstats.sourceforge.net Summary: Advanced Web Statistics Source: awstats-%{version}.tar.bz2 Source2: module.awstats Source4: cron.d.awstats Source5: awstats-update Source6: awstats-update.8 Source7: awstats.logrotate Source8: apache2.awstats.conf Patch: %{name}-%{version}.patch Patch1: %{name}-CVE-2006-2237_read_open.patch Patch2: %{name}-%{version}-geo.patch Patch3: %{name}-%{version}-enable_ipv6.patch Patch4: %{name}-%{version}-ftp_conf.patch Patch5: %{name}-%{version}-smtp_conf.patch Patch6: %{name}-%{version}-feature.patch Patch7: %{name}-%{version}-www_SiteConfig.patch Patch8: %{name}-%{version}-dos2unix-Makefile.patch BuildArchitectures: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} %define apache_serverroot /srv/www %endif %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} %define apache_serverroot /var/www %endif %description Advanced Web Statistics (AWStats) is a powerful Web server log file analyzer (Perl script) that shows Web statistics including visitors, pages, hits, hours, search engines, keywords used to find your site, broken links, robots, and more. %prep %setup %patch %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %patch7 %patch8 find -type f -name .cvsignore -print0 | xargs -r0 rm -v %build wwwroot/classes/src/Makefile.pl %install install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/classes install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/htdocs/icons/awstats install -d -m 755 $RPM_BUILD_ROOT/var/lib/awstats/lang install -d -m 755 $RPM_BUILD_ROOT/var/cache/awstats install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/apache2 install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/awstats install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d install -d -m 755 $RPM_BUILD_ROOT/usr/sbin install -d -m 755 $RPM_BUILD_ROOT/usr/share/apache2/icons/awstats/ install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man8 cp -a wwwroot/icon/* $RPM_BUILD_ROOT%{apache_serverroot}/htdocs/icons/awstats/ cp -a wwwroot/icon/* $RPM_BUILD_ROOT/usr/share/apache2/icons/awstats/ cp -a wwwroot/cgi-bin/lang $RPM_BUILD_ROOT/var/lib/awstats/ cp -a wwwroot/cgi-bin/{lib,plugins} $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/ cp -a wwwroot/classes/* $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/classes/ cp -a wwwroot/cgi-bin/awstats.pl $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/ cp -a wwwroot/cgi-bin/awstats.model.conf $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.web cp -a wwwroot/cgi-bin/awstats.model.conf.ftp $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.ftp cp -a wwwroot/cgi-bin/awstats.model.conf.smtp $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.smtp install -m 644 $RPM_SOURCE_DIR/apache2.awstats.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d/awstats.conf install -d -m 755 $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 644 $RPM_SOURCE_DIR/cron.d.awstats $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/suse-awstats install -m 755 $RPM_SOURCE_DIR/awstats-update $RPM_BUILD_ROOT/usr/sbin install -m 644 $RPM_SOURCE_DIR/awstats-update.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -m 644 $RPM_SOURCE_DIR/awstats.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/awstats %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) %doc README.TXT docs/* wwwroot/js wwwroot/css tools %config(noreplace) /etc/logrotate.d/awstats %dir /etc/awstats %attr(644,root,root) %config /etc/awstats/awstats.conf.web %attr(644,root,root) %config /etc/awstats/awstats.conf.ftp %attr(644,root,root) %config /etc/awstats/awstats.conf.smtp %config /etc/cron.d/suse-awstats %{_sbindir}/awstats-update %doc %{_mandir}/man8/awstats-update.8.gz %{apache_serverroot}/cgi-bin/awstats.pl %{apache_serverroot}/cgi-bin/plugins %{apache_serverroot}/cgi-bin/lib %{apache_serverroot}/cgi-bin/classes %dir %{apache_serverroot}/htdocs/icons %{apache_serverroot}/htdocs/icons/* /var/lib/awstats /var/cache/awstats %dir /etc/apache2 %dir /etc/apache2/conf.d %dir /usr/share/apache2 %dir /usr/share/apache2/icons %config /etc/apache2/conf.d/awstats.conf /usr/share/apache2/icons/awstats %changelog * Sat Nov 15 2008 Carsten Schoene <vhcs@j0ke.net> - update to release 6.8 - cross-distribution build - reworked some patches - added www_SiteConfig Patch