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

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

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


Revision 1.2 - (show annotations) (download)
Sun Dec 23 21:45:25 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-awstats-1_2-5_el4_sme
Changes since 1.1: +0 -1 lines
Specfile fixes

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

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