wok-current view sarg/receipt @ rev 11465

seed: add intltool to build_depends
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 17 11:45:19 2011 +0100 (2011-12-17)
parents 13a75a74f772
children 012178e959df
line source
1 # SliTaz package receipt.
3 PACKAGE="sarg"
4 VERSION="2.2.6"
5 CATEGORY="network"
6 SHORT_DESC="Squid Analysis Report Generator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure --prefix=/usr --infodir=/usr/share/info \
17 --enable-sysconfdir=/etc/sarg --enable-htmldir=/var/www \
18 --mandir=/usr/share/man $CONFIGURE_ARGS &&
19 make || return 1
20 sed -e "s|/usr/bin|$PWD/_pkg/usr/bin|" \
21 -e "s|/etc/sarg|$PWD/_pkg/etc/sarg|" \
22 -e "s|/var/www|$PWD/_pkg/var/www|" \
23 -e "s|/usr/local/man/man1|$PWD/_pkg/usr/man/man1|" \
24 < Makefile > Makefile.install
25 mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/etc/sarg $PWD/_pkg/var/www \
26 $PWD/_pkg/usr/man/man1
27 make -f Makefile.install install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $_pkg/var $fs
35 cp -a $_pkg/etc $fs
36 rm -rf $fs/etc/sarg/sarg-php
37 cp -a $_pkg/usr/bin $fs/usr
38 }