Browse Source

l/libseccomp: Upgraded to libseccomp-2.4.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
cf5ec8f345
  1. 1
      l/libseccomp/libseccomp-2.3.3.tar.gz.sha256
  2. 1
      l/libseccomp/libseccomp-2.4.2.tar.gz.sha256
  3. 27
      l/libseccomp/libseccomp.SlackBuild

1
l/libseccomp/libseccomp-2.3.3.tar.gz.sha256

@ -1 +0,0 @@
7fc28f4294cc72e61c529bedf97e705c3acf9c479a8f1a3028d4cd2ca9f3b155 libseccomp-2.3.3.tar.gz

1
l/libseccomp/libseccomp-2.4.2.tar.gz.sha256

@ -0,0 +1 @@
b54f27b53884caacc932e75e6b44304ac83586e2abe7a83eca6daecc5440585b libseccomp-2.4.2.tar.gz

27
l/libseccomp/libseccomp.SlackBuild

@ -33,7 +33,7 @@
# Source package infos
NAMESRC=${NAMESRC:-libseccomp}
VERSION=${VERSION:-2.3.3}
VERSION=${VERSION:-2.4.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/seccomp/libseccomp/releases/download/v$VERSION/$ARCHIVE}
@ -90,9 +90,11 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
mkdir build1 build2 && cd build1
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
PYTHON=python2 \
../configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
@ -102,13 +104,30 @@ CXXFLAGS=$CPUOPT \
make -j $JOBS
make install-strip DESTDIR=$PKG
# Build again for Python 3
cd ../build2
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
PYTHON=python3 \
../configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--enable-python \
--disable-dependency-tracking \
--build=$ARCH-slackware-linux
make -j $JOBS
# Only install the Python 3 module
make -C src/python install-strip DESTDIR=$PKG
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
cd ..
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGELOG CREDITS LICENSE README.md SUBMITTING_PATCHES \
$PKG/usr/doc/$NAME
install -m 644 CHANGELOG CONTRIBUTING.md CREDITS LICENSE README.md \
SECURITY.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save