wok annotate sarg/receipt @ rev 2636

Up: slitaz-base-files (change release string) + slitaz-doc for 2.0
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 16 19:59:30 2009 +0200 (2009-04-16)
parents
children 083f2c3ff6c7
rev   line source
pascal@2285 1 # SliTaz package receipt.
pascal@2285 2
pascal@2285 3 PACKAGE="sarg"
pascal@2285 4 VERSION="2.2.5"
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 {
pascal@2285 15 cd $src
pascal@2285 16 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2285 17 --enable-sysconfdir=/etc/sarg --enable-htmldir=/var/www \
pascal@2285 18 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2285 19 make || return 1
pascal@2285 20 sed -e "s|/usr/bin|$PWD/_pkg/usr/bin|" \
pascal@2285 21 -e "s|/etc/sarg|$PWD/_pkg/etc/sarg|" \
pascal@2285 22 -e "s|/var/www|$PWD/_pkg/var/www|" \
pascal@2285 23 -e "s|/usr/local/man/man1|$PWD/_pkg/usr/man/man1|" \
pascal@2285 24 < Makefile > Makefile.install
pascal@2285 25 mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/etc/sarg $PWD/_pkg/var/www \
pascal@2285 26 $PWD/_pkg/usr/man/man1
pascal@2285 27 make -f Makefile.install 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 {
pascal@2285 33 mkdir -p $fs/usr
pascal@2285 34 cp -a $_pkg/var $fs
pascal@2285 35 cp -a $_pkg/etc $fs
pascal@2285 36 rm -rf $fs/etc/sarg/sarg-php
pascal@2285 37 cp -a $_pkg/usr/bin $fs/usr
pascal@2285 38 }
pascal@2285 39