wok annotate sarg/receipt @ rev 11228

Add from wok-undigest: verbiste vsftpd wammu wol wput
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 04 12:36:01 2011 +0100 (2011-11-04)
parents 13a75a74f772
children 012178e959df
rev   line source
pascal@2285 1 # SliTaz package receipt.
pascal@2285 2
pascal@2285 3 PACKAGE="sarg"
erjo@4660 4 VERSION="2.2.6"
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