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

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

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

Revision 1.2 by brianr, Tue Oct 20 11:19:32 2020 UTC Revision 1.8 by brianr, Sat Jul 30 18:01:48 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-awstats.spec,v 1.1 2020/10/19 15:36:38 brianr Exp $  # $Id: smeserver-awstats.spec,v 1.7 2022/07/21 18:15:34 jpp Exp $
2  # Authority: dungog  # Authority: dungog
3  # Name: Stephen Noble  # Name: Stephen Noble
4    
5  %define realname smeserver-awstats  %define realname smeserver-awstats
6  %define version 1.4  %define version 1.4
7  %define release 2  %define release 6
8    
9  Summary:  SME Server intergration rpm for awstats  Summary:  SME Server intergration rpm for awstats
10  Name: %{realname}  Name: %{realname}
# Line 20  BuildRequires: e-smith-devtools >= 1.13. Line 20  BuildRequires: e-smith-devtools >= 1.13.
20  Requires: e-smith-release >= 9  Requires: e-smith-release >= 9
21  Requires: awstats >= 6.5  Requires: awstats >= 6.5
22  AutoReqProv: no  AutoReqProv: no
23  #Patch0: smeserver-awstats-1.4.  Patch0: smeserver-awstats-1.4-bz11045.patch
24  #Patch1: smeserver-awstats-1.4.  Patch1: smeserver-awstats-1.4-bz11998-backup.patch
25    
26  %description  %description
27  SME Server integration rpm for awstats.  SME Server integration rpm for awstats.
28    
29  %changelog  %changelog
30    * Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.4-6.sme
31    - Re-build and link to latest devtools [SME: 11997]
32    
33    * Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4-5.sme
34    - add to core backup [SME: 11998]
35    
36    * Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-3.sme
37    - add update event for easy install [SME: 11045]
38      rewrite spec and createlinks to be more smeserver compliant
39    - run actions/awstats-upgrade on update of awstats or smeserver-awstats [SME: 10784]
40    
41    * Tue Oct 20 2020 BogusDateBot
42    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
43      by assuming the date is correct and changing the weekday.
44      Tue May 27 2001 --> Tue May 22 2001 or Sun May 27 2001 or Tue May 29 2001 or ....
45    
46  * Mon Oct 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.4-2.sme  * Mon Oct 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.4-2.sme
47  - Initial import to SME10 tree  [SME: 11045]  - Initial import to SME10 tree  [SME: 11045]
48    
# Line 116  SME Server integration rpm for awstats. Line 132  SME Server integration rpm for awstats.
132  * Thu Oct 04 2001 Michael Weinberger  * Thu Oct 04 2001 Michael Weinberger
133  - based on AWStats 2.32  - based on AWStats 2.32
134    RPM name changed    RPM name changed
135  * Tue May 27 2001 Michael Weinberger  * Sun May 27 2001 Michael Weinberger
136      Tue May 27 2001 --> Tue May 22 2001 or Sun May 27 2001 or Tue May 29 2001 or ....
137  - problems when started by e-smith events  - problems when started by e-smith events
138    awstats pre-processor now runs in background    awstats pre-processor now runs in background
139  * Tue May 01 2001 Michael Weinberger  * Tue May 01 2001 Michael Weinberger
# Line 135  SME Server integration rpm for awstats. Line 152  SME Server integration rpm for awstats.
152    
153  %prep  %prep
154  %setup -q -n %{realname}-%{version}  %setup -q -n %{realname}-%{version}
155  #%patch0 -p1  %patch0 -p1
156  #%patch0 -p1  %patch1 -p1
157    
158  %build  %build
159  perl createlinks  perl createlinks
160    mkdir -p root/home/e-smith/files/users/admin/home/awstats
161  mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon  mkdir -p root/etc/e-smith/web/panels/manager/html/awstats/icon
162  mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats  mkdir -p root/etc/e-smith/web/panels/manager/cgi-bin/.awstats
163    #user-manager
164    mkdir -p root/etc/e-smith/web/panels/user/html/
165    mkdir -p root/etc/e-smith/web/panels/user/cgi-bin/
166    ln -fs /etc/e-smith/web/panels/manager/html/awstats root/etc/e-smith/web/panels/user/html/awstats
167    ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats root/etc/e-smith/web/panels/user/cgi-bin/.awstats
168    
169  echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version  echo %{version}-%{release} > root/etc/e-smith/web/panels/manager/cgi-bin/.awstats/version
170    
171  %install  %install
172  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
173  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
174  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
175            --dir '/home/e-smith/files/users/admin/home/awstats' 'attr(40770,admin,root)' \
176            --dir '/etc/e-smith/web/panels/manager/cgi-bin/.awstats' 'attr(40770,root,root)' \
177    > %{name}-%{version}-filelist
178  echo "%doc " >> %{name}-%{version}-filelist  echo "%doc " >> %{name}-%{version}-filelist
179    
180  %clean  %clean
# Line 156  rm -rf %{name}-%{version} Line 183  rm -rf %{name}-%{version}
183    
184  %pre  %pre
185  %post  %post
 mkdir -p /home/e-smith/files/users/admin/home/awstats  
 chown -R admin.root /home/e-smith/files/users/admin/home/awstats  
 chmod -R u+rw,g+rw /home/e-smith/files/users/admin/home/awstats  
 /sbin/e-smith/config setprop AWStats status enabled  
 /sbin/e-smith/signal-event awstats-update  
186    
 #user-manager  
 /bin/mkdir -p /etc/e-smith/web/panels/user/html/  
 /bin/mkdir -p /etc/e-smith/web/panels/user/cgi-bin/  
 /bin/ln -fs /etc/e-smith/web/panels/manager/html/awstats /etc/e-smith/web/panels/user/html/awstats  
 /bin/ln -fs /etc/e-smith/web/panels/manager/cgi-bin/.awstats /etc/e-smith/web/panels/user/cgi-bin/.awstats  
187    
188  %preun  %preun
189  %postun  %postun
# Line 182  fi Line 199  fi
199  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
200  %defattr(-,root,root)  %defattr(-,root,root)
201    
 #runs when awstats OR smeserver-awstats is installed or upgraded  
 %triggerin -- awstats  
 /etc/e-smith/events/actions/awstats-upgrade  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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