aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-08-13 20:47:08 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-08-20 10:06:32 +0700
commitad5ebbc67606740af20fce0ea0b790cbc1b0767a (patch)
tree3fd22b892a6dd01331d20e2e98366d762edf00c3 /system
parentf5bcff05039865222465d0e336369c98cc48442e (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')
-rw-r--r--system/slack-osquery/slack-osquery.SlackBuild40
-rw-r--r--system/slack-osquery/slack-osquery.info22
2 files changed, 8 insertions, 54 deletions
diff --git a/system/slack-osquery/slack-osquery.SlackBuild b/system/slack-osquery/slack-osquery.SlackBuild
index 879a36b4db49..912e937209b2 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 . \
diff --git a/system/slack-osquery/slack-osquery.info b/system/slack-osquery/slack-osquery.info
index c600c3cc442f..a9f36767f948 100644
--- a/system/slack-osquery/slack-osquery.info
+++ b/system/slack-osquery/slack-osquery.info
@@ -1,24 +1,8 @@
PRGNAM="slack-osquery"
-VERSION="1.0"
+VERSION="1.1"
HOMEPAGE="https://github.com/aclemons/slack-osquery"
-DOWNLOAD="https://github.com/aclemons/slack-osquery/archive/v1.0/slack-osquery-1.0.tar.gz \
- https://github.com/Microsoft/go-winio/archive/v0.4.9/go-winio-0.4.9.tar.gz \
- https://github.com/apache/thrift/archive/v0.12.0/thrift-0.12.0.tar.gz \
- https://github.com/davecgh/go-spew/archive/v1.1.0/go-spew-1.1.0.tar.gz \
- https://github.com/kolide/osquery-go/archive/a74aa860032dacda9b8304c6565efcb9d80dfaa9/osquery-go-a74aa860032dacda9b8304c6565efcb9d80dfaa9.tar.gz \
- https://github.com/pkg/errors/archive/v0.8.0/errors-0.8.0.tar.gz \
- https://github.com/pmezard/go-difflib/archive/v1.0.0/go-difflib-1.0.0.tar.gz \
- https://github.com/stretchr/testify/archive/v1.2.2/testify-1.2.2.tar.gz \
- https://github.com/golang/sys/archive/14742f9018cd6651ec7364dc6ee08af0baaa1031/sys-14742f9018cd6651ec7364dc6ee08af0baaa1031.tar.gz"
-MD5SUM="6f9cdd4f0f8e2d5e5a41568f1c80eb7e \
- 8696fc61920c07d8591b5f5c6920cf82 \
- ff9af01fec424b5a279fa8a3c9e95c0c \
- 89875fb674e0ea72a189e5048186206c \
- c11f2cbf425ccf11292e0caaf9619a69 \
- 8072f1b5f0f97a9167caff82f812edeb \
- 56e81fe945d04771dcb79964ce958a5f \
- cae3d38d807581cd78da0a9dc6b0eb70 \
- e854fa1c61cb6d71bf9feb71b3f97f97"
+DOWNLOAD="https://github.com/aclemons/slack-osquery/releases/download/v1.1/slack-osquery-v1.1.tar.gz"
+MD5SUM="265a827f2080cd4cffbe6ebc8663c11a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="google-go-lang"