wok-next view sarg/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
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 SPLIT="$PACKAGE-php"
16 compile_rules()
17 {
18 ./configure \
19 --sysconfdir=/etc/sarg \
20 --bindir=/usr/bin \
21 --enable-htmldir=/var/www \
22 --enable-fontdir=/usr/share/sarg/fonts \
23 --enable-imagedir=/usr/share/sarg/images \
24 --enable-sargphp=/var/www/sarg-php &&
25 make &&
26 make install
27 }
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 sarg)
33 mkdir -p $fs/usr $fs/usr/share
34 #cp -a $install/var $fs
35 cp -a $install/etc $fs
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/share/sarg $fs/usr/share
39 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
40 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
41 $fs/etc/sarg/sarg.conf
42 ;;
43 sarg-php)
44 mkdir -p $fs/var/www
46 cp -pa $src/sarg-php $fs/var/www
47 # Fix permissions
48 chmod 755 $fs/var/www/sarg-php
49 chmod 644 -R $fs/var/www/sarg-php/*
50 chmod 755 $fs/var/www/sarg-php/locale
51 CAT="network|?"
52 DEPENDS="lighttpd php"
53 ;;
54 esac
55 }