aboutsummaryrefslogtreecommitdiff
path: root/network/r8168/r8168.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-07-11 00:22:04 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-07-12 16:39:22 +0100
commit53ffcee65b795a032e7f0b31ac1aeaa2e5da6623 (patch)
tree73fdb0744eefce196eb4b6d5c006c37a465f2eed /network/r8168/r8168.SlackBuild
parente3215e08f522c85c2f1a0b3a5c18162ef5bcfdfd (diff)
network/r8168: Updated for version 8.044.02.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/r8168/r8168.SlackBuild')
-rw-r--r--network/r8168/r8168.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/network/r8168/r8168.SlackBuild b/network/r8168/r8168.SlackBuild
index 13bd23f5a5f2..9569be31903d 100644
--- a/network/r8168/r8168.SlackBuild
+++ b/network/r8168/r8168.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=r8168
-VERSION=${VERSION:-8.043.02}
-BUILD=${BUILD:-4}
+VERSION=${VERSION:-8.044.02}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-KERNEL=${KERNEL:-$(uname -r)}
-PKGVER=$(printf %s ${VERSION}_$KERNEL | tr - _)
+KERNEL="${KERNEL:-"$(uname -r)"}"
+PKGVER="$(printf %s "${VERSION}_$KERNEL" | tr - _)"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -57,7 +57,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -72,6 +72,9 @@ 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 {} \;
+# patch from arch for 4.11 kernels
+cat $CWD/r8168-linux-4.11.patch | patch -p1
+
make -C /lib/modules/$KERNEL/build \
SUBDIRS="$TMP/$PRGNAM-$VERSION/src" \
EXTRA_CFLAGS="$SLKCFLAGS" \