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

Contents of /rpms/smeserver-sarg/contribs7/smeserver-sarg-2.2.1.spec

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


Revision 1.2 - (show annotations) (download)
Sat Dec 22 21:41:57 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.1: +1 -1 lines
Change Copyright to License

1 Summary: SME server Sarg
2 %define name smeserver-sarg
3 Name: %{name}
4 %define version 2.2.1
5 %define release 4
6 Version: %{version}
7 Release: %{release}
8 License: Freely distributable
9 Group: Apache/php/caching
10 Source: %{name}-%{version}.tar.gz
11 Packager: Stephen Noble <support@dungog.net>
12 BuildRoot: /var/tmp/e-smith-buildroot
13 BuildRequires: e-smith-devtools
14 BuildArchitectures: noarch
15 Requires: smeserver-release >= 7
16 Requires: sarg >= 2.2
17 AutoReqProv: no
18
19 %changelog
20 * Tue Jan 9 2007 Stephen Noble <support@dungog.net>
21 - add db setting for lastlog correctly
22 - [2.2.1-4]
23
24 * Tue Jan 9 2007 Stephen Noble <support@dungog.net>
25 - remove duplicate access_log [sme 2217]
26 - add db setting for lastlog, ie 365 = 1yr
27 - [2.2.1-3]
28
29 * Tue Nov 14 2006 Stephen Noble <support@dungog.net>
30 - requires sarg >= 2.2
31 - cosmetic update of /var/www/sarg/index.htm
32 - [2.2.1-2]
33
34 * Tue Oct 17 2006 Stephen Noble <support@dungog.net>
35 - update to sarg 2.2.1
36 - removed sarg binary, use seperate sarg rpm + dependancies
37 - [2.2.1-1]
38
39 * Tue Oct 17 2006 Stephen Noble <support@dungog.net>
40 - add index.html files to avoid confusion and 404 errors
41 - removed -p option (ip only) now sorts users as well
42 - [1.4.1-6]
43
44 * Sun Oct 15 2006 Stephen Noble <support@dungog.net>
45 - db setting to use dansguardian instead of squid
46 - /usr/bin/sarglog [squid|dansguardian]
47
48 * Sun Oct 08 2006 Michel Van hees <michel@vanhees.cc>
49 - Bug fixing in cron script
50 - Make report by name and by ip
51
52 * Mon May 22 2006 Michel Van hees <michel@vanhees.cc>
53 - Bug fixing
54
55 * Tue May 9 2006 Michel Van hees <michel@vanhees.cc>
56 - Integrate binary
57
58 * Sun May 7 2006 Michel Van hees <michel@vanhees.cc>
59 - Debug cron job
60
61 * Mon May 1 2006 Michel Van hees <michel@vanhees.cc>
62 - start developpement
63
64 %description
65 Sarg templates for SME Server release 7
66
67 %prep
68 %setup
69
70 %build
71 perl createlinks
72 mkdir -p root/etc/e-smith/db/configuration/defaults/sarg
73 echo "service" > root/etc/e-smith/db/configuration/defaults/sarg/type
74 echo "squid" > root/etc/e-smith/db/configuration/defaults/sarg/logfile
75 echo "English" > root/etc/e-smith/db/configuration/defaults/sarg/language
76 echo "bytes" > root/etc/e-smith/db/configuration/defaults/sarg/values
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
81 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
82 --file '/usr/bin/sarglog' 'attr(755,root,root)' \
83 > %{name}-%{version}-filelist
84 echo "%doc " >> %{name}-%{version}-filelist
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %pre
90
91 %preun
92 %post
93 #new installs
94 if [ $1 = 1 ] ; then
95 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
96 /etc/rc.d/init.d/httpd-e-smith sigusr1
97 /etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1
98 fi
99
100 /sbin/e-smith/expand-template /etc/sarg/sarg.conf
101 /sbin/e-smith/expand-template /etc/cron.daily/sarg
102 /sbin/e-smith/expand-template /etc/cron.weekly/sarg
103 /sbin/e-smith/expand-template /etc/cron.monthly/sarg
104
105
106 #/etc/e-smith/events/actions/initialize-default-databases
107
108 echo ''
109 echo 'optional settings for sarg, first option is default'
110 echo ''
111 echo 'config setprop sarg language [English|Dutch|French|German|Spanish|Italian|...]'
112 echo 'config setprop sarg values [bytes|abbreviation]'
113 echo 'config setprop sarg logfile [squid|dansguardian]'
114 echo 'config setprop sarg lastlog [0|365|num.of.days.to.keep.logs]'
115 echo ''
116 echo 'expand-templates shortcut with /usr/bin/sarglog'
117 echo ''
118
119
120 %postun
121 #uninstalls
122 if [ $1 = 0 ] ; then
123 DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
124 for db in $DBS ; do
125 /sbin/e-smith/db $db delete sarg 2>/dev/null
126 done
127
128 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
129 /etc/rc.d/init.d/httpd-e-smith sigusr1
130 fi
131
132 %files -f %{name}-%{version}-filelist
133 %defattr(-,root,root)

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