wok-stable annotate openvas-scanner/receipt @ rev 5613
pekwm: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 19 18:36:37 2010 +0200 (2010-05-19) |
parents | db63cccdb8d4 |
children | ad786a87b22e |
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@4649 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@4649 | 9 WEB_SITE="http://www.openvas.org/" |
pascal@4649 | 10 WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL" |
pascal@4654 | 11 DEPENDS="openvas-libraries openssl" |
pascal@4649 | 12 BUILD_DEPENDS="openvas-libraries openvas-libraries-dev pkg-config" |
pascal@4654 | 13 CONFIG_FILES="/var/lib/openvas /etc/openvas" |
pascal@4649 | 14 |
pascal@4649 | 15 # Rules to configure and make the package. |
pascal@4649 | 16 compile_rules() |
pascal@4649 | 17 { |
pascal@4649 | 18 cd $src |
pascal@4649 | 19 ./configure --prefix=/usr \ |
pascal@4649 | 20 --localstatedir=/var --sysconfdir=/etc \ |
pascal@4649 | 21 --mandir=/usr/share/man \ |
pascal@4649 | 22 $CONFIGURE_ARGS && |
pascal@4649 | 23 make && |
pascal@4649 | 24 make DESTDIR=$PWD/_pkg install |
pascal@4649 | 25 } |
pascal@4649 | 26 |
pascal@4649 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4649 | 28 genpkg_rules() |
pascal@4649 | 29 { |
pascal@4649 | 30 mkdir -p $fs/usr |
pascal@4649 | 31 cp -a $_pkg/etc $fs |
pascal@4649 | 32 cp -a $_pkg/var $fs |
pascal@4649 | 33 cp -a $_pkg/usr/bin $fs/usr |
pascal@4649 | 34 cp -a $_pkg/usr/sbin $fs/usr |
pascal@4649 | 35 } |
pascal@4654 | 36 |
pascal@4654 | 37 post_install() |
pascal@4654 | 38 { |
pascal@5125 | 39 [ -s $1/var/lib/openvas/CA/cacert.pem ] || |
pascal@5125 | 40 chroot $1/ /usr/sbin/openvas-mkcert <<EOT |
pascal@4654 | 41 |
pascal@4654 | 42 |
pascal@4654 | 43 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@4654 | 44 $(cat /etc/TZ) |
pascal@4654 | 45 |
pascal@4654 | 46 $(cat /etc/hostname) |
pascal@4654 | 47 |
pascal@4654 | 48 EOT |
pascal@4654 | 49 } |