wok-4.x view openvas-scanner/receipt @ rev 10581
openvas-scanner: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 09:09:01 2011 +0200 (2011-05-26) |
parents | 954672133ad3 |
children | 403c43ac9238 |
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 \
13 openvas-libraries-dev pkg-config openssl-dev"
14 CONFIG_FILES="/var/lib/openvas /etc/openvas"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 --localstatedir=/var --sysconfdir=/etc \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $_pkg/etc $fs
33 cp -a $_pkg/var $fs
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 }
38 post_install()
39 {
40 [ -s $1/var/lib/openvas/CA/cacert.pem ] ||
41 chroot $1/ /usr/sbin/openvas-mkcert <<EOT
44 $(. /etc/locale.conf ; echo ${LANG#*_})
45 $(cat /etc/TZ)
47 $(cat /etc/hostname)
49 EOT
50 }