diff options
author | Juan M. Lasca <juanmlasca@gmail.com> | 2023-10-21 18:47:26 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-10-28 13:11:44 +0700 |
commit | d9e6b25a811d913a5624e701ce55f35e885b6c08 (patch) | |
tree | 25f34c4acbec4c9f9b3aad21be158b6f1a2d0887 /network | |
parent | 7a321d2467ee6ecfc25900817cb0fe29b5e500d4 (diff) |
network/rtl8188fu: Added (RTL8188FU driver).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/rtl8188fu/README | 4 | ||||
-rw-r--r-- | network/rtl8188fu/conf/disable-random-mac.conf | 2 | ||||
-rw-r--r-- | network/rtl8188fu/conf/r8188eu-blacklist.conf | 1 | ||||
-rw-r--r-- | network/rtl8188fu/conf/rtl8188fu.conf | 1 | ||||
-rw-r--r-- | network/rtl8188fu/conf/rtl8xxxu-blacklist.conf | 1 | ||||
-rw-r--r-- | network/rtl8188fu/doinst.sh | 3 | ||||
-rw-r--r-- | network/rtl8188fu/rtl8188fu.SlackBuild | 80 | ||||
-rw-r--r-- | network/rtl8188fu/rtl8188fu.info | 10 | ||||
-rw-r--r-- | network/rtl8188fu/slack-desc | 19 |
9 files changed, 121 insertions, 0 deletions
diff --git a/network/rtl8188fu/README b/network/rtl8188fu/README new file mode 100644 index 000000000000..06296a348520 --- /dev/null +++ b/network/rtl8188fu/README @@ -0,0 +1,4 @@ +rtl8188fu (rtl8188fu / rtl8188ftv wireless network adaptors driver) + +Driver for Realtek wireless adaptors using the rtl8188fu chipset, +including the rtl8188ftv diff --git a/network/rtl8188fu/conf/disable-random-mac.conf b/network/rtl8188fu/conf/disable-random-mac.conf new file mode 100644 index 000000000000..0763348bdb0e --- /dev/null +++ b/network/rtl8188fu/conf/disable-random-mac.conf @@ -0,0 +1,2 @@ +[device] +wifi.scan-rand-mac-address=no diff --git a/network/rtl8188fu/conf/r8188eu-blacklist.conf b/network/rtl8188fu/conf/r8188eu-blacklist.conf new file mode 100644 index 000000000000..483e3418c879 --- /dev/null +++ b/network/rtl8188fu/conf/r8188eu-blacklist.conf @@ -0,0 +1 @@ +alias usb:v0BDApF179d*dc*dsc*dp*icFFiscFFipFFin* rtl8188fu diff --git a/network/rtl8188fu/conf/rtl8188fu.conf b/network/rtl8188fu/conf/rtl8188fu.conf new file mode 100644 index 000000000000..7f3e13b8d301 --- /dev/null +++ b/network/rtl8188fu/conf/rtl8188fu.conf @@ -0,0 +1 @@ +options rtl8188fu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=0 diff --git a/network/rtl8188fu/conf/rtl8xxxu-blacklist.conf b/network/rtl8188fu/conf/rtl8xxxu-blacklist.conf new file mode 100644 index 000000000000..483e3418c879 --- /dev/null +++ b/network/rtl8188fu/conf/rtl8xxxu-blacklist.conf @@ -0,0 +1 @@ +alias usb:v0BDApF179d*dc*dsc*dp*icFFiscFFipFFin* rtl8188fu diff --git a/network/rtl8188fu/doinst.sh b/network/rtl8188fu/doinst.sh new file mode 100644 index 000000000000..b17f2a673962 --- /dev/null +++ b/network/rtl8188fu/doinst.sh @@ -0,0 +1,3 @@ +if [ -x sbin/depmod ]; then + chroot . /sbin/depmod -a 1> /dev/null 2> /dev/null +fi diff --git a/network/rtl8188fu/rtl8188fu.SlackBuild b/network/rtl8188fu/rtl8188fu.SlackBuild new file mode 100644 index 000000000000..5d7afce3e2db --- /dev/null +++ b/network/rtl8188fu/rtl8188fu.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/bash + +# Slackware build script for rtl8188fu +# Written by Juan M. Lasca <juanmlasca@gmail.com> +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# Based on rtl8812bu.SlackBuild + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=rtl8188fu +VERSION=${VERSION:-1.0+20231018_68ced40} +COMMIT=68ced40d862d13663294496bac2e9a91ffa0e5c7 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +KERNEL=${KERNEL:-$(uname -r)} +PKGVER=${VERSION}_$(echo $KERNEL | tr - _) + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$COMMIT +tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz +cd $PRGNAM-$COMMIT +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +make + +install -D -m0644 rtl8188fu.ko \ + $PKG/lib/modules/$KERNEL/kernel/drivers/net/wireless/rtl8188fu.ko + +mkdir -p $PKG/lib/modprobe.d/ +mkdir -p $PKG/etc/NetworkManager/conf.d/ + +# disable power management +cp $CWD/conf/rtl8188fu.conf $PKG/lib/modprobe.d/ + +# disable MAC address spoofing +cp $CWD/conf/disable-random-mac.conf $PKG/etc/NetworkManager/conf.d/ + +# blacklist (alias) for kernel 5.15 and 5.16 +cp $CWD/conf/r8188eu-blacklist.conf $PKG/lib/modprobe.d/ + +# blacklist (alias) for kernel 6.2 and up +cp $CWD/conf/rtl8xxxu-blacklist.conf $PKG/lib/modprobe.d/ + +PKGDOC=$PKG/usr/doc/$PRGNAM-$PKGVER +mkdir -p $PKGDOC +cp -a LICENSE README.md $PKGDOC +cat $CWD/README > $PKGDOC/README +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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 diff --git a/network/rtl8188fu/rtl8188fu.info b/network/rtl8188fu/rtl8188fu.info new file mode 100644 index 000000000000..d171f807c53a --- /dev/null +++ b/network/rtl8188fu/rtl8188fu.info @@ -0,0 +1,10 @@ +PRGNAM="rtl8188fu" +VERSION="1.0+20231018_68ced40" +HOMEPAGE="https://github.com/kelebek333/rtl8188fu" +DOWNLOAD="https://github.com/kelebek333/rtl8188fu/archive/68ced40/rtl8188fu-68ced40d862d13663294496bac2e9a91ffa0e5c7.tar.gz" +MD5SUM="5d80f8aa03b281ef759499dd9448ceea" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Juan M. Lasca" +EMAIL="juanmlasca@gmail.com" diff --git a/network/rtl8188fu/slack-desc b/network/rtl8188fu/slack-desc new file mode 100644 index 000000000000..8895bfc9932a --- /dev/null +++ b/network/rtl8188fu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rtl8188fu: rtl8188fu (rtl8188fu / rtl8188ftv wireless network adaptors driver) +rtl8188fu: +rtl8188fu: Driver for Realtek wireless adaptors using the rtl8188fu or the +rtl8188fu: rtl8188ftv chipset. +rtl8188fu: +rtl8188fu: For more information, see: https://github.com/kelebek333/rtl8188fu +rtl8188fu: +rtl8188fu: +rtl8188fu: +rtl8188fu: +rtl8188fu: |