wok-current annotate ntop/receipt @ rev 3544

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