wok-stable view darkstat/receipt @ rev 10728

Fixed all sourced slitaz-dev-tools receipts. The way cook works is it keeps the .hg folder when downloading mecurial sources. By downloading the $VERSION.tar.bz2 and renaming it $SOURCE-$VERSION.tar.bz2 we don't keep the .hg folder in source tarball. Repos will be backup on source dvd anyway so this does save a little bit of space.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 28 21:18:14 2011 +0000 (2011-05-28)
parents 7a484b194559
children
line source
1 # SliTaz package receipt.
3 PACKAGE="darkstat"
4 VERSION="3.0.713"
5 CATEGORY="network"
6 SHORT_DESC="Simpel network traffic statistics"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="libpcap zlib"
9 BUILD_DEPENDS="libpcap-dev zlib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://dmr.ath.cx/net/darkstat/"
12 WGET_URL="http://dmr.ath.cx/net/darkstat/$TARBALL"
13 TAGS="network monitor stats statistics"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr \
20 --with-chroot-dir=/var/lib/darkstat
22 make && make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/var/lib/darkstat
29 cp -a $_pkg/usr/sbin $fs/usr
31 }