wok annotate openvas-scanner/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | df98a48adee2 |
children | bd7510903310 |
rev | line source |
---|---|
pascal@4649 | 1 # SliTaz package receipt. |
pascal@4649 | 2 |
pascal@4649 | 3 PACKAGE="openvas-scanner" |
pascal@4649 | 4 VERSION="3.0.0" |
pascal@4649 | 5 CATEGORY="network" |
pascal@4649 | 6 SHORT_DESC="Network security scanner (scanner)." |
pascal@4649 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@4649 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22812 | 10 WEB_SITE="https://www.openvas.org/" |
pascal@4649 | 11 WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL" |
pascal@15000 | 12 CONFIG_FILES="/var/lib/openvas /etc/openvas" |
pascal@15000 | 13 |
pascal@4654 | 14 DEPENDS="openvas-libraries openssl" |
pankso@12481 | 15 BUILD_DEPENDS="libpcap libpcap-dev util-linux-uuid openvas-libraries \ |
pascal@20582 | 16 openvas-libraries-dev pkg-config gnutls-dev glib-dev libgnutls" |
pascal@4649 | 17 |
pascal@24500 | 18 # What is the latest version available today? |
pascal@24500 | 19 current_version() |
pascal@24500 | 20 { |
pascal@24500 | 21 wget -O - https://github.com/greenbone/openvas-scanner/releases 2>/dev/null | \ |
pascal@24500 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24500 | 23 } |
pascal@24500 | 24 |
pascal@4649 | 25 # Rules to configure and make the package. |
pascal@4649 | 26 compile_rules() |
pascal@4649 | 27 { |
pascal@4649 | 28 ./configure --prefix=/usr \ |
pascal@4649 | 29 --localstatedir=/var --sysconfdir=/etc \ |
pascal@4649 | 30 --mandir=/usr/share/man \ |
pascal@4649 | 31 $CONFIGURE_ARGS && |
pascal@4649 | 32 make && |
pascal@15000 | 33 make DESTDIR=$DESTDIR install |
pascal@4649 | 34 } |
pascal@4649 | 35 |
pascal@4649 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4649 | 37 genpkg_rules() |
pascal@4649 | 38 { |
pascal@4649 | 39 mkdir -p $fs/usr |
pascal@15000 | 40 cp -a $install/etc $fs |
pascal@15000 | 41 cp -a $install/var $fs |
pascal@15000 | 42 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 43 cp -a $install/usr/sbin $fs/usr |
pascal@4649 | 44 } |
pascal@4654 | 45 |
pascal@4654 | 46 post_install() |
pascal@4654 | 47 { |
pascal@18730 | 48 [ -s "$1/var/lib/openvas/CA/cacert.pem" ] || |
pascal@18730 | 49 chroot "$1/" /usr/sbin/openvas-mkcert <<EOT |
pascal@4654 | 50 |
pascal@4654 | 51 |
pascal@4654 | 52 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@4654 | 53 $(cat /etc/TZ) |
pascal@4654 | 54 |
pascal@4654 | 55 $(cat /etc/hostname) |
pascal@4654 | 56 |
pascal@4654 | 57 EOT |
pascal@4654 | 58 } |