wok-current view openvas-scanner/receipt @ rev 18308
jansson-dev: add deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 25 12:02:03 2015 +0200 (2015-08-25) |
parents | 02cc67a2115f |
children | 9e01bc6321ea |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.openvas.org/"
11 WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL"
12 CONFIG_FILES="/var/lib/openvas /etc/openvas"
14 DEPENDS="openvas-libraries openssl"
15 BUILD_DEPENDS="libpcap libpcap-dev util-linux-uuid openvas-libraries \
16 openvas-libraries-dev pkg-config gnutls-dev glib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --prefix=/usr \
23 --localstatedir=/var --sysconfdir=/etc \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/etc $fs
35 cp -a $install/var $fs
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/sbin $fs/usr
38 }
40 post_install()
41 {
42 [ -s $1/var/lib/openvas/CA/cacert.pem ] ||
43 chroot $1/ /usr/sbin/openvas-mkcert <<EOT
46 $(. /etc/locale.conf ; echo ${LANG#*_})
47 $(cat /etc/TZ)
49 $(cat /etc/hostname)
51 EOT
52 }