# SliTaz package receipt. PACKAGE="openvas-scanner" VERSION="3.0.0" CATEGORY="network" SHORT_DESC="Network security scanner (scanner)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.openvas.org/" WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL" CONFIG_FILES="/var/lib/openvas /etc/openvas" DEPENDS="openvas-libraries openssl" BUILD_DEPENDS="libpcap libpcap-dev util-linux-uuid openvas-libraries \ openvas-libraries-dev pkg-config gnutls-dev glib-dev libgnutls" # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr \ --localstatedir=/var --sysconfdir=/etc \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/etc $fs cp -a $install/var $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr } post_install() { [ -s "$1/var/lib/openvas/CA/cacert.pem" ] || chroot "$1/" /usr/sbin/openvas-mkcert <