diff options
Diffstat (limited to 'system/lynis/lynis.SlackBuild')
-rw-r--r-- | system/lynis/lynis.SlackBuild | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/system/lynis/lynis.SlackBuild b/system/lynis/lynis.SlackBuild index aacef78b5d..234c69a233 100644 --- a/system/lynis/lynis.SlackBuild +++ b/system/lynis/lynis.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lynis -# Copyright 2016-2020 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2016-2022 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lynis -VERSION=${VERSION:-3.0.1} +VERSION=${VERSION:-3.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -69,12 +76,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p $PKG/usr/bin $PKG/usr/share/lynis/ $PKG/etc/bash_completion.d +mkdir -p $PKG/usr/bin $PKG/usr/share/lynis/ $PKG/usr/share/bash-completion/completions mkdir -p $PKG/usr/man/man8/ $PKG/etc/lynis cp default.prf $PKG/etc/lynis cp -rf lynis $PKG/usr/bin cp -rf include plugins db $PKG/usr/share/lynis/ -cp extras/bash_completion.d/$PRGNAM $PKG/etc/bash_completion.d/ +cp extras/bash_completion.d/$PRGNAM $PKG/usr/share/bash-completion/completions/ install -m644 lynis.8 $PKG/usr/man/man8/lynis.8 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -92,4 +99,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |