wok-current view openvas-scanner/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | df98a48adee2 |
children | bd7510903310 |
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="https://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 libgnutls"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/greenbone/openvas-scanner/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --prefix=/usr \
29 --localstatedir=/var --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/etc $fs
41 cp -a $install/var $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 }
46 post_install()
47 {
48 [ -s "$1/var/lib/openvas/CA/cacert.pem" ] ||
49 chroot "$1/" /usr/sbin/openvas-mkcert <<EOT
52 $(. /etc/locale.conf ; echo ${LANG#*_})
53 $(cat /etc/TZ)
55 $(cat /etc/hostname)
57 EOT
58 }