wok-current annotate ntop/receipt @ rev 8069
Down: elfutils to 0.150. Test run-prelink-addr-test.sh was failing in 0.151.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jan 21 13:50:12 2011 +0000 (2011-01-21) |
parents | bee79018e13a |
children | ef7ffda1c22c |
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" |
slaxemulator@7168 | 12 BUILD_DEPENDS="zlib-dev openssl-dev libpng-dev libpcap-dev libtool glibc-dev gdbm-dev rrdtool autoconf automake rrdtool-dev" |
erjo@1463 | 13 CONFIG_FILES="/etc/ntop" |
jozee@4969 | 14 TAGS="network" |
erjo@1463 | 15 |
erjo@1463 | 16 # Rules to configure and make the package. |
erjo@1463 | 17 compile_rules() |
erjo@1463 | 18 { |
erjo@1463 | 19 cd $src |
erjo@1463 | 20 ./autogen.sh --prefix=/usr --infodir=/usr/share/info \ |
erjo@1463 | 21 --sysconfdir=/etc --localstatedir=/var \ |
erjo@1463 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
erjo@1463 | 23 make && |
erjo@1463 | 24 make DESTDIR=$PWD/_pkg install install-data-as |
erjo@1463 | 25 } |
erjo@1463 | 26 |
erjo@1463 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1463 | 28 genpkg_rules() |
erjo@1463 | 29 { |
erjo@1463 | 30 mkdir -p $fs/usr/lib/plugins $fs/usr/share |
erjo@1463 | 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@1463 | 32 cp -a $_pkg/usr/lib/ntop $fs/usr/lib |
erjo@1463 | 33 cp -a $_pkg/usr/bin $fs/usr |
erjo@1463 | 34 cp -a $_pkg/usr/share/ntop $fs/usr/share |
erjo@1463 | 35 chown -R 80.80 $fs/usr/share/ntop |
erjo@1463 | 36 cp -a $_pkg/usr/bin $fs |
erjo@1463 | 37 cp -a $_pkg/etc $fs |
erjo@1463 | 38 cp -a $_pkg/var $fs |
erjo@1463 | 39 |
erjo@1463 | 40 # fix perms for /var/ntop |
erjo@1463 | 41 chown nobody.nogroup $fs/var/ntop |
erjo@1463 | 42 |
erjo@1463 | 43 # Copy startup script and fix perms |
erjo@1463 | 44 cp -a stuff/etc $fs |
erjo@1463 | 45 chown root.root $fs/etc/init.d/ntop |
erjo@1463 | 46 |
erjo@1463 | 47 # Package all ntop pkgs |
erjo@1463 | 48 for i in $(cd $WOK; ls -d ntop-*) |
erjo@1463 | 49 do |
erjo@1463 | 50 tazwok genpkg $i |
erjo@1463 | 51 done |
erjo@1463 | 52 } |
erjo@1463 | 53 |