wok-current view openvas-scanner/receipt @ rev 10543

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