/[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.4 - (show annotations) (download)
Sat Dec 22 22:18:29 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -1 lines
Remove Packager/Distribution (added by buildsys)

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

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