1 |
# $Id: smeserver-awstats.spec,v 1.4 2021/02/22 20:14:09 jpp Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
%define realname smeserver-awstats |
6 |
%define version 1.4 |
7 |
%define release 3 |
8 |
|
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 |
BuildRoot: /var/tmp/%{name}-%{version} |
17 |
URL: http://www.dungog.net/sme |
18 |
BuildArchitectures: noarch |
19 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
20 |
Requires: e-smith-release >= 9 |
21 |
Requires: awstats >= 6.5 |
22 |
AutoReqProv: no |
23 |
Patch0: smeserver-awstats-1.4-bz11045.patch |
24 |
#Patch1: smeserver-awstats-1.4. |
25 |
|
26 |
%description |
27 |
SME Server integration rpm for awstats. |
28 |
|
29 |
%changelog |
30 |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-3.sme |
31 |
- add update event for easy install [SME: 11045] |
32 |
rewrite spec and createlinks to be more smeserver compliant |
33 |
- run actions/awstats-upgrade on update of awstats or smeserver-awstats [SME: 10784] |
34 |
|
35 |
* Tue Oct 20 2020 BogusDateBot |
36 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
37 |
by assuming the date is correct and changing the weekday. |
38 |
Tue May 27 2001 --> Tue May 22 2001 or Sun May 27 2001 or Tue May 29 2001 or .... |
39 |
|
40 |
* Mon Oct 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.4-2.sme |
41 |
- Initial import to SME10 tree [SME: 11045] |
42 |
|
43 |
* Fri Jul 20 2018 John Crisp <jcrisp@safeandsounit.co.uk> 1.4-1.sme |
44 |
- Fix SkipHosts incomplete entry [SME: 10160] |
45 |
- Add SkipHosts db key |
46 |
- Update some code to newer API |
47 |
|
48 |
* Mon Sep 7 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.3-3.sme |
49 |
- added smeserver-awstats-1.3.bz8450.remove_ExternalIP-LocalIP.patch |
50 |
- removed ExternalIP_LocalIP_ExternalNetmask [SME: 8450] |
51 |
|
52 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 1.3-1.sme |
53 |
- initial import to SME9 contribs [SME: 8435] |
54 |
|
55 |
* Sat Sep 20 2008 Stephen Noble <support@dungog.net> 1.2-7 |
56 |
- clarify when domain is added to panel [sme 4543] |
57 |
|
58 |
* Tue Jun 26 2007 Stephen Noble <support@dungog.net> 1.2-5 |
59 |
- awstats upgrade script modified [sme 3087] |
60 |
|
61 |
* Tue Jun 26 2007 Stephen Noble <support@dungog.net> 1.2-4 |
62 |
- awstats upgrade triggers added [sme 2347] |
63 |
|
64 |
* Mon Jan 8 2007 Stephen Noble <support@dungog.net> |
65 |
- old database path fixed, awstats.conf/10conf [sme 2254] |
66 |
- [1.2-3] |
67 |
|
68 |
* Wed Apr 26 2006 Stephen Noble <support@dungog.net> |
69 |
- symlinks to graphics fixed |
70 |
- [1.2-2] |
71 |
|
72 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
73 |
- update for sme7 |
74 |
- renamed smeserver-awstats |
75 |
- split awstats out of rpm, so it can be updated independently |
76 |
- [1.2-1] |
77 |
|
78 |
* Mon Jan 31 2005 Stephen Noble <support@dungog.net> |
79 |
- AllowFullYearView=3 added to awstats.conf |
80 |
- hostinfo plugin option removed from panel |
81 |
- # to enable |
82 |
- # /sbin/e-smith/db /sbin/e-smith/configuration setprop AWStats Hostinfo yes |
83 |
- # and install perl-Net-XWhois rpm |
84 |
- [6.3-1] |
85 |
|
86 |
* Sat Jan 29 2005 Stephen Noble <support@dungog.net> |
87 |
- update to awstats 6.3 |
88 |
- [6.3-0] |
89 |
|
90 |
* Sat Sep 13 2003 Stephen Noble <support@dungog.net> |
91 |
- delegation defaults to admin |
92 |
can also delegate to everyone, a group or a single user |
93 |
- [2.3.4] |
94 |
* Mon Aug 25 2003 Michael Weinberger |
95 |
- based on AWStats 5.7 |
96 |
- [2.3.3] |
97 |
* Tue Jul 29 2003 stephen noble <support@dungog.net> |
98 |
- everyone options in options |
99 |
- language fixs thanks Pascal Schirrmann |
100 |
- [2.3.2] |
101 |
* Fri Jul 18 2003 stephen noble <support@dungog.net> |
102 |
- remove /sbin/e-smith/config and options link to non admin users |
103 |
- [2.3.1] |
104 |
* Thu Jul 17 2003 Michael Weinberger |
105 |
- based on AWStats 5.6 |
106 |
- supports servermanager navigation of SME6 |
107 |
- [2.3.0] |
108 |
* Tue Jul 15 2003 stephen noble <support@dungog.net> |
109 |
- user-manager support |
110 |
- restrict virtual domains shown to users |
111 |
- [2.2.2] |
112 |
* Tue Jan 07 2003 Michael Weinberger |
113 |
- changed to new commandline syntax (-/sbin/e-smith/config) |
114 |
* Mon Jan 06 2003 Michael Weinberger |
115 |
- based on AWStats 5.3 |
116 |
* Mon Jan 06 2003 Michael Weinberger |
117 |
- set DNSLookup=1 as default |
118 |
* Sat Dec 21 2002 Michael Weinberger |
119 |
- based on AWStats 5.2 |
120 |
* Thu Feb 28 2002 Michael Weinberger |
121 |
- based on AWStats 4.0 BETA |
122 |
* Thu Feb 28 2002 Michael Weinberger |
123 |
- now based on AWStats 3.2 |
124 |
* Fri Oct 05 2001 Michael Weinberger |
125 |
- missing icons issue solved. Path to icons changed. |
126 |
* Thu Oct 04 2001 Michael Weinberger |
127 |
- based on AWStats 2.32 |
128 |
RPM name changed |
129 |
* Sun May 27 2001 Michael Weinberger |
130 |
Tue May 27 2001 --> Tue May 22 2001 or Sun May 27 2001 or Tue May 29 2001 or .... |
131 |
- problems when started by e-smith events |
132 |
awstats pre-processor now runs in background |
133 |
* Tue May 01 2001 Michael Weinberger |
134 |
- owner=admin, group=root for /home/e-smith/files/users/admin/home/awstats and all |
135 |
dirs below, rw for owner and group. |
136 |
(after e-smith upgrade permission set to drwx------, reported by Michael Doerner) |
137 |
awstats_run now checks permissons and correct them if needed. |
138 |
- more /sbin/e-smith/configuration options added, incl. 5 and 10 minute freq. |
139 |
- Warning "Another instance running" suppressed, when launched by cron (-s option) |
140 |
- Warning in the panel removed |
141 |
* Sun Apr 29 2001 Michael Weinberger |
142 |
- awstats_pos was not removed after a log rotate of access_log |
143 |
* Fri Apr 27 2001 Michael Weinberger |
144 |
- beta 1 release |
145 |
|
146 |
|
147 |
%prep |
148 |
%setup -q -n %{realname}-%{version} |
149 |
%patch0 -p1 |
150 |
#%patch0 -p1 |
151 |
|
152 |
%build |
153 |
perl createlinks |
154 |
mkdir -p root/home/e-smith/files/users/admin/home/awstats |
155 |
mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon |
156 |
mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats |
157 |
#user-manager |
158 |
mkdir -p root/etc/e-smith/web/panels/user/html/ |
159 |
mkdir -p root/etc/e-smith/web/panels/user/cgi-bin/ |
160 |
ln -fs /etc/e-smith/web/panels/manager/html/awstats root/etc/e-smith/web/panels/user/html/awstats |
161 |
ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats root/etc/e-smith/web/panels/user/cgi-bin/.awstats |
162 |
|
163 |
echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version |
164 |
|
165 |
%install |
166 |
rm -rf $RPM_BUILD_ROOT |
167 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
168 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
169 |
--dir '/home/e-smith/files/users/admin/home/awstats' 'attr(40770,admin,root)' \ |
170 |
--dir '/etc/e-smith/web/panels/manager/cgi-bin/.awstats' 'attr(40770,root,root)' \ |
171 |
> %{name}-%{version}-filelist |
172 |
echo "%doc " >> %{name}-%{version}-filelist |
173 |
|
174 |
%clean |
175 |
cd .. |
176 |
rm -rf %{name}-%{version} |
177 |
|
178 |
%pre |
179 |
%post |
180 |
|
181 |
|
182 |
%preun |
183 |
%postun |
184 |
if [ $1 = 0 ] ; then |
185 |
/bin/rm -rf /etc/e-smith/web/panels/manager/html/awstats |
186 |
/bin/rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats |
187 |
/bin/rm -rf /etc/e-smith/web/panels/user/html/awstats |
188 |
/bin/rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats |
189 |
/sbin/e-smith/config setprop AWStats status removed |
190 |
/sbin/e-smith/expand-template /etc/crontab |
191 |
fi |
192 |
|
193 |
%files -f %{name}-%{version}-filelist |
194 |
%defattr(-,root,root) |
195 |
|