wok-next view sarg/receipt @ rev 21153

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 16:45:41 2019 +0200 (2019-01-31)
parents 757d032c55c7
children 5f865aa0bfc6
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="https://sourceforge.net/projects/sarg/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SPLIT="$PACKAGE-php"
16 compile_rules() {
17 ./configure \
18 --sysconfdir=/etc/sarg \
19 --bindir=/usr/bin \
20 --enable-htmldir=/var/www \
21 --enable-fontdir=/usr/share/sarg/fonts \
22 --enable-imagedir=/usr/share/sarg/images \
23 --enable-sargphp=/var/www/sarg-php \
24 &&
25 make &&
26 make install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 sarg)
32 mkdir -p $fs/usr $fs/usr/share
33 #cp -a $install/var $fs
34 cp -a $install/etc $fs
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/share/sarg $fs/usr/share
38 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
39 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
40 $fs/etc/sarg/sarg.conf
41 ;;
42 sarg-php)
43 mkdir -p $fs/var/www
45 cp -pa $src/sarg-php $fs/var/www
46 # Fix perms
47 chmod 755 $fs/var/www/sarg-php
48 chmod 644 -R $fs/var/www/sarg-php/*
49 chmod 755 $fs/var/www/sarg-php/locale
50 CAT="network|?"
51 DEPENDS="lighttpd php"
52 ;;
53 esac
54 }