diff options
Diffstat (limited to 'system/firejail')
-rw-r--r-- | system/firejail/README | 18 | ||||
-rw-r--r-- | system/firejail/firejail.SlackBuild | 31 | ||||
-rw-r--r-- | system/firejail/firejail.info | 6 |
3 files changed, 34 insertions, 21 deletions
diff --git a/system/firejail/README b/system/firejail/README index 0ec771c941..1064ba3e45 100644 --- a/system/firejail/README +++ b/system/firejail/README @@ -1,11 +1,13 @@ firejail -Firejail is a SUID security sandbox program that reduces the risk of security -breaches by restricting the running environment of untrusted applications using -Linux namespaces. It allows a process and all its descendants to have their own -private view of the globally shared kernel resources, such as the network stack, -process table, mount table. +Firejail is a SUID security sandbox program that reduces the risk of +security breaches by restricting the running environment of untrusted +applications using Linux namespaces. It allows a process and all its +descendants to have their own private view of the globally shared +kernel resources, such as the network stack, process table, mount +table. -Firejail can sandbox any type of processes: servers, graphical applications, and -even user login sessions. Written in C with virtually no dependencies, it should -work on any Linux computer with a 3.x kernel version. +Firejail can sandbox any type of processes: servers, graphical +applications, and even user login sessions. Written in C with +virtually no dependencies, it should work on any Linux computer with a +3.x kernel version. diff --git a/system/firejail/firejail.SlackBuild b/system/firejail/firejail.SlackBuild index cb49054357..7fe3620544 100644 --- a/system/firejail/firejail.SlackBuild +++ b/system/firejail/firejail.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for firejail # Copyright 2015 mwgg -# Copyright 2017-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2017-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220402 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add SlackBuild to doc dir. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=firejail -VERSION=${VERSION:-0.9.62} +VERSION=${VERSION:-0.9.72} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -66,9 +76,9 @@ cd $PRGNAM-$VERSION 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -83,13 +93,14 @@ CXXFLAGS="$SLKCFLAGS" \ sed -i "s|lib/firejail|lib${LIBDIRSUFFIX=}/firejail|" Makefile make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -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 +sed -i "s|whitelist /usr/share/doc|#whitelist /usr/share/doc|" $PKG/etc/firejail/firefox.profile mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/firejail/firejail.info b/system/firejail/firejail.info index 1897fcce3c..9af92cdca1 100644 --- a/system/firejail/firejail.info +++ b/system/firejail/firejail.info @@ -1,8 +1,8 @@ PRGNAM="firejail" -VERSION="0.9.62" +VERSION="0.9.72" HOMEPAGE="https://firejail.wordpress.com/" -DOWNLOAD="https://sourceforge.net/projects/firejail/files/firejail/firejail-0.9.62.tar.xz" -MD5SUM="649383326b936044fea9031416e56767" +DOWNLOAD="https://sourceforge.net/projects/firejail/files/firejail/firejail-0.9.72.tar.xz" +MD5SUM="779d3cb3cf55123314efb59b579764b6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |