From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-915494-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 7ECC11395E2
	for <garchives@archives.gentoo.org>; Tue,  6 Dec 2016 12:32:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C179BE0C17;
	Tue,  6 Dec 2016 12:32:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 8C735E0C17
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Dec 2016 12:32:39 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5ED62340F2A
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Dec 2016 12:32:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C8AAA24B0
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Dec 2016 12:32:36 +0000 (UTC)
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" <mrueg@gentoo.org>
Message-ID: <1481027535.77833572f5c784e6e63c0bd860b4d7369ff36e78.mrueg@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-kernel/linux-firmware/Manifest sys-kernel/linux-firmware/linux-firmware-20161205.ebuild
X-VCS-Directories: sys-kernel/linux-firmware/
X-VCS-Committer: mrueg
X-VCS-Committer-Name: Manuel Rüger
X-VCS-Revision: 77833572f5c784e6e63c0bd860b4d7369ff36e78
X-VCS-Branch: master
Date: Tue,  6 Dec 2016 12:32:36 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 7ee21ba2-3044-468e-be98-2892129d3267
X-Archives-Hash: 80cd5694a7099df4615769de128e3a96

commit:     77833572f5c784e6e63c0bd860b4d7369ff36e78
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  6 12:31:55 2016 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 12:32:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77833572

sys-kernel/linux-firmware: Add new snapshot

Package-Manager: portage-2.3.3

 sys-kernel/linux-firmware/Manifest                 |   1 +
 .../linux-firmware/linux-firmware-20161205.ebuild  | 112 +++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
index 14457fd..caf2453 100644
--- a/sys-kernel/linux-firmware/Manifest
+++ b/sys-kernel/linux-firmware/Manifest
@@ -4,3 +4,4 @@ DIST linux-firmware-20160331.tar.xz 35957140 SHA256 99ab767835006038e9efcc9d583b
 DIST linux-firmware-20160616.tar.xz 36089804 SHA256 216cd8680ab29368f2c206b3dbaa180e5f7331f64b016e0a674870f8abe668b5 SHA512 0a6c8aaea9a6bea5eb92a60499861d59e91b87ab44af4e1b7794539ae46ca6cc5a59ca945d4e4d376bdcf1820b32c66531459db7bfb95e97d343cf9a964f6f7e WHIRLPOOL 17df2ff0d701728c9815ee4e1be6548939fb9d3e54e55ae4caeb05b41b3a0921048a7c0a05f1e682c1a32c3344e1e7c0717fadb365b7717c95f96506f2e93a81
 DIST linux-firmware-20160628.tar.xz 37855232 SHA256 02e22483b466a30284adfce1ec7189f7c2a18a4af2e747e0eb73227ce3bf466b SHA512 cf202ee5526f0a6af2341d7ec248b8eae380acda0bacd9c1b56ea5eeb9880ade2d10ff81b533e761233d54e3a8fa862d39795ab012878784f8a905bbefb3c1d1 WHIRLPOOL 29f4286cc3ab63bf0197d9c2d2e7bfeee7a5312b8ff594e178d81cdb511c253b33d6b00ca8767d57ac643b377618465e1e87a1227db86bd55a00d8999ed2acd4
 DIST linux-firmware-20161005.tar.xz 40838788 SHA256 4172e2febc8c075edcdb5d1977b56b7dbb3cf173967f7a4fd85d2791221b1912 SHA512 3926ef8fe471e5b51f92e490f8433c5fc44bb0c717c5b5fea4c5143d0247fbccaa063c5108efde04f18927c71ef55bbb0f2197f7fb2511a352098cb155d0bb23 WHIRLPOOL 9ab05165ae7f1597d2f7b3bb249282fb1ba34bbe315e004d039f10bf2981ebd5f9c64669498efa5bb8243164ae1842606eefe864bf61119c23c53e739a390e84
+DIST linux-firmware-20161205.tar.xz 40891260 SHA256 a1ab4b2d77b60b466f2312d5ee14717f0f70c9b40e36d20587e5df6ceca61e0b SHA512 ba6d5c919d55da78b17acdf8bab53735190c4fab892ba9510a13a05d56b15c91957a818e4eb4fc092646796acc49e775c147dcb8b901523365d21df453767b0d WHIRLPOOL 45a82e4002c764e8eba2f3ad5dcb7c2d151783b580d70b1e1a4c49e6827c10c07876cb5d3d5a7ecf4c300867dbba62379983af125bfd64cb5b71ae8ff83c565e

diff --git a/sys-kernel/linux-firmware/linux-firmware-20161205.ebuild b/sys-kernel/linux-firmware/linux-firmware-20161205.ebuild
new file mode 100644
index 00000000..db373a2
--- /dev/null
+++ b/sys-kernel/linux-firmware/linux-firmware-20161205.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit savedconfig
+
+if [[ ${PV} == 99999999* ]]; then
+	inherit git-2
+	SRC_URI=""
+	EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
+	KEYWORDS=""
+else
+	GIT_COMMIT="91ddce492dc0a6a718396e0c79101087134f622d"
+	SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.xz -> ${P}.tar.xz"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+DESCRIPTION="Linux firmware files"
+HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
+
+LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
+SLOT="0"
+IUSE="savedconfig"
+
+DEPEND=""
+RDEPEND="!savedconfig? (
+		!sys-firmware/alsa-firmware[alsa_cards_ca0132]
+		!sys-firmware/alsa-firmware[alsa_cards_korg1212]
+		!sys-firmware/alsa-firmware[alsa_cards_maestro3]
+		!sys-firmware/alsa-firmware[alsa_cards_sb16]
+		!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
+		!media-tv/cx18-firmware
+		!<sys-firmware/ivtv-firmware-20080701-r1
+		!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
+		!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
+		!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
+		!net-dialup/ueagle-atm
+		!net-dialup/ueagle4-atm
+		!net-wireless/ar9271-firmware
+		!net-wireless/i2400m-fw
+		!net-wireless/libertas-firmware
+		!sys-firmware/rt61-firmware
+		!net-wireless/rt73-firmware
+		!net-wireless/rt2860-firmware
+		!net-wireless/rt2870-firmware
+		!sys-block/qla-fc-firmware
+		!sys-firmware/amd-ucode
+		!sys-firmware/iwl1000-ucode
+		!sys-firmware/iwl2000-ucode
+		!sys-firmware/iwl2030-ucode
+		!sys-firmware/iwl3945-ucode
+		!sys-firmware/iwl4965-ucode
+		!sys-firmware/iwl5000-ucode
+		!sys-firmware/iwl5150-ucode
+		!sys-firmware/iwl6000-ucode
+		!sys-firmware/iwl6005-ucode
+		!sys-firmware/iwl6030-ucode
+		!sys-firmware/iwl6050-ucode
+		!sys-firmware/iwl3160-ucode
+		!sys-firmware/iwl7260-ucode
+		!sys-firmware/iwl7265-ucode
+		!sys-firmware/iwl3160-7260-bt-ucode
+		!sys-firmware/radeon-ucode
+	)"
+#add anything else that collides to this
+
+src_unpack() {
+	if [[ ${PV} == 99999999* ]]; then
+		git-2_src_unpack
+	else
+		default
+		# rename directory from git snapshot tarball
+		mv ${PN}-*/ ${P} || die
+	fi
+}
+
+src_prepare() {
+	echo "# Remove files that shall not be installed from this list." > ${PN}.conf
+	find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
+
+	if use savedconfig; then
+		restore_config ${PN}.conf
+		ebegin "Removing all files not listed in config"
+		find * \( \! -type d -and \! -name ${PN}.conf \) \
+			| sort ${PN}.conf ${PN}.conf - \
+			| uniq -u | xargs -r rm
+		eend $? || die
+		# remove empty directories, bug #396073
+		find -type d -empty -delete || die
+	fi
+}
+
+src_install() {
+	if use !savedconfig; then
+		save_config ${PN}.conf
+	fi
+	rm ${PN}.conf || die
+	insinto /lib/firmware/
+	doins -r *
+}
+
+pkg_preinst() {
+	if use savedconfig; then
+		ewarn "USE=savedconfig is active. You must handle file collisions manually."
+	fi
+}
+
+pkg_postinst() {
+	elog "If you are only interested in particular firmware files, edit the saved"
+	elog "configfile and remove those that you do not want."
+}