wok-next view sarg/receipt @ rev 4149
Fix: xfce4 dependency looping
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Sep 20 16:13:53 2009 +0000 (2009-09-20) |
parents | |
children | 083f2c3ff6c7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sarg"
4 VERSION="2.2.5"
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 }