Summary: awstats for sme server 7 %define realname smeserver-awstats Name: %{realname} %define version 1.2 Version: %{version} %define release 3 Release: %{release} License: GNU GPL (GNU General Public License) Group: Utilities/CPAN Source: %{name}-%{version}.tar.gz Packager: Michael Weinberger & Stephen Noble BuildRoot: /var/tmp/%{name}-%{version} Url: http://awstats.sourceforge.net BuildArchitectures: noarch Requires: e-smith-release >= 7 Requires: awstats >= 6.5 AutoReqProv: no %description Advanced Web Statistics (AWStats) is a powerfull web server logfile analyzer (Perl script) that shows you all your Web statistics including visitors, pages, hits, hours, search engines, keywords used to find your site, broken links, robots and more. Author: Laurent Destailleur %changelog * Mon Jan 8 2007 Stephen Noble - old database path fixed, awstats.conf/10conf [sme 2254] - [1.2-3] * Wed Apr 26 2006 Stephen Noble - symlinks to graphics fixed - [1.2-2] * Wed Apr 12 2006 Stephen Noble - update for sme7 - renamed smeserver-awstats - split awstats out of rpm, so it can be updated independently - [1.2-1] * Mon Jan 31 2005 Stephen Noble - AllowFullYearView=3 added to awstats.conf - hostinfo plugin option removed from panel - # to enable - # /sbin/e-smith/db /sbin/e-smith/configuration setprop AWStats Hostinfo yes - # and install perl-Net-XWhois rpm - [6.3-1] * Sat Jan 29 2005 Stephen Noble - update to awstats 6.3 - [6.3-0] * Sat Sep 13 2003 Stephen Noble - delegation defaults to admin can also delegate to everyone, a group or a single user - [2.3.4] * Mon Aug 25 2003 Michael Weinberger - based on AWStats 5.7 - [2.3.3] * Tue Jul 29 2003 stephen noble - everyone options in options - language fixs thanks Pascal Schirrmann - [2.3.2] * Fri Jul 18 2003 stephen noble - remove /sbin/e-smith/config and options link to non admin users - [2.3.1] * Thu Jul 17 2003 Michael Weinberger - based on AWStats 5.6 - supports servermanager navigation of SME6 - [2.3.0] * Tue Jul 15 2003 stephen noble - user-manager support - restrict virtual domains shown to users - [2.2.2] * Tue Jan 07 2003 Michael Weinberger - changed to new commandline syntax (-/sbin/e-smith/config) * Mon Jan 06 2003 Michael Weinberger - based on AWStats 5.3 * Mon Jan 06 2003 Michael Weinberger - set DNSLookup=1 as default * Sat Dec 21 2002 Michael Weinberger - based on AWStats 5.2 * Thu Feb 28 2002 Michael Weinberger - based on AWStats 4.0 BETA * Thu Feb 28 2002 Michael Weinberger - now based on AWStats 3.2 * Fri Oct 05 2001 Michael Weinberger - missing icons issue solved. Path to icons changed. * Thu Oct 04 2001 Michael Weinberger - based on AWStats 2.32 RPM name changed * Tue May 27 2001 Michael Weinberger - problems when started by e-smith events awstats pre-processor now runs in background * Tue May 01 2001 Michael Weinberger - owner=admin, group=root for /home/e-smith/files/users/admin/home/awstats and all dirs below, rw for owner and group. (after e-smith upgrade permission set to drwx------, reported by Michael Doerner) awstats_run now checks permissons and correct them if needed. - more /sbin/e-smith/configuration options added, incl. 5 and 10 minute freq. - Warning "Another instance running" suppressed, when launched by cron (-s option) - Warning in the panel removed * Sun Apr 29 2001 Michael Weinberger - awstats_pos was not removed after a log rotate of access_log * Fri Apr 27 2001 Michael Weinberger - beta 1 release %prep %setup -q -n %{realname}-%{version} %build perl createlinks mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version #echo %{AWSTATS} >> $RPM_BUILD_ROOT/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist echo "%doc " >> %{name}-%{version}-filelist %clean cd .. rm -rf %{name}-%{version} %pre %post cp -a /var/www/awstats/icon/* /etc/e-smith/web/panels/manager/html/awstats/icon cd /etc/e-smith/web/panels/manager/html/awstats ln -sf icon/os os ln -sf icon/flags flags ln -sf icon/browser browser ln -sf icon/clock clock ln -sf icon/mime mime ln -sf icon/other other cp -a /var/www/awstats/awstats.pl /etc/e-smith/web/panels/manager/cgi-bin/.awstats cp -a /var/www/awstats/lang /etc/e-smith/web/panels/manager/cgi-bin/.awstats cp -a /var/www/awstats/lib /etc/e-smith/web/panels/manager/cgi-bin/.awstats cp -a /var/www/awstats/plugins /etc/e-smith/web/panels/manager/cgi-bin/.awstats chmod -R 770 /etc/e-smith/web/panels/manager/cgi-bin/.awstats mkdir -p /home/e-smith/files/users/admin/home/awstats chown -R admin.root /home/e-smith/files/users/admin/home/awstats chmod -R u+rw,g+rw /home/e-smith/files/users/admin/home/awstats /sbin/e-smith/config setprop AWStats status enabled /etc/e-smith/events/actions/navigation-conf 2>/dev/null /sbin/e-smith/signal-event awstats-update #user-manager /bin/mkdir -p /etc/e-smith/web/panels/user/html/ /bin/mkdir -p /etc/e-smith/web/panels/user/cgi-bin/ /bin/ln -fs /etc/e-smith/web/panels/manager/html/awstats /etc/e-smith/web/panels/user/html/awstats /bin/ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats /etc/e-smith/web/panels/user/cgi-bin/.awstats echo "awstats can be upgraded with newer rpms." echo "When you do this you should run the following to intergrate into sme..." echo "/etc/e-smith/events/actions/awstats-upgrade" echo "removing and reinstalling smeserver-awstats also works" echo "" echo "AWStats installed. Please check AWStats settings in the server-manager." %preun aw=`/sbin/e-smith/config getprop AWStats status` if [ "$aw" = "enabled" ] ; then /sbin/e-smith/config setprop AWStats status removed /sbin/e-smith/signal-event awstats-update fi %postun if [ $1 = 0 ] ; then /etc/e-smith/events/actions/navigation-conf 2>/dev/null rm -rf /etc/e-smith/web/panels/manager/html/awstats rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats rm -rf /etc/e-smith/web/panels/user/html/awstats rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats fi %files -f %{name}-%{version}-filelist %defattr(-,root,root)