wok-6.x view openvas-scanner/receipt @ rev 8301

Fix: shared-mime-info now take care of --root= option
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Feb 01 02:50:01 2011 +0100 (2011-02-01)
parents db63cccdb8d4
children ad786a87b22e
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="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 }