diff options
Diffstat (limited to 'system/sysdig/sysdig.SlackBuild')
-rw-r--r-- | system/sysdig/sysdig.SlackBuild | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/system/sysdig/sysdig.SlackBuild b/system/sysdig/sysdig.SlackBuild index f777bb8e6a79..7e5de04618fb 100644 --- a/system/sysdig/sysdig.SlackBuild +++ b/system/sysdig/sysdig.SlackBuild @@ -22,11 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20241017 bkw: Modified by SlackBuilds.org, BUILD=2: use new lua 5.4. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sysdig VERSION=${VERSION:-0.36.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -52,16 +54,12 @@ 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 @@ -73,18 +71,9 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -FALCO_HASH=${FALCO_HASH:-b3734896de3fa23a78003a0d203d6a3aae896339} - -mkdir -p build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src -cp $CWD/libs-$FALCO_HASH.tar.gz \ - build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/$FALCO_HASH.tar.gz - chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + # Fix manpage location sed -i 's|share/||' userspace/sysdig/man/CMakeLists.txt @@ -97,6 +86,7 @@ else sed -i '/sysdig-probe-loader/,$d' scripts/CMakeLists.txt fi +mkdir -p build cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ @@ -109,14 +99,10 @@ cd build -DCMAKE_BUILD_TYPE=Release .. env -u ARCH make VERBOSE=1 - env -u ARCH make install DESTDIR=$PKG - mkdir -p $PKG/lib/modules/$KERNEL/misc + env -u ARCH make install/strip DESTDIR=$PKG cd - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION |