Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
awstats
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 34
[-]
[+]
Changed
awstats.spec
@@ -37,20 +37,22 @@ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: no -Requires: apache2 perl perl-Net-DNS logrotate -%if 0%{?suse_version} -Requires: cron apache2 -%else -Requires: vixie-cron httpd -%endif +Requires: perl perl-Net-DNS logrotate + BuildRequires: java2-devel-packages dos2unix %if 0%{?suse_version} +Requires: cron apache2 %define apache_serverroot /srv/www +%define apache_htdir %{apache_serverroot}/htdocs +%define apaconfdir %{_sysconfdir}/apache2 %endif %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +Requires: vixie-cron httpd %define apache_serverroot /var/www +%define apache_htdir %{apache_serverroot}/html +%define apaconfdir %{_sysconfdir}/httpd %endif %description @@ -85,18 +87,18 @@ %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%{apache_htdir}/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%{apaconfdir} +%__install -d -m 755 $RPM_BUILD_ROOT%{apaconfdir}/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%{apache_htdir}/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/ @@ -105,7 +107,7 @@ 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 -m 644 $RPM_SOURCE_DIR/apache2.awstats.conf $RPM_BUILD_ROOT%{apaconfdir}/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 @@ -133,16 +135,16 @@ %{apache_serverroot}/cgi-bin/plugins %{apache_serverroot}/cgi-bin/lib %{apache_serverroot}/cgi-bin/classes -%dir %{apache_serverroot}/htdocs/icons -%{apache_serverroot}/htdocs/icons/* +%dir %{apache_htdir}/icons +%{apache_htdir}/icons/* %dir /var/lib/awstats /var/lib/awstats/lang %dir /var/cache/awstats -%dir /etc/apache2 -%dir /etc/apache2/conf.d +%dir %{apaconfdir} +%dir %{apaconfdir}/conf.d %dir /usr/share/apache2 %dir /usr/share/apache2/icons -%config /etc/apache2/conf.d/awstats.conf +%config %{apaconfdir}/conf.d/awstats.conf %{_datadir}/apache2/icons/awstats %changelog