mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/openvas-client: Updated for version 3.0.0
This commit is contained in:
parent
e5e00f5ae0
commit
25e3bc6823
4 changed files with 48 additions and 12 deletions
|
@ -5,5 +5,26 @@ to detect security problems in remote systems and applications.
|
||||||
|
|
||||||
OpenVAS products are Free Software under GNU GPL and a fork of Nessus.
|
OpenVAS products are Free Software under GNU GPL and a fork of Nessus.
|
||||||
|
|
||||||
|
This package provides the OpenVAS scanner. To build a complete OpenVAS scanner
|
||||||
|
installation, however, you have to compile and install the packages in the
|
||||||
|
following sequence:
|
||||||
|
1. openvas-libraries
|
||||||
|
2. openvas-scanner
|
||||||
|
3. openvas-client
|
||||||
|
|
||||||
|
The openvas-client GUI is needed to interact with the OpenVAS scanner, however
|
||||||
|
there are some new optional modules:
|
||||||
|
1. openvas-scanner for storing and organizing scans on a central server in a
|
||||||
|
SQL database
|
||||||
|
2. openvas-administrator for User-, Feed- and Settings-Management
|
||||||
|
3. greenbone-security-assistant for a web-based Vulnerability Management
|
||||||
|
|
||||||
This package provides the OpenVAS client. You need GTK libraries and
|
This package provides the OpenVAS client. You need GTK libraries and
|
||||||
OpenSSL are highly recommended, both of them are avalaible from Slackware.
|
OpenSSL are highly recommended, both of them are avalaible from Slackware.
|
||||||
|
|
||||||
|
As a last note, keep in mind that this is a major version transition: the
|
||||||
|
older openvas-libnasl and openvas-plugins packages no longer exists,
|
||||||
|
openvas-server has been replaced by the openvas-scanner package and there are
|
||||||
|
the new optional modules. A straight upgradepkg (with removal of deprecated
|
||||||
|
packages) *SHOULD* work but also consider to backup your old configuration and
|
||||||
|
starting over from a fresh OpenVAS installation.
|
||||||
|
|
14
network/openvas-client/doinst.sh
Normal file
14
network/openvas-client/doinst.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="`dirname $NEW`/`basename $NEW .new`"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/openvas/openvas-client_log.conf.new
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
|
|
||||||
PRGNAM=openvas-client
|
PRGNAM=openvas-client
|
||||||
VERSION=${VERSION:-2.0.3}
|
VERSION=${VERSION:-3.0.0}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -34,7 +34,7 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
DOCS="CHANGES COPYING COPYING.OpenSSL COPYING.README"
|
DOCS="CHANGES COPYING COPYING.README ChangeLog"
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
@ -71,16 +71,12 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
# looks like they forgot something ;-)
|
|
||||||
if [ -r ssl/openvasclient-mkrand ]; then
|
|
||||||
install -m 0755 ssl/openvasclient-mkrand $PKG/usr/bin/openvasclient-mkrand
|
|
||||||
fi
|
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
xargs strip --strip-unneeded 2> /dev/null || true
|
xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||||
xargs strip --strip-unneeded 2> /dev/null
|
xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
)
|
)
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
( cd $PKG/usr/man
|
||||||
|
@ -90,11 +86,14 @@ fi
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a libnessus/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.libnessus
|
mv $PKG/etc/openvas/openvas-client_log.conf $PKG/etc/openvas/openvas-client_log.conf.new
|
||||||
|
chmod 644 $PKG/etc/openvas/openvas-client_log.conf.new
|
||||||
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="openvas-client"
|
PRGNAM="openvas-client"
|
||||||
VERSION="2.0.3"
|
VERSION="3.0.0"
|
||||||
HOMEPAGE="http://www.openvas.org/"
|
HOMEPAGE="http://www.openvas.org/"
|
||||||
DOWNLOAD="http://wald.intevation.org/frs/download.php/575/openvas-client-2.0.3.tar.gz"
|
DOWNLOAD="http://wald.intevation.org/frs/download.php/685/openvas-client-3.0.0.tar.gz"
|
||||||
MD5SUM="dfddebca8aa81b6136d84084a60203d3"
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM="c5fc0c744865ca2e6c331bab529e11a3"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Marco Bonetti"
|
MAINTAINER="Marco Bonetti"
|
||||||
EMAIL="sid77@slackware.it"
|
EMAIL="sid77@slackware.it"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue