aboutsummaryrefslogtreecommitdiff
path: root/system/osquery-bin
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-04-18 21:05:38 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-24 01:47:15 +0700
commit569ffd9f713dc8a7bc3e4e7caa5190500f818b11 (patch)
tree972fb5b1d6766982278e449033eaa035ee452591 /system/osquery-bin
parentd42920052531f070e0cbd63e30851e7cdca9e6d4 (diff)
system/osquery-bin: Updated for version 5.2.3.
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.SlackBuild23
-rw-r--r--system/osquery-bin/osquery-bin.info6
2 files changed, 20 insertions, 9 deletions
diff --git a/system/osquery-bin/osquery-bin.SlackBuild b/system/osquery-bin/osquery-bin.SlackBuild
index c63d3de0365f3..7ff944b976bac 100644
--- a/system/osquery-bin/osquery-bin.SlackBuild
+++ b/system/osquery-bin/osquery-bin.SlackBuild
@@ -26,10 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=osquery-bin
SRCNAM=${PRGNAM%-bin}
-VERSION=${VERSION:-5.2.2}
+VERSION=${VERSION:-5.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+DEBBUILD=${DEBBUILD:-1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,9 +40,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
@@ -72,7 +70,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $PKG
if [ "$ARCH" = "x86_64" ]; then
- ar p "$CWD/$SRCNAM"_"$VERSION-1.linux_amd64.deb" data.tar.gz | tar xzv
+ ar p "$CWD/$SRCNAM"_"$VERSION-$DEBBUILD.linux_amd64.deb" data.tar.gz | tar xzv
else
printf "$ARCH is not supported...\n"
exit 1
@@ -90,7 +88,20 @@ mv etc/init.d/osqueryd etc/rc.d/rc.osqueryd.new
rm -rf etc/init.d
rm -rf usr/lib
-rm -rf usr/local
+
+# make symlinks relative
+(
+ cd "$PKG/usr/bin"
+ for lnk in osqueryctl osqueryd osqueryi ; do
+ rm -rf "$lnk"
+
+ if [ "$lnk" = "osqueryi" ] ; then
+ ln -s "../../opt/osquery/bin/osqueryd" "$lnk"
+ else
+ ln -s "../../opt/osquery/bin/$lnk" "$lnk"
+ fi
+ done
+)
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 116ba82417be5..2bc15244b8c91 100644
--- a/system/osquery-bin/osquery-bin.info
+++ b/system/osquery-bin/osquery-bin.info
@@ -1,10 +1,10 @@
PRGNAM="osquery-bin"
-VERSION="5.2.2"
+VERSION="5.2.3"
HOMEPAGE="https://osquery.io/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/osquery/osquery/releases/download/5.2.2/osquery_5.2.2-1.linux_amd64.deb"
-MD5SUM_x86_64="2ba18e51884487520106a8607d2f5ee8"
+DOWNLOAD_x86_64="https://github.com/osquery/osquery/releases/download/5.2.3/osquery_5.2.3-1.linux_amd64.deb"
+MD5SUM_x86_64="b90abf7e5be3aadabac20efa49a2e68a"
REQUIRES=""
MAINTAINER="Andrew Clemons"
EMAIL="andrew.clemons@gmail.com"