network/openvas-client: Updated for version 3.0.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
1982d2bc49
commit
aa219231c8
|
@ -1,10 +1,10 @@
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
# If there's no config file by that name, mv it over:
|
# If there's no config file by that name, mv it over:
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for OpenVAS client.
|
# Slackware build script for OpenVAS client.
|
||||||
#
|
|
||||||
# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
|
# Copyright 2011-2012 Marco Bonetti <sid77@slackware.it>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
|
|
||||||
PRGNAM=openvas-client
|
PRGNAM=openvas-client
|
||||||
VERSION=${VERSION:-3.0.0}
|
VERSION=${VERSION:-3.0.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -84,15 +84,12 @@ make install DESTDIR=$PKG
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
mv $PKG/etc/openvas/openvas-client_log.conf $PKG/etc/openvas/openvas-client_log.conf.new
|
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
|
chmod 0644 $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
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="openvas-client"
|
PRGNAM="openvas-client"
|
||||||
VERSION="3.0.0"
|
VERSION="3.0.2"
|
||||||
HOMEPAGE="http://www.openvas.org/"
|
HOMEPAGE="http://www.openvas.org/"
|
||||||
DOWNLOAD="http://wald.intevation.org/frs/download.php/685/openvas-client-3.0.0.tar.gz"
|
DOWNLOAD="http://wald.intevation.org/frs/download.php/802/openvas-client-3.0.2.tar.gz"
|
||||||
MD5SUM="c5fc0c744865ca2e6c331bab529e11a3"
|
MD5SUM="d41d8cd98f00b204e9800998ecf8427e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Marco Bonetti"
|
MAINTAINER="Marco Bonetti"
|
||||||
EMAIL="sid77@slackware.it"
|
EMAIL="sid77@slackware.it"
|
||||||
APPROVED="dsomero"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in New Issue