1 |
dungog |
1.5 |
# $Id: smeserver-awstats.spec,v 1.4 2008/09/20 02:45:21 dungog Exp $ |
2 |
slords |
1.3 |
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
slords |
1.1 |
%define realname smeserver-awstats |
6 |
|
|
%define version 1.2 |
7 |
dungog |
1.4 |
%define release 6 |
8 |
slords |
1.1 |
|
9 |
|
|
Summary: SME Server intergration rpm for awstats |
10 |
|
|
Name: %{realname} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GNU GPL (GNU General Public License) |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Patch0: smeserver-awstats-upgrade.patch |
17 |
dungog |
1.4 |
Patch1: smeserver-awstats-1.2-note.patch |
18 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
|
|
URL: http://www.dungog.net/sme |
20 |
|
|
BuildArchitectures: noarch |
21 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
|
|
Requires: e-smith-release >= 7 |
23 |
|
|
Requires: awstats >= 6.5 |
24 |
|
|
AutoReqProv: no |
25 |
|
|
|
26 |
|
|
%description |
27 |
|
|
SME Server intergration rpm for awstats. |
28 |
|
|
|
29 |
|
|
%changelog |
30 |
dungog |
1.4 |
* Sat Sep 20 2008 Stephen Noble <support@dungog.net> 1.2-6 |
31 |
|
|
- clarify when domain is addedto panel [sme 4543] |
32 |
|
|
|
33 |
slords |
1.1 |
* Tue Jun 26 2007 Stephen Noble <support@dungog.net> 1.2-5 |
34 |
|
|
- awstats upgrade script modified [sme 3087] |
35 |
|
|
|
36 |
|
|
* Tue Jun 26 2007 Stephen Noble <support@dungog.net> 1.2-4 |
37 |
|
|
- awstats upgrade triggers added [sme 2347] |
38 |
|
|
|
39 |
|
|
* Mon Jan 8 2007 Stephen Noble <support@dungog.net> |
40 |
|
|
- old database path fixed, awstats.conf/10conf [sme 2254] |
41 |
|
|
- [1.2-3] |
42 |
|
|
|
43 |
|
|
* Wed Apr 26 2006 Stephen Noble <support@dungog.net> |
44 |
|
|
- symlinks to graphics fixed |
45 |
|
|
- [1.2-2] |
46 |
|
|
|
47 |
|
|
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
48 |
|
|
- update for sme7 |
49 |
|
|
- renamed smeserver-awstats |
50 |
|
|
- split awstats out of rpm, so it can be updated independently |
51 |
|
|
- [1.2-1] |
52 |
|
|
|
53 |
|
|
* Mon Jan 31 2005 Stephen Noble <support@dungog.net> |
54 |
|
|
- AllowFullYearView=3 added to awstats.conf |
55 |
|
|
- hostinfo plugin option removed from panel |
56 |
|
|
- # to enable |
57 |
|
|
- # /sbin/e-smith/db /sbin/e-smith/configuration setprop AWStats Hostinfo yes |
58 |
|
|
- # and install perl-Net-XWhois rpm |
59 |
|
|
- [6.3-1] |
60 |
|
|
|
61 |
|
|
* Sat Jan 29 2005 Stephen Noble <support@dungog.net> |
62 |
|
|
- update to awstats 6.3 |
63 |
|
|
- [6.3-0] |
64 |
|
|
|
65 |
|
|
* Sat Sep 13 2003 Stephen Noble <support@dungog.net> |
66 |
|
|
- delegation defaults to admin |
67 |
|
|
can also delegate to everyone, a group or a single user |
68 |
|
|
- [2.3.4] |
69 |
|
|
* Mon Aug 25 2003 Michael Weinberger |
70 |
|
|
- based on AWStats 5.7 |
71 |
|
|
- [2.3.3] |
72 |
|
|
* Tue Jul 29 2003 stephen noble <support@dungog.net> |
73 |
|
|
- everyone options in options |
74 |
|
|
- language fixs thanks Pascal Schirrmann |
75 |
|
|
- [2.3.2] |
76 |
|
|
* Fri Jul 18 2003 stephen noble <support@dungog.net> |
77 |
|
|
- remove /sbin/e-smith/config and options link to non admin users |
78 |
|
|
- [2.3.1] |
79 |
|
|
* Thu Jul 17 2003 Michael Weinberger |
80 |
|
|
- based on AWStats 5.6 |
81 |
|
|
- supports servermanager navigation of SME6 |
82 |
|
|
- [2.3.0] |
83 |
|
|
* Tue Jul 15 2003 stephen noble <support@dungog.net> |
84 |
|
|
- user-manager support |
85 |
|
|
- restrict virtual domains shown to users |
86 |
|
|
- [2.2.2] |
87 |
|
|
* Tue Jan 07 2003 Michael Weinberger |
88 |
|
|
- changed to new commandline syntax (-/sbin/e-smith/config) |
89 |
|
|
* Mon Jan 06 2003 Michael Weinberger |
90 |
|
|
- based on AWStats 5.3 |
91 |
|
|
* Mon Jan 06 2003 Michael Weinberger |
92 |
|
|
- set DNSLookup=1 as default |
93 |
|
|
* Sat Dec 21 2002 Michael Weinberger |
94 |
|
|
- based on AWStats 5.2 |
95 |
|
|
* Thu Feb 28 2002 Michael Weinberger |
96 |
|
|
- based on AWStats 4.0 BETA |
97 |
|
|
* Thu Feb 28 2002 Michael Weinberger |
98 |
|
|
- now based on AWStats 3.2 |
99 |
|
|
* Fri Oct 05 2001 Michael Weinberger |
100 |
|
|
- missing icons issue solved. Path to icons changed. |
101 |
|
|
* Thu Oct 04 2001 Michael Weinberger |
102 |
|
|
- based on AWStats 2.32 |
103 |
|
|
RPM name changed |
104 |
|
|
* Tue May 27 2001 Michael Weinberger |
105 |
|
|
- problems when started by e-smith events |
106 |
|
|
awstats pre-processor now runs in background |
107 |
|
|
* Tue May 01 2001 Michael Weinberger |
108 |
|
|
- owner=admin, group=root for /home/e-smith/files/users/admin/home/awstats and all |
109 |
|
|
dirs below, rw for owner and group. |
110 |
|
|
(after e-smith upgrade permission set to drwx------, reported by Michael Doerner) |
111 |
|
|
awstats_run now checks permissons and correct them if needed. |
112 |
|
|
- more /sbin/e-smith/configuration options added, incl. 5 and 10 minute freq. |
113 |
|
|
- Warning "Another instance running" suppressed, when launched by cron (-s option) |
114 |
|
|
- Warning in the panel removed |
115 |
|
|
* Sun Apr 29 2001 Michael Weinberger |
116 |
|
|
- awstats_pos was not removed after a log rotate of access_log |
117 |
|
|
* Fri Apr 27 2001 Michael Weinberger |
118 |
|
|
- beta 1 release |
119 |
|
|
|
120 |
|
|
|
121 |
|
|
%prep |
122 |
|
|
%setup -q -n %{realname}-%{version} |
123 |
|
|
%patch0 -p1 |
124 |
dungog |
1.5 |
%patch1 -p1 |
125 |
slords |
1.1 |
|
126 |
|
|
%build |
127 |
|
|
perl createlinks |
128 |
|
|
mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon |
129 |
|
|
mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats |
130 |
|
|
echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version |
131 |
|
|
|
132 |
|
|
%install |
133 |
|
|
rm -rf $RPM_BUILD_ROOT |
134 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
135 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
136 |
|
|
echo "%doc " >> %{name}-%{version}-filelist |
137 |
|
|
|
138 |
|
|
%clean |
139 |
|
|
cd .. |
140 |
|
|
rm -rf %{name}-%{version} |
141 |
|
|
|
142 |
|
|
%pre |
143 |
|
|
%post |
144 |
|
|
mkdir -p /home/e-smith/files/users/admin/home/awstats |
145 |
|
|
chown -R admin.root /home/e-smith/files/users/admin/home/awstats |
146 |
|
|
chmod -R u+rw,g+rw /home/e-smith/files/users/admin/home/awstats |
147 |
|
|
/sbin/e-smith/config setprop AWStats status enabled |
148 |
|
|
/sbin/e-smith/signal-event awstats-update |
149 |
|
|
|
150 |
|
|
#user-manager |
151 |
|
|
/bin/mkdir -p /etc/e-smith/web/panels/user/html/ |
152 |
|
|
/bin/mkdir -p /etc/e-smith/web/panels/user/cgi-bin/ |
153 |
|
|
/bin/ln -fs /etc/e-smith/web/panels/manager/html/awstats /etc/e-smith/web/panels/user/html/awstats |
154 |
|
|
/bin/ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats /etc/e-smith/web/panels/user/cgi-bin/.awstats |
155 |
|
|
|
156 |
|
|
%preun |
157 |
|
|
%postun |
158 |
|
|
if [ $1 = 0 ] ; then |
159 |
|
|
/bin/rm -rf /etc/e-smith/web/panels/manager/html/awstats |
160 |
|
|
/bin/rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats |
161 |
|
|
/bin/rm -rf /etc/e-smith/web/panels/user/html/awstats |
162 |
|
|
/bin/rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats |
163 |
|
|
/sbin/e-smith/config setprop AWStats status removed |
164 |
|
|
/sbin/e-smith/expand-template /etc/crontab |
165 |
|
|
fi |
166 |
|
|
|
167 |
|
|
%files -f %{name}-%{version}-filelist |
168 |
|
|
%defattr(-,root,root) |
169 |
|
|
|
170 |
|
|
#runs when awstats OR smeserver-awstats is installed or upgraded |
171 |
|
|
%triggerin -- awstats |
172 |
|
|
/etc/e-smith/events/actions/awstats-upgrade |