wok-next view sarg/receipt @ rev 19367
Up tazlito (428), links (2.13)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu Aug 04 19:53:20 2016 +0200 (2016-08-04) |
parents | 408c87fa22ca |
children | 4396aed7eb01 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sarg"
4 VERSION="2.3.1"
5 CATEGORY="network"
6 SHORT_DESC="Squid Analysis Report Generator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 ./configure --sysconfdir=/etc/sarg \
17 --bindir=/usr/bin \
18 --enable-htmldir=/var/www \
19 --enable-fontdir=/usr/share/sarg/fonts \
20 --enable-imagedir=/usr/share/sarg/images \
21 --enable-sargphp=/var/www/sarg-php \
22 && make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/usr/share
29 #cp -a $install/var $fs
30 cp -a $install/etc $fs
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/share/sarg $fs/usr/share
34 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
35 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
36 $fs/etc/sarg/sarg.conf
37 }