wok-6.x annotate sarg/receipt @ rev 14993
iptraf: update receipt
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sat Aug 10 02:01:31 2013 +0000 (2013-08-10) |
parents | 012178e959df |
children | 408c87fa22ca |
rev | line source |
---|---|
pascal@2285 | 1 # SliTaz package receipt. |
pascal@2285 | 2 |
pascal@2285 | 3 PACKAGE="sarg" |
erjo@12096 | 4 VERSION="2.3.1" |
pascal@2285 | 5 CATEGORY="network" |
pascal@2285 | 6 SHORT_DESC="Squid Analysis Report Generator." |
pascal@2285 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2285 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2285 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@2285 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@2285 | 11 |
pascal@2285 | 12 # Rules to configure and make the package. |
pascal@2285 | 13 compile_rules() |
pascal@2285 | 14 { |
erjo@12096 | 15 ./configure --sysconfdir=/etc/sarg \ |
erjo@12096 | 16 --bindir=/usr/bin \ |
erjo@12096 | 17 --enable-htmldir=/var/www \ |
erjo@12096 | 18 --enable-fontdir=/usr/share/sarg/fonts \ |
erjo@12096 | 19 --enable-imagedir=/usr/share/sarg/images \ |
erjo@12096 | 20 --enable-sargphp=/var/www/sarg-php \ |
erjo@12096 | 21 && make && make install |
pascal@2285 | 22 } |
pascal@2285 | 23 |
pascal@2285 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 25 genpkg_rules() |
pascal@2285 | 26 { |
erjo@12096 | 27 mkdir -p $fs/usr $fs/usr/share |
erjo@12096 | 28 cp -a $install/var $fs |
erjo@12096 | 29 cp -a $install/etc $fs |
erjo@12096 | 30 cp -a $install/usr/bin $fs/usr |
erjo@12096 | 31 cp -a $install/usr/share/sarg $fs/usr/share |
erjo@12151 | 32 |
erjo@12151 | 33 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 34 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 35 $fs/etc/sarg/sarg.conf |
pascal@2285 | 36 } |
pascal@2285 | 37 |