wok-stable view openvas-scanner/receipt @ rev 4786
ruby: back to previous. Unwanted commit.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Jan 16 23:08:16 2010 +0100 (2010-01-16) |
parents | 1b84ad07dd56 |
children | db63cccdb8d4 |
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 ] || openvas-mkcert <<EOT
42 $(. /etc/locale.conf ; echo ${LANG#*_})
43 $(cat /etc/TZ)
45 $(cat /etc/hostname)
47 EOT
48 }
50 SELF_INSTALL=1