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

Annotation of /rpms/smeserver-awstats/contribs10/smeserver-awstats.spec

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


Revision 1.3 - (hide annotations) (download)
Tue Oct 20 11:21:15 2020 UTC (4 years, 1 month ago) by brianr
Branch: MAIN
CVS Tags: smeserver-awstats-1_4-2_el7_sme
Changes since 1.2: +8 -2 lines
* Tue Oct 20 2020 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Tue May 27 2001 --> Tue May 22 2001 or Sun May 27 2001 or Tue May 29 2001 or ....

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

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