wok view openvas-scanner/receipt @ rev 25282
updated rlwrap (0.43 -> 0.45.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 15:29:34 2022 +0100 (2022-07-18) |
parents | bd7510903310 |
children | 7364ffdaaa60 |
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="https://github.com/greenbone/openvas-scanner/archive/refs/tags/v$VERSION.tar.gz"
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 }