wok-6.x rev 4654

openvas-scanner: build certificate
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 27 18:11:20 2009 +0100 (2009-12-27)
parents d8da6640881f
children 84b0d5965bb7
files openvas-scanner/receipt
line diff
     1.1 --- a/openvas-scanner/receipt	Sun Dec 27 14:28:40 2009 +0100
     1.2 +++ b/openvas-scanner/receipt	Sun Dec 27 18:11:20 2009 +0100
     1.3 @@ -8,8 +8,9 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://www.openvas.org/"
     1.6  WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL"
     1.7 -DEPENDS="openvas-libraries"
     1.8 +DEPENDS="openvas-libraries openssl"
     1.9  BUILD_DEPENDS="openvas-libraries openvas-libraries-dev pkg-config"
    1.10 +CONFIG_FILES="/var/lib/openvas /etc/openvas"
    1.11  
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14 @@ -32,3 +33,18 @@
    1.15  	cp -a $_pkg/usr/bin $fs/usr
    1.16  	cp -a $_pkg/usr/sbin $fs/usr
    1.17  }
    1.18 +
    1.19 +post_install()
    1.20 +{
    1.21 +	[ -s $1/var/lib/openvas/CA/cacert.pem ] || openvas-mkcert <<EOT
    1.22 +
    1.23 +
    1.24 +$(. /etc/locale.conf ; echo ${LANG#*_})
    1.25 +$(cat /etc/TZ)
    1.26 +
    1.27 +$(cat /etc/hostname)
    1.28 +
    1.29 +EOT
    1.30 +}
    1.31 +
    1.32 +SELF_INSTALL=1