wok-stable diff ntop/receipt @ rev 2362
Add net6
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 05 11:43:31 2009 +0100 (2009-03-05) |
parents | |
children | 7d4197e5834d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ntop/receipt Thu Mar 05 11:43:31 2009 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ntop" 1.7 +VERSION="3.3.7" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Network traffic probe." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.ntop.org/" 1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.14 +DEPENDS="zlib openssl libpng libpcap glibc gdbm rrdtool perl" 1.15 +BUILD_DEPENDS="zlib-dev openssl-dev libpng-dev libpcap libtool glibc-dev gdbm-dev rrdtool autoconf automake rrdtool-dev" 1.16 +CONFIG_FILES="/etc/ntop" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./autogen.sh --prefix=/usr --infodir=/usr/share/info \ 1.23 + --sysconfdir=/etc --localstatedir=/var \ 1.24 + --mandir=/usr/share/man $CONFIGURE_ARGS && 1.25 + make && 1.26 + make DESTDIR=$PWD/_pkg install install-data-as 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/lib/plugins $fs/usr/share 1.33 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.34 + cp -a $_pkg/usr/lib/ntop $fs/usr/lib 1.35 + cp -a $_pkg/usr/bin $fs/usr 1.36 + cp -a $_pkg/usr/share/ntop $fs/usr/share 1.37 + chown -R 80.80 $fs/usr/share/ntop 1.38 + cp -a $_pkg/usr/bin $fs 1.39 + cp -a $_pkg/etc $fs 1.40 + cp -a $_pkg/var $fs 1.41 + 1.42 + # fix perms for /var/ntop 1.43 + chown nobody.nogroup $fs/var/ntop 1.44 + 1.45 + # Copy startup script and fix perms 1.46 + cp -a stuff/etc $fs 1.47 + chown root.root $fs/etc/init.d/ntop 1.48 + 1.49 + # Package all ntop pkgs 1.50 + for i in $(cd $WOK; ls -d ntop-*) 1.51 + do 1.52 + tazwok genpkg $i 1.53 + done 1.54 +} 1.55 +