wok-next view sarg/receipt @ rev 20464

Combine receipts (final)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 19:43:44 2018 +0200 (2018-03-07)
parents dd1920b0cc5d
children 757d032c55c7
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="http://sarg.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SPLIT="sarg-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 && make && make install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 sarg)
30 mkdir -p $fs/usr $fs/usr/share
31 #cp -a $install/var $fs
32 cp -a $install/etc $fs
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share/sarg $fs/usr/share
36 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
37 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
38 $fs/etc/sarg/sarg.conf
39 ;;
40 sarg-php)
41 mkdir -p $fs/var/www
43 cp -pa $src/sarg-php $fs/var/www
44 # Fix perms
45 chmod 755 $fs/var/www/sarg-php
46 chmod 644 -R $fs/var/www/sarg-php/*
47 chmod 755 $fs/var/www/sarg-php/locale
48 CAT="network|?"
49 DEPENDS="lighttpd php"
50 ;;
51 esac
52 }