diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/r8168/4.7.3.diff.gz | bin | 0 -> 556 bytes | |||
-rw-r--r-- | network/r8168/README | 2 | ||||
-rw-r--r-- | network/r8168/doinst.sh | 4 | ||||
-rw-r--r-- | network/r8168/r8168.SlackBuild | 15 | ||||
-rw-r--r-- | network/r8168/r8168.info | 6 |
5 files changed, 16 insertions, 11 deletions
diff --git a/network/r8168/4.7.3.diff.gz b/network/r8168/4.7.3.diff.gz Binary files differnew file mode 100644 index 0000000000..a5de1fe947 --- /dev/null +++ b/network/r8168/4.7.3.diff.gz diff --git a/network/r8168/README b/network/r8168/README index b3c7e01525..75bc8feef9 100644 --- a/network/r8168/README +++ b/network/r8168/README @@ -3,7 +3,7 @@ RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface. To build the module for a kernel that isn't currently running on the system pass -that kernel's "uname -r" ouput such as: KERNEL=4.4.0" ./r8168.SlackBuild +that kernel's "uname -r" ouput such as: KERNEL="4.4.0" ./r8168.SlackBuild To use this module blacklist the r8169 driver in /etc/modprobe.d/blacklist.conf: diff --git a/network/r8168/doinst.sh b/network/r8168/doinst.sh index d335d682c8..6a688ee74c 100644 --- a/network/r8168/doinst.sh +++ b/network/r8168/doinst.sh @@ -1,3 +1,3 @@ -if [ -x sbin/depmod ]; then - chroot . /sbin/depmod -a @KERNEL@ 1> /dev/null 2> /dev/null +if [ -x /sbin/depmod ]; then + /sbin/depmod -a 1> /dev/null 2> /dev/null fi diff --git a/network/r8168/r8168.SlackBuild b/network/r8168/r8168.SlackBuild index 066fbe7c97..5f6e9536e5 100644 --- a/network/r8168/r8168.SlackBuild +++ b/network/r8168/r8168.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=r8168 -VERSION=${VERSION:-8.041.00} +VERSION=${VERSION:-8.042} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,10 +41,10 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} KERNEL=${KERNEL:-$(uname -r)} -PKGVER=$(echo ${VERSION}_$KERNEL | tr - _) +PKGVER=${VERSION}_$KERNEL -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -72,6 +72,10 @@ 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 for 4.7.3 +# https://github.com/mtorromeo/r8168/pull/7 +zcat $CWD/4.7.3.diff.gz | patch -p1 + make -C /lib/modules/$KERNEL/build \ SUBDIRS="$TMP/$PRGNAM-$VERSION/src" \ EXTRA_CFLAGS="$SLKCFLAGS" \ @@ -86,6 +90,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/r8168/r8168.info b/network/r8168/r8168.info index 8cf64324bd..252f468a23 100644 --- a/network/r8168/r8168.info +++ b/network/r8168/r8168.info @@ -1,8 +1,8 @@ PRGNAM="r8168" -VERSION="8.041.00" +VERSION="8.042" HOMEPAGE="https://github.com/mtorromeo/r8168" -DOWNLOAD="https://github.com/mtorromeo/r8168/archive/8.041.00.tar.gz" -MD5SUM="f2092a58f812c34a9071ffa985eab42d" +DOWNLOAD="https://github.com/mtorromeo/r8168/archive/8.042.tar.gz" +MD5SUM="6e9ea7dc750a2fd96e3699da5156af52" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |