diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-05-12 23:32:38 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:32:38 +0200 |
commit | 507b32513de120926d86d41999f98f2304666dfd (patch) | |
tree | 4ae672c439e4f30c82ed78c2de9c7655a2c8522c | |
parent | 76493d622f06e1c80fe276b973807bd7caf0e8fe (diff) |
network/openvas-plugins: Added to 12.2 repository
-rw-r--r-- | network/openvas-plugins/README | 18 | ||||
-rw-r--r-- | network/openvas-plugins/openvas-plugins.SlackBuild | 99 | ||||
-rw-r--r-- | network/openvas-plugins/openvas-plugins.info | 8 | ||||
-rw-r--r-- | network/openvas-plugins/slack-desc | 19 |
4 files changed, 144 insertions, 0 deletions
diff --git a/network/openvas-plugins/README b/network/openvas-plugins/README new file mode 100644 index 0000000000000..a74f6ff32f2a7 --- /dev/null +++ b/network/openvas-plugins/README @@ -0,0 +1,18 @@ +OpenVAS stands for Open Vulnerability Assessment System and is a network +security scanner with associated tools like a graphical user front-end. The +core component is a server with a set of network vulnerability tests (NVTs) +to detect security problems in remote systems and applications. + +OpenVAS products are Free Software under GNU GPL and a fork of Nessus. + +This package provides the OpenVAS server plugins. To build OpenVAS server, +you have to compile and install the packages in the the following sequence: + 1. openvas-libraries + 2. openvas-libnasl + 3. openvas-server + 4. openvas-plugins + +You need rsync to use the openvas-nvt-sync update command. +This is the last release of openvas-plugins, next openvas-server and client +releases will no longer use this pacakge: the plugins will be downloaded +manually with the openvas-nvt-sync command. diff --git a/network/openvas-plugins/openvas-plugins.SlackBuild b/network/openvas-plugins/openvas-plugins.SlackBuild new file mode 100644 index 0000000000000..fd56e1877446b --- /dev/null +++ b/network/openvas-plugins/openvas-plugins.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Slackware build script for OpenVAS plugins. + +# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=openvas-plugins +VERSION=${VERSION:-1.0.7} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="CHANGES COPYING" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/openvas-plugins/openvas-plugins.info b/network/openvas-plugins/openvas-plugins.info new file mode 100644 index 0000000000000..78c30413fd12c --- /dev/null +++ b/network/openvas-plugins/openvas-plugins.info @@ -0,0 +1,8 @@ +PRGNAM="openvas-plugins" +VERSION="1.0.7" +HOMEPAGE="http://www.openvas.org/" +DOWNLOAD="http://wald.intevation.org/frs/download.php/588/openvas-plugins-1.0.7.tar.gz" +MD5SUM="b290e34df6198b21b4d6601c3ae80030" +MAINTAINER="Marco Bonetti" +EMAIL="sid77@slackware.it" +APPROVED="rworkman" diff --git a/network/openvas-plugins/slack-desc b/network/openvas-plugins/slack-desc new file mode 100644 index 0000000000000..a3b138a3a8810 --- /dev/null +++ b/network/openvas-plugins/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-------------------------------------------------------| +openvas-plugins: OpenVAS plugins (OpenVAS server plugins) +openvas-plugins: +openvas-plugins: OpenVAS stands for Open Vulnerability Assessment System and is a +openvas-plugins: network security scanner with associated tools like a graphical user +openvas-plugins: front-end. The core component is a server with a set of network +openvas-plugins: vulnerability tests (NVTs) to detect security problems in remote +openvas-plugins: systems and applications. +openvas-plugins: +openvas-plugins: OpenVAS products are Free Software under GNU GPL and a fork of Nessus. +openvas-plugins: +openvas-plugins: This package provides the OpenVAS server plugins. |