wok-next view ntop/receipt @ rev 9712
mousepad: fix missing build dep: startup-notification-dev
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 08 22:56:23 2011 +0200 (2011-05-08) |
parents | bee79018e13a |
children | ef7ffda1c22c |
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-dev libtool glibc-dev gdbm-dev rrdtool autoconf automake rrdtool-dev"
13 CONFIG_FILES="/etc/ntop"
14 TAGS="network"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./autogen.sh --prefix=/usr --infodir=/usr/share/info \
21 --sysconfdir=/etc --localstatedir=/var \
22 --mandir=/usr/share/man $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install install-data-as
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib/plugins $fs/usr/share
31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
32 cp -a $_pkg/usr/lib/ntop $fs/usr/lib
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share/ntop $fs/usr/share
35 chown -R 80.80 $fs/usr/share/ntop
36 cp -a $_pkg/usr/bin $fs
37 cp -a $_pkg/etc $fs
38 cp -a $_pkg/var $fs
40 # fix perms for /var/ntop
41 chown nobody.nogroup $fs/var/ntop
43 # Copy startup script and fix perms
44 cp -a stuff/etc $fs
45 chown root.root $fs/etc/init.d/ntop
47 # Package all ntop pkgs
48 for i in $(cd $WOK; ls -d ntop-*)
49 do
50 tazwok genpkg $i
51 done
52 }