wok-next annotate sarg/receipt @ rev 15745
slitaz-configs: remove dep on boxes and clearlooks, this brings the GTK in justX since openbox depends on slitaz-configs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 02 20:21:53 2014 +0100 (2014-01-02) |
parents | 408c87fa22ca |
children | 4396aed7eb01 |
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@15001 | 8 LICENSE="GPL2" |
pascal@2285 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2285 | 10 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@2285 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@2285 | 12 |
pascal@2285 | 13 # Rules to configure and make the package. |
pascal@2285 | 14 compile_rules() |
pascal@2285 | 15 { |
erjo@12096 | 16 ./configure --sysconfdir=/etc/sarg \ |
erjo@12096 | 17 --bindir=/usr/bin \ |
erjo@12096 | 18 --enable-htmldir=/var/www \ |
erjo@12096 | 19 --enable-fontdir=/usr/share/sarg/fonts \ |
erjo@12096 | 20 --enable-imagedir=/usr/share/sarg/images \ |
erjo@12096 | 21 --enable-sargphp=/var/www/sarg-php \ |
erjo@12096 | 22 && make && make install |
pascal@2285 | 23 } |
pascal@2285 | 24 |
pascal@2285 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 26 genpkg_rules() |
pascal@2285 | 27 { |
erjo@12096 | 28 mkdir -p $fs/usr $fs/usr/share |
pascal@15034 | 29 #cp -a $install/var $fs |
erjo@12096 | 30 cp -a $install/etc $fs |
erjo@12096 | 31 cp -a $install/usr/bin $fs/usr |
erjo@12096 | 32 cp -a $install/usr/share/sarg $fs/usr/share |
erjo@12151 | 33 |
erjo@12151 | 34 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 35 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 36 $fs/etc/sarg/sarg.conf |
pascal@2285 | 37 } |
pascal@2285 | 38 |