wok view openvas-scanner/receipt @ rev 25548
aaphoto: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 17:05:06 2023 +0000 (19 months ago) |
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 }