diff --git a/sys-firmware/eth-firmware/Manifest b/sys-firmware/eth-firmware/Manifest new file mode 100644 index 000000000..a3a4e3036 --- /dev/null +++ b/sys-firmware/eth-firmware/Manifest @@ -0,0 +1 @@ +DIST linux-firmware-20181026.tar.gz 167486645 BLAKE2B 9923b9a8ab692023022d7bceb238b2ec4eba395062307864be558d969fba657301ada317b95071cad82a7a883a2d08f63f0ed34ecc7914a36f31ce85f55ac31f SHA512 4d6eff765557888dea432e0a28973c8ec067354a57aa4c37198e887618ca17e9d5e1243a618820fb470a86a5ce4b6255290f1c2c3835baba4fb87148372cafb0 diff --git a/sys-firmware/eth-firmware/eth-firmware-20181026.ebuild b/sys-firmware/eth-firmware/eth-firmware-20181026.ebuild new file mode 100644 index 000000000..669ff89c0 --- /dev/null +++ b/sys-firmware/eth-firmware/eth-firmware-20181026.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +MYPN=linux-firmware +MYP=linux-firmware-${PV} + +GIT_COMMIT="1cb4e51018293c14642f115b5868cda92b879161" +SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${MYP}.tar.gz" +KEYWORDS="amd64 x86" + +DESCRIPTION="Binary firmware for Realtek Ethernet" +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git" + +LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+ freedist" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="!sys-kernel/linux-firmware" + +RESTRICT="binchecks strip" + +src_unpack() { + default + # rename directory from git snapshot tarball + mv ${MYPN}-*/ ${P} || die +} + +src_install() { + insinto /lib/firmware/ + doins -r rtl_nic +}