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

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

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 17 19:12:32 2014 UTC (10 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-awstats-1_3-1_el6_sme, smeserver-awstats-1_3-1
Initial import to v9

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

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