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