wok-stable view openvas-scanner/receipt @ rev 11726

Up tcsh (6.18.01)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 21 09:03:46 2012 +0100 (2012-02-21)
parents ff6e5ecde41b
children
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 gnutls-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 }