/[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.2 - (show annotations) (download)
Mon Sep 7 14:39:47 2015 UTC (9 years, 1 month ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-awstats-1_3-2_el6_sme
Changes since 1.1: +8 -2 lines
* Mon Sep 7 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.3-2.sme
- added smeserver-awstats-1.3.bz8450.remove_ExternalIP-LocalIP.patch
- removed ExternalIP_LocalIP_ExternalNetmask [SME: 8450]

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

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