summaryrefslogtreecommitdiff
path: root/system/osquery-bin/osquery-bin.SlackBuild
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/osquery-bin.SlackBuild
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/osquery-bin.SlackBuild')
-rw-r--r--system/osquery-bin/osquery-bin.SlackBuild9
1 files changed, 3 insertions, 6 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