wok-next view sarg/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 4396aed7eb01 |
children | d5aab818505e |
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 &&
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 }