wok view openvas-scanner/receipt @ rev 9954

elink: fix receipt path and build
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 18 14:56:30 2011 +0200 (2011-05-18)
parents ad786a87b22e
children 954672133ad3
line source
1 # SliTaz package receipt.
3 PACKAGE="openvas-scanner"
4 VERSION="3.0.0"
5 CATEGORY="network"
6 SHORT_DESC="Network security scanner (scanner)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.openvas.org/"
10 WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL"
11 DEPENDS="openvas-libraries openssl"
12 BUILD_DEPENDS="libpcap util-linux-ng-uuid openvas-libraries openvas-libraries-dev pkg-config"
13 CONFIG_FILES="/var/lib/openvas /etc/openvas"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr \
20 --localstatedir=/var --sysconfdir=/etc \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $_pkg/etc $fs
32 cp -a $_pkg/var $fs
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 }
37 post_install()
38 {
39 [ -s $1/var/lib/openvas/CA/cacert.pem ] ||
40 chroot $1/ /usr/sbin/openvas-mkcert <<EOT
43 $(. /etc/locale.conf ; echo ${LANG#*_})
44 $(cat /etc/TZ)
46 $(cat /etc/hostname)
48 EOT
49 }