wok-6.x view sarg/receipt @ rev 23630
updated sarg and sarg-php (2.3.11 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 08:01:58 2020 +0100 (2020-04-17) |
parents | 352e1cee9466 |
children | e919c5a2742d |
line source
1 # SliTaz package receipt.
3 PACKAGE="sarg"
4 VERSION="2.4.0"
5 CATEGORY="network"
6 SHORT_DESC="Squid Analysis Report Generator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/sarg/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 sed -i 's/@mkdir_p@/mkdir -p/' po/Makefile*
19 ./configure \
20 --sysconfdir=/etc/sarg \
21 --bindir=/usr/bin \
22 --htmldir=/var/www \
23 --enable-fontdir=/usr/share/sarg/fonts \
24 --enable-imagedir=/usr/share/sarg/images \
25 --enable-sargphp=/var/www/sarg-php &&
26 make &&
27 make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share
35 #cp -a $install/var $fs
36 cp -a $install/etc $fs
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/sarg $fs/usr/share
40 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
41 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
42 $fs/etc/sarg/sarg.conf
43 }