wok annotate sarg/receipt @ rev 24921
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 10 17:48:38 2022 +0000 (2022-04-10) |
parents | 64d159b437a1 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pascal@2285 | 1 # SliTaz package receipt. |
pascal@2285 | 2 |
pascal@2285 | 3 PACKAGE="sarg" |
Hans-G?nter@23630 | 4 VERSION="2.4.0" |
pascal@2285 | 5 CATEGORY="network" |
pascal@2285 | 6 SHORT_DESC="Squid Analysis Report Generator." |
pascal@2285 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
Hans-G?nter@21859 | 9 WEB_SITE="https://sourceforge.net/projects/sarg/" |
Hans-G?nter@21859 | 10 |
pascal@2285 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2285 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@2285 | 13 |
pascal@24348 | 14 # What is the latest version available today? |
pascal@24348 | 15 current_version() |
pascal@24348 | 16 { |
pascal@24348 | 17 wget -O - https://sourceforge.net/projects/sarg/files/sarg/ 2>/dev/null | \ |
pascal@24348 | 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 19 sed '/scope="row/!d;s|.*/sarg-||;s|.tar.*||;q' |
pascal@24348 | 20 } |
pascal@24348 | 21 |
pascal@2285 | 22 # Rules to configure and make the package. |
pascal@2285 | 23 compile_rules() |
pascal@2285 | 24 { |
pascal@21871 | 25 sed -i 's/@mkdir_p@/mkdir -p/' po/Makefile* |
Hans-G?nter@23630 | 26 |
Hans-G?nter@21859 | 27 ./configure \ |
Hans-G?nter@21859 | 28 --sysconfdir=/etc/sarg \ |
Hans-G?nter@21859 | 29 --bindir=/usr/bin \ |
Hans-G?nter@21859 | 30 --htmldir=/var/www \ |
Hans-G?nter@21859 | 31 --enable-fontdir=/usr/share/sarg/fonts \ |
Hans-G?nter@21859 | 32 --enable-imagedir=/usr/share/sarg/images \ |
Hans-G?nter@21859 | 33 --enable-sargphp=/var/www/sarg-php && |
Hans-G?nter@21859 | 34 make && |
Hans-G?nter@21859 | 35 make install |
pascal@2285 | 36 } |
pascal@2285 | 37 |
pascal@2285 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 39 genpkg_rules() |
pascal@2285 | 40 { |
Hans-G?nter@21859 | 41 mkdir -p $fs/usr/share |
Hans-G?nter@21859 | 42 |
Hans-G?nter@21859 | 43 #cp -a $install/var $fs |
Hans-G?nter@21859 | 44 cp -a $install/etc $fs |
Hans-G?nter@21859 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21859 | 46 cp -a $install/usr/share/sarg $fs/usr/share |
Hans-G?nter@21859 | 47 |
Hans-G?nter@23630 | 48 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 49 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 50 $fs/etc/sarg/sarg.conf |
pascal@2285 | 51 } |