/[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.1 - (hide annotations) (download)
Sun Dec 23 21:39:00 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-awstats-1.2-5.el4.sme.src.rpm

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

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