/[smecontribs]/rpms/smeserver-awstats/contribs9/smeserver-awstats.spec
ViewVC logotype

Contents of /rpms/smeserver-awstats/contribs9/smeserver-awstats.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Wed Oct 10 10:35:03 2018 UTC (5 years, 7 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-awstats-1_4-1_el6_sme, HEAD
Changes since 1.5: +1 -1 lines
Initial import

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed