wok-6.x view ntop/receipt @ rev 4444

Up: midori (0.2)
author Mallory Mollo <mallory@sweetpeople.org>
date Tue Nov 03 23:27:34 2009 +0100 (2009-11-03)
parents 3b5f5f0ff01e
children bee79018e13a
line source
1 # SliTaz package receipt.
3 PACKAGE="ntop"
4 VERSION="3.3.7"
5 CATEGORY="network"
6 SHORT_DESC="Network traffic probe."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.ntop.org/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="zlib openssl libpng libpcap glibc gdbm rrdtool perl pcre"
12 BUILD_DEPENDS="zlib-dev openssl-dev libpng-dev libpcap libtool glibc-dev gdbm-dev rrdtool autoconf automake rrdtool-dev"
13 CONFIG_FILES="/etc/ntop"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./autogen.sh --prefix=/usr --infodir=/usr/share/info \
20 --sysconfdir=/etc --localstatedir=/var \
21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install install-data-as
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib/plugins $fs/usr/share
30 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
31 cp -a $_pkg/usr/lib/ntop $fs/usr/lib
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/share/ntop $fs/usr/share
34 chown -R 80.80 $fs/usr/share/ntop
35 cp -a $_pkg/usr/bin $fs
36 cp -a $_pkg/etc $fs
37 cp -a $_pkg/var $fs
39 # fix perms for /var/ntop
40 chown nobody.nogroup $fs/var/ntop
42 # Copy startup script and fix perms
43 cp -a stuff/etc $fs
44 chown root.root $fs/etc/init.d/ntop
46 # Package all ntop pkgs
47 for i in $(cd $WOK; ls -d ntop-*)
48 do
49 tazwok genpkg $i
50 done
51 }