wok-next annotate openvas-scanner/receipt @ rev 4878
Merge.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Feb 04 23:33:54 2010 +0100 (2010-02-04) |
parents | 1b84ad07dd56 |
children | db63cccdb8d4 |
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@4654 | 39 [ -s $1/var/lib/openvas/CA/cacert.pem ] || openvas-mkcert <<EOT |
pascal@4654 | 40 |
pascal@4654 | 41 |
pascal@4654 | 42 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@4654 | 43 $(cat /etc/TZ) |
pascal@4654 | 44 |
pascal@4654 | 45 $(cat /etc/hostname) |
pascal@4654 | 46 |
pascal@4654 | 47 EOT |
pascal@4654 | 48 } |
pascal@4654 | 49 |
pascal@4654 | 50 SELF_INSTALL=1 |