wok-6.x view openvas-scanner/receipt @ rev 10674
fastthread: Fixed category.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 27 05:05:23 2011 +0000 (2011-05-27) |
parents | ff6e5ecde41b |
children | 73641efed1cc |
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 }