wok-current annotate sarg/receipt @ rev 21859
updated sarg and sarg-php (2.3.1 -> 2.3.11)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Sep 19 16:26:43 2019 +0100 (2019-09-19) |
parents | dd1920b0cc5d |
children | 352e1cee9466 |
rev | line source |
---|---|
pascal@2285 | 1 # SliTaz package receipt. |
pascal@2285 | 2 |
pascal@2285 | 3 PACKAGE="sarg" |
Hans-G?nter@21859 | 4 VERSION="2.3.11" |
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@2285 | 14 # Rules to configure and make the package. |
pascal@2285 | 15 compile_rules() |
pascal@2285 | 16 { |
Hans-G?nter@21859 | 17 ./configure \ |
Hans-G?nter@21859 | 18 --sysconfdir=/etc/sarg \ |
Hans-G?nter@21859 | 19 --bindir=/usr/bin \ |
Hans-G?nter@21859 | 20 --htmldir=/var/www \ |
Hans-G?nter@21859 | 21 --enable-fontdir=/usr/share/sarg/fonts \ |
Hans-G?nter@21859 | 22 --enable-imagedir=/usr/share/sarg/images \ |
Hans-G?nter@21859 | 23 --enable-sargphp=/var/www/sarg-php && |
Hans-G?nter@21859 | 24 make && |
Hans-G?nter@21859 | 25 make install |
pascal@2285 | 26 } |
pascal@2285 | 27 |
pascal@2285 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 29 genpkg_rules() |
pascal@2285 | 30 { |
Hans-G?nter@21859 | 31 mkdir -p $fs/usr/share |
Hans-G?nter@21859 | 32 |
Hans-G?nter@21859 | 33 #cp -a $install/var $fs |
Hans-G?nter@21859 | 34 cp -a $install/etc $fs |
Hans-G?nter@21859 | 35 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21859 | 36 cp -a $install/usr/share/sarg $fs/usr/share |
Hans-G?nter@21859 | 37 |
erjo@12151 | 38 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 39 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 40 $fs/etc/sarg/sarg.conf |
pascal@2285 | 41 } |