diff options
Diffstat (limited to 'system/osquery-bin')
-rw-r--r-- | system/osquery-bin/osquery-bin.SlackBuild | 29 | ||||
-rw-r--r-- | system/osquery-bin/osquery-bin.info | 8 |
2 files changed, 17 insertions, 20 deletions
diff --git a/system/osquery-bin/osquery-bin.SlackBuild b/system/osquery-bin/osquery-bin.SlackBuild index 7ff944b976..7db2492113 100644 --- a/system/osquery-bin/osquery-bin.SlackBuild +++ b/system/osquery-bin/osquery-bin.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for osquery-bin # Copyright 2019-2022 Andrew Clemons, Wellington New Zealand +# Copyright 2022-2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=osquery-bin SRCNAM=${PRGNAM%-bin} -VERSION=${VERSION:-5.2.3} +VERSION=${VERSION:-5.13.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -49,20 +50,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -71,8 +58,10 @@ cd $PKG if [ "$ARCH" = "x86_64" ]; then ar p "$CWD/$SRCNAM"_"$VERSION-$DEBBUILD.linux_amd64.deb" data.tar.gz | tar xzv +elif [ "$ARCH" = "aarch64" ]; then + ar p "$CWD/$SRCNAM"_"$VERSION-$DEBBUILD.linux_arm64.deb" data.tar.gz | tar xzv else - printf "$ARCH is not supported...\n" + printf "%s\n" "$ARCH is not supported..." exit 1 fi @@ -83,11 +72,17 @@ 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 {} \; +if [ "$ARCH" = "aarch64" ] ; then + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs patchelf --set-interpreter /lib64/ld-linux-aarch64.so.1 2> /dev/null || true +fi + mkdir etc/rc.d mv etc/init.d/osqueryd etc/rc.d/rc.osqueryd.new rm -rf etc/init.d -rm -rf usr/lib +rm -rf usr/lib/systemd +rmdir usr/lib # make symlinks relative ( diff --git a/system/osquery-bin/osquery-bin.info b/system/osquery-bin/osquery-bin.info index 2bc15244b8..d212833aa1 100644 --- a/system/osquery-bin/osquery-bin.info +++ b/system/osquery-bin/osquery-bin.info @@ -1,10 +1,12 @@ PRGNAM="osquery-bin" -VERSION="5.2.3" +VERSION="5.13.1" HOMEPAGE="https://osquery.io/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -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" +DOWNLOAD_x86_64="https://github.com/osquery/osquery/releases/download/5.13.1/osquery_5.13.1-1.linux_amd64.deb \ + https://github.com/osquery/osquery/releases/download/5.13.1/osquery_5.13.1-1.linux_arm64.deb" +MD5SUM_x86_64="77fb504c9f80893414610f5f088a2a6e \ + ba8c0c2a509a25494e0f0bafc818d1ef" REQUIRES="" MAINTAINER="Andrew Clemons" EMAIL="andrew.clemons@gmail.com" |