wok view sarg/receipt @ rev 25687

updated sc-im (0.8.2 -> 0.8.3)
author Hans-G?nter Theisgen
date Thu Apr 11 14:51:51 2024 +0100 (7 months ago)
parents 29df00e1e19d
children
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 '/pre[0-9]/d;/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;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 }