SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openvas-scanner"

# SliTaz package receipt.

PACKAGE="openvas-scanner"
VERSION="3.0.0"
CATEGORY="network"
SHORT_DESC="Network security scanner (scanner)."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.openvas.org/"
WGET_URL="http://wald.intevation.org/frs/download.php/684/$TARBALL"
DEPENDS="openvas-libraries openssl"
BUILD_DEPENDS="libpcap libpcap-dev util-linux-ng-uuid openvas-libraries \
openvas-libraries-dev pkg-config gnutls-dev"
CONFIG_FILES="/var/lib/openvas /etc/openvas"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --prefix=/usr \
    --localstatedir=/var --sysconfdir=/etc \
    --mandir=/usr/share/man \
    $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $_pkg/etc $fs
    cp -a $_pkg/var $fs
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/sbin $fs/usr
}

post_install()
{
    [ -s $1/var/lib/openvas/CA/cacert.pem ] || 
    chroot $1/ /usr/sbin/openvas-mkcert <<EOT


$(. /etc/locale.conf ; echo ${LANG#*_})
$(cat /etc/TZ)

$(cat /etc/hostname)

EOT
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)