wok-next view openvas-scanner/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d43bf7aae921
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openvas-scanner"
4 VERSION="5.0.8"
5 CATEGORY="network"
6 SHORT_DESC="Network security scanner - scanner"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.openvas.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://wald.intevation.org/frs/download.php/2436/$TARBALL"
14 BUILD_DEPENDS="libgcrypt-dev glib-dev redis openvas-libraries-dev \
15 gnutls-dev libpcap-dev cmake doxygen"
17 compile_rules() {
18 mkdir -p build
19 cd build
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DLOCALSTATEDIR=/var \
23 -DCMAKE_BUILD_TYPE=Release \
24 .. &&
25 make &&
26 make install
27 }
29 genpkg_rules() {
30 copy @std
31 DEPENDS="glib libgcrypt libgpg-error openvas-libraries"
32 CONFIG_FILES="/var/lib/openvas/"
33 }
35 post_install() {
36 [ -s "$1/var/lib/openvas/CA/cacert.pem" ] ||
37 chroot "$1/" /usr/sbin/openvas-mkcert <<EOT
40 $(. /etc/locale.conf; echo ${LANG#*_})
41 $(cat /etc/TZ)
43 $(cat /etc/hostname)
45 EOT
46 }