wok-6.x view sarg/receipt @ rev 24633

updated gtick again (0.5.4 -> 0.5.5)
author Hans-G?nter Theisgen
date Tue Mar 08 16:29:56 2022 +0100 (2022-03-08)
parents 64d159b437a1
children ad0bc3efbf37
line source
1 # SliTaz package receipt.
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 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/sarg/files/sarg/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed '/scope="row/!d;s|.*/sarg-||;s|.tar.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's/@mkdir_p@/mkdir -p/' po/Makefile*
27 ./configure \
28 --sysconfdir=/etc/sarg \
29 --bindir=/usr/bin \
30 --htmldir=/var/www \
31 --enable-fontdir=/usr/share/sarg/fonts \
32 --enable-imagedir=/usr/share/sarg/images \
33 --enable-sargphp=/var/www/sarg-php &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
43 #cp -a $install/var $fs
44 cp -a $install/etc $fs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/sarg $fs/usr/share
48 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \
49 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \
50 $fs/etc/sarg/sarg.conf
51 }