diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-08-13 20:47:08 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-08-20 10:06:32 +0700 |
commit | ad5ebbc67606740af20fce0ea0b790cbc1b0767a (patch) | |
tree | 3fd22b892a6dd01331d20e2e98366d762edf00c3 /system/slack-osquery/slack-osquery.SlackBuild | |
parent | f5bcff05039865222465d0e336369c98cc48442e (diff) |
system/slack-osquery: Updated for version 1.1.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/slack-osquery/slack-osquery.SlackBuild')
-rw-r--r-- | system/slack-osquery/slack-osquery.SlackBuild | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/system/slack-osquery/slack-osquery.SlackBuild b/system/slack-osquery/slack-osquery.SlackBuild index 879a36b4db493..912e937209b2a 100644 --- a/system/slack-osquery/slack-osquery.SlackBuild +++ b/system/slack-osquery/slack-osquery.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for slack-osquery # Copyright 2020 Andrew Clemons, Wellington New Zealand +# Copyright 2022 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=slack-osquery -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -69,37 +67,9 @@ 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 - -mkdir -p vendor/github.com - -for DEPENDENCY in Microsoft/go-winio/0.4.9 \ - apache/thrift/0.12.0 \ - davecgh/go-spew/1.1.0 \ - kolide/osquery-go/a74aa860032dacda9b8304c6565efcb9d80dfaa9 \ - pkg/errors/0.8.0 \ - pmezard/go-difflib/1.0.0 \ - stretchr/testify/1.2.2 ; do - DEPENDENCY_OWNER="$(echo "$DEPENDENCY" | cut -d/ -f1)" - DEPENDENCY_NAME="$(echo "$DEPENDENCY" | cut -d/ -f2)" - DEPENDENCY_REV="$(echo "$DEPENDENCY" | cut -d/ -f3)" - - mkdir -p "vendor/github.com/$DEPENDENCY_OWNER" - - tar xf "$CWD/$DEPENDENCY_NAME-$DEPENDENCY_REV.tar.gz" - mv "$DEPENDENCY_NAME-$DEPENDENCY_REV" "vendor/github.com/$DEPENDENCY_OWNER/$DEPENDENCY_NAME" -done - -mkdir -p vendor/golang.org/x -for DEPENDENCY in sys/14742f9018cd6651ec7364dc6ee08af0baaa1031 ; do - DEPENDENCY_NAME="$(echo "$DEPENDENCY" | cut -d/ -f1)" - DEPENDENCY_REV="$(echo "$DEPENDENCY" | cut -d/ -f2)" - - tar xf "$CWD/$DEPENDENCY_NAME-$DEPENDENCY_REV.tar.gz" - mv "$DEPENDENCY_NAME-$DEPENDENCY_REV" "vendor/golang.org/x/$DEPENDENCY_NAME" -done +rm -rf $PRGNAM-v$VERSION +tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz +cd $PRGNAM-v$VERSION chown -R root:root . find -L . \ |