/[smecontribs]/rpms/smeserver-awstats/contribs7/smeserver-awstats-1.2.spec
ViewVC logotype

Contents of /rpms/smeserver-awstats/contribs7/smeserver-awstats-1.2.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Sun Dec 23 21:39:00 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
Import on branch contribs7 of package smeserver-awstats-1.2-5.el4.sme.src.rpm

1 Summary: awstats for sme server 7
2 %define realname smeserver-awstats
3 Name: %{realname}
4 %define version 1.2
5 Version: %{version}
6 %define release 3
7 Release: %{release}%{?dist}
8 License: GNU GPL (GNU General Public License)
9 Group: Utilities/CPAN
10 Source: %{name}-%{version}.tar.gz
11 BuildRoot: /var/tmp/%{name}-%{version}
12 Url: http://awstats.sourceforge.net
13 BuildArchitectures: noarch
14 Requires: e-smith-release >= 7
15 Requires: awstats >= 6.5
16 BuildRequires: e-smith-devtools
17 AutoReqProv: no
18
19 %description
20 Advanced Web Statistics (AWStats) is a powerfull web server logfile analyzer
21 (Perl script) that shows you all your Web statistics including visitors,
22 pages, hits, hours, search engines, keywords used to find your site, broken
23 links, robots and more.
24 Author: Laurent Destailleur <eldy@users.sourceforge.net>
25
26 %changelog
27 * Mon Jan 8 2007 Stephen Noble <support@dungog.net>
28 - old database path fixed, awstats.conf/10conf [sme 2254]
29 - [1.2-3]
30
31 * Wed Apr 26 2006 Stephen Noble <support@dungog.net>
32 - symlinks to graphics fixed
33 - [1.2-2]
34
35 * Wed Apr 12 2006 Stephen Noble <support@dungog.net>
36 - update for sme7
37 - renamed smeserver-awstats
38 - split awstats out of rpm, so it can be updated independently
39 - [1.2-1]
40
41 * Mon Jan 31 2005 Stephen Noble <support@dungog.net>
42 - AllowFullYearView=3 added to awstats.conf
43 - hostinfo plugin option removed from panel
44 - # to enable
45 - # /sbin/e-smith/db /sbin/e-smith/configuration setprop AWStats Hostinfo yes
46 - # and install perl-Net-XWhois rpm
47 - [6.3-1]
48
49 * Sat Jan 29 2005 Stephen Noble <support@dungog.net>
50 - update to awstats 6.3
51 - [6.3-0]
52
53 * Sat Sep 13 2003 Stephen Noble <support@dungog.net>
54 - delegation defaults to admin
55 can also delegate to everyone, a group or a single user
56 - [2.3.4]
57 * Mon Aug 25 2003 Michael Weinberger
58 - based on AWStats 5.7
59 - [2.3.3]
60 * Tue Jul 29 2003 stephen noble <support@dungog.net>
61 - everyone options in options
62 - language fixs thanks Pascal Schirrmann
63 - [2.3.2]
64 * Fri Jul 18 2003 stephen noble <support@dungog.net>
65 - remove /sbin/e-smith/config and options link to non admin users
66 - [2.3.1]
67 * Thu Jul 17 2003 Michael Weinberger
68 - based on AWStats 5.6
69 - supports servermanager navigation of SME6
70 - [2.3.0]
71 * Tue Jul 15 2003 stephen noble <support@dungog.net>
72 - user-manager support
73 - restrict virtual domains shown to users
74 - [2.2.2]
75 * Tue Jan 07 2003 Michael Weinberger
76 - changed to new commandline syntax (-/sbin/e-smith/config)
77 * Mon Jan 06 2003 Michael Weinberger
78 - based on AWStats 5.3
79 * Mon Jan 06 2003 Michael Weinberger
80 - set DNSLookup=1 as default
81 * Sat Dec 21 2002 Michael Weinberger
82 - based on AWStats 5.2
83 * Thu Feb 28 2002 Michael Weinberger
84 - based on AWStats 4.0 BETA
85 * Thu Feb 28 2002 Michael Weinberger
86 - now based on AWStats 3.2
87 * Fri Oct 05 2001 Michael Weinberger
88 - missing icons issue solved. Path to icons changed.
89 * Thu Oct 04 2001 Michael Weinberger
90 - based on AWStats 2.32
91 RPM name changed
92 * Tue May 27 2001 Michael Weinberger
93 - problems when started by e-smith events
94 awstats pre-processor now runs in background
95 * Tue May 01 2001 Michael Weinberger
96 - owner=admin, group=root for /home/e-smith/files/users/admin/home/awstats and all
97 dirs below, rw for owner and group.
98 (after e-smith upgrade permission set to drwx------, reported by Michael Doerner)
99 awstats_run now checks permissons and correct them if needed.
100 - more /sbin/e-smith/configuration options added, incl. 5 and 10 minute freq.
101 - Warning "Another instance running" suppressed, when launched by cron (-s option)
102 - Warning in the panel removed
103 * Sun Apr 29 2001 Michael Weinberger
104 - awstats_pos was not removed after a log rotate of access_log
105 * Fri Apr 27 2001 Michael Weinberger
106 - beta 1 release
107
108
109 %prep
110 %setup -q -n %{realname}-%{version}
111
112 %build
113 perl createlinks
114 mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon
115 mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats
116 echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version
117 #echo %{AWSTATS} >> $RPM_BUILD_ROOT/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version
118
119 %install
120
121
122 rm -rf $RPM_BUILD_ROOT
123 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
124 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
125 echo "%doc " >> %{name}-%{version}-filelist
126
127 %clean
128 cd ..
129 rm -rf %{name}-%{version}
130
131 %pre
132
133 %post
134 cp -a /var/www/awstats/icon/* /etc/e-smith/web/panels/manager/html/awstats/icon
135 cd /etc/e-smith/web/panels/manager/html/awstats
136 ln -sf icon/os os
137 ln -sf icon/flags flags
138 ln -sf icon/browser browser
139 ln -sf icon/clock clock
140 ln -sf icon/mime mime
141 ln -sf icon/other other
142
143 cp -a /var/www/awstats/awstats.pl /etc/e-smith/web/panels/manager/cgi-bin/.awstats
144 cp -a /var/www/awstats/lang /etc/e-smith/web/panels/manager/cgi-bin/.awstats
145 cp -a /var/www/awstats/lib /etc/e-smith/web/panels/manager/cgi-bin/.awstats
146 cp -a /var/www/awstats/plugins /etc/e-smith/web/panels/manager/cgi-bin/.awstats
147 chmod -R 770 /etc/e-smith/web/panels/manager/cgi-bin/.awstats
148
149
150 mkdir -p /home/e-smith/files/users/admin/home/awstats
151 chown -R admin.root /home/e-smith/files/users/admin/home/awstats
152 chmod -R u+rw,g+rw /home/e-smith/files/users/admin/home/awstats
153 /sbin/e-smith/config setprop AWStats status enabled
154
155 /etc/e-smith/events/actions/navigation-conf 2>/dev/null
156 /sbin/e-smith/signal-event awstats-update
157
158 #user-manager
159 /bin/mkdir -p /etc/e-smith/web/panels/user/html/
160 /bin/mkdir -p /etc/e-smith/web/panels/user/cgi-bin/
161 /bin/ln -fs /etc/e-smith/web/panels/manager/html/awstats /etc/e-smith/web/panels/user/html/awstats
162 /bin/ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats /etc/e-smith/web/panels/user/cgi-bin/.awstats
163
164 echo "awstats can be upgraded with newer rpms."
165 echo "When you do this you should run the following to intergrate into sme..."
166 echo "/etc/e-smith/events/actions/awstats-upgrade"
167 echo "removing and reinstalling smeserver-awstats also works"
168 echo ""
169 echo "AWStats installed. Please check AWStats settings in the server-manager."
170
171 %preun
172 aw=`/sbin/e-smith/config getprop AWStats status`
173 if [ "$aw" = "enabled" ] ; then
174 /sbin/e-smith/config setprop AWStats status removed
175 /sbin/e-smith/signal-event awstats-update
176 fi
177
178 %postun
179 if [ $1 = 0 ] ; then
180 /etc/e-smith/events/actions/navigation-conf 2>/dev/null
181
182 rm -rf /etc/e-smith/web/panels/manager/html/awstats
183 rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats
184 rm -rf /etc/e-smith/web/panels/user/html/awstats
185 rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats
186 fi
187
188 %files -f %{name}-%{version}-filelist
189 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed