wok-next annotate openvas-scanner/receipt @ rev 20369
openvas-manager (6.0.11), openvas-scanner (5.0.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 24 20:28:53 2017 +0100 (2017-11-24) |
parents | 9e01bc6321ea |
children | 59af1f2d3c94 |
rev | line source |
---|---|
pascal@4649 | 1 # SliTaz package receipt. |
pascal@4649 | 2 |
pascal@4649 | 3 PACKAGE="openvas-scanner" |
pascal@20369 | 4 VERSION="5.0.8" |
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@4649 | 10 WEB_SITE="http://www.openvas.org/" |
pascal@20369 | 11 WGET_URL="http://wald.intevation.org/frs/download.php/2436/$TARBALL" |
pascal@20369 | 12 CONFIG_FILES="/var/lib/openvas" |
pascal@15000 | 13 |
pascal@20369 | 14 DEPENDS="openvas-libraries glib libgcrypt" |
pascal@20369 | 15 BUILD_DEPENDS="libgcrypt-dev pkg-config glib-dev redis openvas-libraries-dev \ |
pascal@20369 | 16 gnutls-dev libpcap-dev cmake doxygen" |
pascal@4649 | 17 |
pascal@4649 | 18 # Rules to configure and make the package. |
pascal@4649 | 19 compile_rules() |
pascal@4649 | 20 { |
pascal@20369 | 21 [ -d build ] || mkdir build |
pascal@20369 | 22 cd build && |
pascal@20369 | 23 cmake -DCMAKE_INSTALL_PREFIX=/usr \ |
pascal@20369 | 24 -DLOCALSTATEDIR=/var .. && |
pascal@20369 | 25 make && |
pascal@15000 | 26 make DESTDIR=$DESTDIR install |
pascal@4649 | 27 } |
pascal@4649 | 28 |
pascal@4649 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4649 | 30 genpkg_rules() |
pascal@4649 | 31 { |
pascal@4649 | 32 mkdir -p $fs/usr |
pascal@15000 | 33 cp -a $install/var $fs |
pascal@15000 | 34 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 35 cp -a $install/usr/sbin $fs/usr |
pascal@4649 | 36 } |
pascal@4654 | 37 |
pascal@4654 | 38 post_install() |
pascal@4654 | 39 { |
pascal@18730 | 40 [ -s "$1/var/lib/openvas/CA/cacert.pem" ] || |
pascal@18730 | 41 chroot "$1/" /usr/sbin/openvas-mkcert <<EOT |
pascal@4654 | 42 |
pascal@4654 | 43 |
pascal@4654 | 44 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@4654 | 45 $(cat /etc/TZ) |
pascal@4654 | 46 |
pascal@4654 | 47 $(cat /etc/hostname) |
pascal@4654 | 48 |
pascal@4654 | 49 EOT |
pascal@4654 | 50 } |