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

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

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


Revision 1.3 - (hide annotations) (download)
Wed Apr 2 15:03:56 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
Changes since 1.2: +4 -0 lines
Add Id, Authority, Name

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

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