diff --git a/sys-firmware/ralink-wifi-firmwares/licenses/Ralink WiFi Firmware b/sys-firmware/ralink-wifi-firmwares/licenses/Ralink WiFi Firmware new file mode 100644 index 000000000..84d9030af --- /dev/null +++ b/sys-firmware/ralink-wifi-firmwares/licenses/Ralink WiFi Firmware @@ -0,0 +1,14 @@ +Copyright (c) 2005-2008, Ralink Technology Corp. + Paul Lin + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/sys-firmware/ralink-wifi-firmwares/ralink_wifi_firmwares-2015_02_11.recipe b/sys-firmware/ralink-wifi-firmwares/ralink_wifi_firmwares-2015_02_11.recipe new file mode 100644 index 000000000..7454c0acd --- /dev/null +++ b/sys-firmware/ralink-wifi-firmwares/ralink_wifi_firmwares-2015_02_11.recipe @@ -0,0 +1,50 @@ +SUMMARY="Ralink WiFi firmware modules" +DESCRIPTION="Ralink WiFi devices require firmware to operate. This package \ +contains those necessary firmware files, corresponding to the WiFi drivers \ +contained within the base system." +HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/" +COPYRIGHT="2005-2008, Ralink Technology Corp" +LICENSE="Ralink WiFi Firmware" +REVISION="1" +srcGitRev="f386f04f11679fd31731bce42208bb4363b79e75" +SOURCE_URI="https://github.com/freebsd/freebsd-src/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="327e6f4836c3c80ab388d53879f97a0bccd6b9f4873860750a0c00fecbcb39aa" +SOURCE_DIR="freebsd-src-$srcGitRev/sys/contrib/dev/" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + ralink_wifi_firmwares = $portVersion + " + +BUILD_REQUIRES=" + cmd:uudecode + " + +BUILD() +{ + rm -rf install-firmware + mkdir -p install-firmware + + process_firmware() + { + freebsd_driver=$1 + haiku_driver=$2 + cd $freebsd_driver + mkdir ../install-firmware/$haiku_driver + for f in *.uu; do + uudecode -o ../install-firmware/$haiku_driver/$(echo $f | cut -d'.' -f-1).ucode $f + done + cp LICENSE ../install-firmware/$haiku_driver + cd .. + } + + process_firmware ral ralinkwifi +} + +INSTALL() +{ + mkdir -p $dataDir/firmware/ + cp -r install-firmware/. $dataDir/firmware/ +} diff --git a/sys-firmware/realtek-wifi-firmwares/licenses/Realtek WiFi Firmware b/sys-firmware/realtek-wifi-firmwares/licenses/Realtek WiFi Firmware new file mode 100644 index 000000000..c0ae6df08 --- /dev/null +++ b/sys-firmware/realtek-wifi-firmwares/licenses/Realtek WiFi Firmware @@ -0,0 +1,39 @@ +Copyright (c) 2010-2019, Realtek Semiconductor Corporation +All rights reserved. + +Redistribution. Redistribution and use in binary form, without +modification, are permitted provided that the following conditions are +met: + +* Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. +* Neither the name of Realtek Semiconductor Corporation nor the names of its + suppliers may be used to endorse or promote products derived from this + software without specific prior written permission. +* No reverse engineering, decompilation, or disassembly of this software + is permitted. + +Limited patent license. Realtek Semiconductor Corporation grants a world-wide, +royalty-free, non-exclusive license under patents it now or hereafter +owns or controls to make, have made, use, import, offer to sell and +sell ("Utilize") this software, but solely to the extent that any +such patent is necessary to Utilize the software alone, or in +combination with an operating system licensed under an approved Open +Source license as listed by the Open Source Initiative at +http://opensource.org/licenses. The patent license shall not apply to +any other combinations which include this software. No hardware per +se is licensed hereunder. + +DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/sys-firmware/realtek-wifi-firmwares/realtek_wifi_firmwares-2019_01_02.recipe b/sys-firmware/realtek-wifi-firmwares/realtek_wifi_firmwares-2019_01_02.recipe new file mode 100644 index 000000000..dfd1087e4 --- /dev/null +++ b/sys-firmware/realtek-wifi-firmwares/realtek_wifi_firmwares-2019_01_02.recipe @@ -0,0 +1,50 @@ +SUMMARY="Realtek WiFi firmware modules" +DESCRIPTION="Realtek WiFi devices require firmware to operate. This package \ +contains those necessary firmware files, corresponding to the WiFi drivers \ +contained within the base system." +HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/" +COPYRIGHT="2010-2019 Realtek Semiconductor Corporation" +LICENSE="Realtek WiFi Firmware" +REVISION="1" +srcGitRev="b3f3786e5dd186b11a79e50e5aa4efb95dab9307" +SOURCE_URI="https://github.com/freebsd/freebsd-src/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="855cb4dc880b3f12f177f0d7c754e3734205b08b155f97fd4e146e40736b6544" +SOURCE_DIR="freebsd-src-$srcGitRev/sys/contrib/dev/" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + realtek_wifi_firmwares = $portVersion + " + +BUILD_REQUIRES=" + cmd:uudecode + " + +BUILD() +{ + rm -rf install-firmware + mkdir -p install-firmware + + process_firmware() + { + freebsd_driver=$1 + haiku_driver=$2 + cd $freebsd_driver + mkdir ../install-firmware/$haiku_driver + for f in *.uu; do + uudecode -o ../install-firmware/$haiku_driver/$(echo $f | cut -d'.' -f-1).ucode $f + done + cp LICENSE ../install-firmware/$haiku_driver + cd .. + } + + process_firmware rtwn realtekwifi +} + +INSTALL() +{ + mkdir -p $dataDir/firmware/ + cp -r install-firmware/. $dataDir/firmware/ +}