wok-current annotate openvas-scanner/receipt @ rev 17399
vlc: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 27 20:47:48 2014 +0100 (2014-11-27) |
parents | 02cc67a2115f |
children | 9e01bc6321ea |
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@12619 | 16 openvas-libraries-dev pkg-config gnutls-dev glib-dev" |
pascal@4649 | 17 |
pascal@4649 | 18 # Rules to configure and make the package. |
pascal@4649 | 19 compile_rules() |
pascal@4649 | 20 { |
pascal@4649 | 21 cd $src |
pascal@4649 | 22 ./configure --prefix=/usr \ |
pascal@4649 | 23 --localstatedir=/var --sysconfdir=/etc \ |
pascal@4649 | 24 --mandir=/usr/share/man \ |
pascal@4649 | 25 $CONFIGURE_ARGS && |
pascal@4649 | 26 make && |
pascal@15000 | 27 make DESTDIR=$DESTDIR install |
pascal@4649 | 28 } |
pascal@4649 | 29 |
pascal@4649 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4649 | 31 genpkg_rules() |
pascal@4649 | 32 { |
pascal@4649 | 33 mkdir -p $fs/usr |
pascal@15000 | 34 cp -a $install/etc $fs |
pascal@15000 | 35 cp -a $install/var $fs |
pascal@15000 | 36 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 37 cp -a $install/usr/sbin $fs/usr |
pascal@4649 | 38 } |
pascal@4654 | 39 |
pascal@4654 | 40 post_install() |
pascal@4654 | 41 { |
pascal@5125 | 42 [ -s $1/var/lib/openvas/CA/cacert.pem ] || |
pascal@5125 | 43 chroot $1/ /usr/sbin/openvas-mkcert <<EOT |
pascal@4654 | 44 |
pascal@4654 | 45 |
pascal@4654 | 46 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@4654 | 47 $(cat /etc/TZ) |
pascal@4654 | 48 |
pascal@4654 | 49 $(cat /etc/hostname) |
pascal@4654 | 50 |
pascal@4654 | 51 EOT |
pascal@4654 | 52 } |