diff options
Diffstat (limited to 'network/openvas-client/openvas-client.SlackBuild')
-rw-r--r-- | network/openvas-client/openvas-client.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/network/openvas-client/openvas-client.SlackBuild b/network/openvas-client/openvas-client.SlackBuild index 47bf889206..5249660ed0 100644 --- a/network/openvas-client/openvas-client.SlackBuild +++ b/network/openvas-client/openvas-client.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=openvas-client -VERSION=${VERSION:-2.0.3} +VERSION=${VERSION:-3.0.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,7 +34,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="CHANGES COPYING COPYING.OpenSSL COPYING.README" +DOCS="CHANGES COPYING COPYING.README ChangeLog" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -71,16 +71,12 @@ CXXFLAGS="$SLKCFLAGS" \ make 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 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 + xargs strip --strip-unneeded 2> /dev/null || true ) ( cd $PKG/usr/man @@ -90,11 +86,14 @@ fi mkdir -p $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 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh 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} |