wok-current annotate openvas-scanner/receipt @ rev 20662

Up jansson (2.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 14 22:40:43 2019 +0100 (2019-01-14)
parents 9e01bc6321ea
children df98a48adee2
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@4649 10 WEB_SITE="http://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@4649 18 # Rules to configure and make the package.
pascal@4649 19 compile_rules()
pascal@4649 20 {
pascal@4649 21 ./configure --prefix=/usr \
pascal@4649 22 --localstatedir=/var --sysconfdir=/etc \
pascal@4649 23 --mandir=/usr/share/man \
pascal@4649 24 $CONFIGURE_ARGS &&
pascal@4649 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/etc $fs
pascal@15000 34 cp -a $install/var $fs
pascal@15000 35 cp -a $install/usr/bin $fs/usr
pascal@15000 36 cp -a $install/usr/sbin $fs/usr
pascal@4649 37 }
pascal@4654 38
pascal@4654 39 post_install()
pascal@4654 40 {
pascal@18730 41 [ -s "$1/var/lib/openvas/CA/cacert.pem" ] ||
pascal@18730 42 chroot "$1/" /usr/sbin/openvas-mkcert <<EOT
pascal@4654 43
pascal@4654 44
pascal@4654 45 $(. /etc/locale.conf ; echo ${LANG#*_})
pascal@4654 46 $(cat /etc/TZ)
pascal@4654 47
pascal@4654 48 $(cat /etc/hostname)
pascal@4654 49
pascal@4654 50 EOT
pascal@4654 51 }