wok-current annotate sarg/receipt @ rev 21883
Up fontforge (20190801)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 30 12:31:11 2019 +0200 (2019-09-30) |
parents | d310b6c488c0 |
children | 64d159b437a1 |
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 { |
pascal@21871 | 17 sed -i 's/@mkdir_p@/mkdir -p/' po/Makefile* |
Hans-G?nter@21859 | 18 ./configure \ |
Hans-G?nter@21859 | 19 --sysconfdir=/etc/sarg \ |
Hans-G?nter@21859 | 20 --bindir=/usr/bin \ |
Hans-G?nter@21859 | 21 --htmldir=/var/www \ |
Hans-G?nter@21859 | 22 --enable-fontdir=/usr/share/sarg/fonts \ |
Hans-G?nter@21859 | 23 --enable-imagedir=/usr/share/sarg/images \ |
Hans-G?nter@21859 | 24 --enable-sargphp=/var/www/sarg-php && |
Hans-G?nter@21859 | 25 make && |
Hans-G?nter@21859 | 26 make install |
pascal@2285 | 27 } |
pascal@2285 | 28 |
pascal@2285 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 30 genpkg_rules() |
pascal@2285 | 31 { |
Hans-G?nter@21859 | 32 mkdir -p $fs/usr/share |
Hans-G?nter@21859 | 33 |
Hans-G?nter@21859 | 34 #cp -a $install/var $fs |
Hans-G?nter@21859 | 35 cp -a $install/etc $fs |
Hans-G?nter@21859 | 36 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21859 | 37 cp -a $install/usr/share/sarg $fs/usr/share |
Hans-G?nter@21859 | 38 |
erjo@12151 | 39 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 40 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 41 $fs/etc/sarg/sarg.conf |
pascal@2285 | 42 } |