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