wok-current annotate openvas-scanner/receipt @ rev 10583

openvas-scanner: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 09:19:40 2011 +0200 (2011-05-26)
parents ff6e5ecde41b
children 73641efed1cc
rev   line source
pascal@4649 1 # SliTaz package receipt.
pascal@4649 2
pascal@4649 3 PACKAGE="openvas-scanner"
pascal@4649 4 VERSION="3.0.0"
pascal@4649 5 CATEGORY="network"
pascal@4649 6 SHORT_DESC="Network security scanner (scanner)."
pascal@4649 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4649 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4649 9 WEB_SITE="http://www.openvas.org/"
pascal@4649 10 WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL"
pascal@4654 11 DEPENDS="openvas-libraries openssl"
pascal@10581 12 BUILD_DEPENDS="libpcap libpcap-dev util-linux-ng-uuid openvas-libraries \
pascal@10583 13 openvas-libraries-dev pkg-config gnutls-dev"
pascal@4654 14 CONFIG_FILES="/var/lib/openvas /etc/openvas"
pascal@4649 15
pascal@4649 16 # Rules to configure and make the package.
pascal@4649 17 compile_rules()
pascal@4649 18 {
pascal@4649 19 cd $src
pascal@4649 20 ./configure --prefix=/usr \
pascal@4649 21 --localstatedir=/var --sysconfdir=/etc \
pascal@4649 22 --mandir=/usr/share/man \
pascal@4649 23 $CONFIGURE_ARGS &&
pascal@4649 24 make &&
pascal@4649 25 make DESTDIR=$PWD/_pkg install
pascal@4649 26 }
pascal@4649 27
pascal@4649 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4649 29 genpkg_rules()
pascal@4649 30 {
pascal@4649 31 mkdir -p $fs/usr
pascal@4649 32 cp -a $_pkg/etc $fs
pascal@4649 33 cp -a $_pkg/var $fs
pascal@4649 34 cp -a $_pkg/usr/bin $fs/usr
pascal@4649 35 cp -a $_pkg/usr/sbin $fs/usr
pascal@4649 36 }
pascal@4654 37
pascal@4654 38 post_install()
pascal@4654 39 {
pascal@5125 40 [ -s $1/var/lib/openvas/CA/cacert.pem ] ||
pascal@5125 41 chroot $1/ /usr/sbin/openvas-mkcert <<EOT
pascal@4654 42
pascal@4654 43
pascal@4654 44 $(. /etc/locale.conf ; echo ${LANG#*_})
pascal@4654 45 $(cat /etc/TZ)
pascal@4654 46
pascal@4654 47 $(cat /etc/hostname)
pascal@4654 48
pascal@4654 49 EOT
pascal@4654 50 }