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