Name free-sa Version Release alt1 Packager Avramenko Andrew liks at al

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Name: free-sa
Version: 1.5.1
Release: alt1
Packager: Avramenko Andrew <liks at altlinux.ru>
Summary: Squid report generator per user/ip/name
URL: http://free-sa.sourceforge.net/
Source: %name-%version.tar.gz
Patch0: %name-alt-global.mk.patch
Patch1: %name-as-needed.patch
Patch2: %name-alt-makefile.patch
License: GPL
Group: Monitoring
%description
Free-SA is statistic analyzer for daemons log files similar to SARG.
Its main advantages over SARG are much better speed (7x-20x times),
more reports support, crossplatform work and W3C compliance of generated
HTML/CSS reports code.
%prep
%setup -q -n %name-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%make
%install
make install DESTDIR=%buildroot
mkdir -p %buildroot/%_mandir
mkdir -p %buildroot/%_sysconfdir/%name
mkdir -p %buildroot/var/www/html/%name/
mv %buildroot/usr/man/* %buildroot/%_mandir/
rm -rf %buildroot/usr/man
cp %buildroot%_sysconfdir/%name/%name.conf.sample %buildroot/%_sysconfdir/%name/%name.conf
cp -R %buildroot/var/www/htdocs/ %buildroot/var/www/html/%name
%files
%defattr(-,root,squid)
%_man1dir/*
%_man5dir/*
%_bindir/%name
%_datadir/%name/*
%_datadir/doc/%name-%version/*
%config(noreplace) %_sysconfdir/%name/*
%attr(0775,root,squid) %dir /var/www/html/%name
%dir /var/www/html/%name/*
%dir /var/cache/%name