summaryrefslogtreecommitdiff
path: root/source/a/kmod
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2020-03-06 02:45:42 +0000
committerEric Hameleers <alien@slackware.com>2020-03-06 08:59:50 +0100
commitd6198f3d53a5c2a33681cec675c3ebc7a4a7fa66 (patch)
tree1376b87fd1c42ab62b691a6f61101eb0697e8359 /source/a/kmod
parentcb1ee501cabf242b70244f6035a07307b0bb2f35 (diff)
downloadcurrent-d6198f3d53a5c2a33681cec675c3ebc7a4a7fa66.tar.gz
Fri Mar 6 02:45:42 UTC 202020200306024542
a/coreutils-8.32-x86_64-1.txz: Upgraded. a/kernel-generic-5.4.24-x86_64-1.txz: Upgraded. a/kernel-huge-5.4.24-x86_64-1.txz: Upgraded. a/kernel-modules-5.4.24-x86_64-1.txz: Upgraded. a/kmod-27-x86_64-1.txz: Upgraded. d/kernel-headers-5.4.24-x86-1.txz: Upgraded. d/mercurial-5.3.1-x86_64-1.txz: Upgraded. k/kernel-source-5.4.24-noarch-1.txz: Upgraded. -HEADER_TEST n l/python-packaging-20.3-x86_64-1.txz: Upgraded. l/vte-0.60.0-x86_64-1.txz: Upgraded. x/mesa-20.0.1-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/a/kmod')
-rwxr-xr-xsource/a/kmod/kmod.SlackBuild62
1 files changed, 34 insertions, 28 deletions
diff --git a/source/a/kmod/kmod.SlackBuild b/source/a/kmod/kmod.SlackBuild
index 0ce2ee59..90eb3432 100755
--- a/source/a/kmod/kmod.SlackBuild
+++ b/source/a/kmod/kmod.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for kmod
# Copyright 2011-2016 Robby Workman, Tuscaloosa, Alabama, USA
-# Copyright 2013-2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2013-2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=kmod
-VERSION=${VERSION:-26}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-27}
+BUILD=${BUILD:-1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -45,6 +45,8 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
+NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
+
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
@@ -66,7 +68,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \
@@ -89,18 +91,19 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PKGNAM-$VERSION \
+ --with-openssl \
--with-xz \
--with-zlib \
--build=$ARCH-slackware-linux || exit 1
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make $NUMJOBS || make || exit 1
+make $NUMJOBS install DESTDIR=$PKG || make install DESTDIR=$PKG || exit 1
# "make clean" deletes too much, so we have to start fresh :(
cd $TMP
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \
@@ -112,27 +115,30 @@ find . \
# Fix paths in manual pages
sed -i "s,/usr/lib,/lib,g" man/*
-# Build python3 bindings for libkmod
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-PYTHON=python3 \
-./configure \
- --prefix=/usr \
- --libdir=/lib${LIBDIRSUFFIX} \
- --bindir=/sbin \
- --sbindir=/sbin \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
- --with-xz \
- --with-zlib \
- --build=$ARCH-slackware-linux || exit 1
-
-make \
- install-pkgpyexecLTLIBRARIES \
- install-dist_pkgpyexecPYTHON \
- DESTDIR=$PKG || exit 1
+## We aren't including python bindings unless something needs them...
+## Build python3 bindings for libkmod
+#CFLAGS="$SLKCFLAGS" \
+#CXXFLAGS="$SLKCFLAGS" \
+#PYTHON=python3 \
+#./configure \
+# --prefix=/usr \
+# --libdir=/lib${LIBDIRSUFFIX} \
+# --bindir=/sbin \
+# --sbindir=/sbin \
+# --sysconfdir=/etc \
+# --localstatedir=/var \
+# --mandir=/usr/man \
+# --docdir=/usr/doc/$PKGNAM-$VERSION \
+# --with-openssl \
+# --with-xz \
+# --with-zlib \
+# --build=$ARCH-slackware-linux || exit 1
+#
+#make \
+# $NUMJOBS \
+# install-pkgpyexecLTLIBRARIES \
+# install-dist_pkgpyexecPYTHON \
+# DESTDIR=$PKG || exit 1
# Strip binaries:
( cd $PKG