wok annotate sarg/receipt @ rev 24034
Openssh (8.5p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 08 09:21:26 2021 +0000 (2021-04-08) |
parents | 352e1cee9466 |
children | e919c5a2742d |
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@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@23630 | 18 |
Hans-G?nter@21859 | 19 ./configure \ |
Hans-G?nter@21859 | 20 --sysconfdir=/etc/sarg \ |
Hans-G?nter@21859 | 21 --bindir=/usr/bin \ |
Hans-G?nter@21859 | 22 --htmldir=/var/www \ |
Hans-G?nter@21859 | 23 --enable-fontdir=/usr/share/sarg/fonts \ |
Hans-G?nter@21859 | 24 --enable-imagedir=/usr/share/sarg/images \ |
Hans-G?nter@21859 | 25 --enable-sargphp=/var/www/sarg-php && |
Hans-G?nter@21859 | 26 make && |
Hans-G?nter@21859 | 27 make install |
pascal@2285 | 28 } |
pascal@2285 | 29 |
pascal@2285 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2285 | 31 genpkg_rules() |
pascal@2285 | 32 { |
Hans-G?nter@21859 | 33 mkdir -p $fs/usr/share |
Hans-G?nter@21859 | 34 |
Hans-G?nter@21859 | 35 #cp -a $install/var $fs |
Hans-G?nter@21859 | 36 cp -a $install/etc $fs |
Hans-G?nter@21859 | 37 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21859 | 38 cp -a $install/usr/share/sarg $fs/usr/share |
Hans-G?nter@21859 | 39 |
Hans-G?nter@23630 | 40 sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ |
erjo@12151 | 41 -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ |
erjo@12151 | 42 $fs/etc/sarg/sarg.conf |
pascal@2285 | 43 } |