summaryrefslogtreecommitdiff
path: root/system/osquery-bin
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-06-26 14:54:05 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-03 11:36:04 +0700
commit8a44bdde72f5a1e81d899d90458fa250c42e6e9d (patch)
tree61f131ee6c0990d4a29e69c16e887cb5a6b914d5 /system/osquery-bin
parent4110ff671d0b97f8c391f697bf232a52886cbb74 (diff)
downloadslackbuilds-8a44bdde72f5a1e81d899d90458fa250c42e6e9d.tar.gz
system/osquery-bin: Updated for version 4.9.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/osquery-bin')
-rw-r--r--system/osquery-bin/osquery-bin.SlackBuild9
-rw-r--r--system/osquery-bin/osquery-bin.info6
2 files changed, 6 insertions, 9 deletions
diff --git a/system/osquery-bin/osquery-bin.SlackBuild b/system/osquery-bin/osquery-bin.SlackBuild
index a8a00b846b..1de5831e94 100644
--- a/system/osquery-bin/osquery-bin.SlackBuild
+++ b/system/osquery-bin/osquery-bin.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=osquery-bin
SRCNAM=${PRGNAM%-bin}
-VERSION=${VERSION:-4.8.0}
+VERSION=${VERSION:-4.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,7 +62,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $PKG
if [ "$ARCH" = "x86_64" ]; then
- tar xvf $CWD/$SRCNAM-$VERSION"_1.linux_x86_64.tar.gz"
+ ar p "$CWD/$SRCNAM"_"$VERSION-1.linux_amd64.deb" data.tar.gz | tar xzv
else
printf "$ARCH is not supported...\n"
exit 1
@@ -75,14 +75,11 @@ 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 {} \;
-rm -rf .scripts
-
mkdir etc/rc.d
mv etc/init.d/osqueryd etc/rc.d/rc.osqueryd.new
rm -rf etc/init.d
-mv usr/local/* usr/
-rm -rf usr/lib usr/local
+rm -rf usr/lib
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/system/osquery-bin/osquery-bin.info b/system/osquery-bin/osquery-bin.info
index 35e8a50d0d..ab0d8f4b62 100644
--- a/system/osquery-bin/osquery-bin.info
+++ b/system/osquery-bin/osquery-bin.info
@@ -1,10 +1,10 @@
PRGNAM="osquery-bin"
-VERSION="4.8.0"
+VERSION="4.9.0"
HOMEPAGE="https://osquery.io/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://pkg.osquery.io/linux/osquery-4.8.0_1.linux_x86_64.tar.gz"
-MD5SUM_x86_64="0397eeb1c4150fa10641cd6c69465a11"
+DOWNLOAD_x86_64="https://github.com/osquery/osquery/releases/download/4.9.0/osquery_4.9.0-1.linux_amd64.deb"
+MD5SUM_x86_64="d2b99bf61a676a411babc79ff2655014"
REQUIRES=""
MAINTAINER="Andrew Clemons"
EMAIL="andrew.clemons@gmail.com"