diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-07-13 15:44:36 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-07-13 15:44:36 +0000 |
commit | ac0f86fcbea14aa2d556e79c3343f901abb134da (patch) | |
tree | 95ca2c2d3013d5507e69f7ff1fb654a15a6ae859 /sys-kernel/linux-firmware | |
parent | Revbump because upstream changed contents of the distfiles (not saying what e... (diff) | |
download | gentoo-2-ac0f86fcbea14aa2d556e79c3343f901abb134da.tar.gz gentoo-2-ac0f86fcbea14aa2d556e79c3343f901abb134da.tar.bz2 gentoo-2-ac0f86fcbea14aa2d556e79c3343f901abb134da.zip |
New snapshot.
(Portage version: 2.2.0_alpha115/cvs/Linux x86_64)
Diffstat (limited to 'sys-kernel/linux-firmware')
-rw-r--r-- | sys-kernel/linux-firmware/ChangeLog | 9 | ||||
-rw-r--r-- | sys-kernel/linux-firmware/linux-firmware-20120708.ebuild | 101 |
2 files changed, 108 insertions, 2 deletions
diff --git a/sys-kernel/linux-firmware/ChangeLog b/sys-kernel/linux-firmware/ChangeLog index b84de644e33e..eb6bda95f48f 100644 --- a/sys-kernel/linux-firmware/ChangeLog +++ b/sys-kernel/linux-firmware/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-kernel/linux-firmware # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/ChangeLog,v 1.44 2012/06/15 12:12:30 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/ChangeLog,v 1.45 2012/07/13 15:44:36 chithanh Exp $ + +*linux-firmware-20120708 (13 Jul 2012) + + 13 Jul 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +linux-firmware-20120708.ebuild: + New snapshot. *linux-firmware-20120615 (15 Jun 2012) @@ -221,4 +227,3 @@ 21 Apr 2009; Greg Kroah-Hartman <gregkh@gentoo.org> +metadata.xml, +linux-firmware-20090421.ebuild: Initial creation of the linux-firmware tree - diff --git a/sys-kernel/linux-firmware/linux-firmware-20120708.ebuild b/sys-kernel/linux-firmware/linux-firmware-20120708.ebuild new file mode 100644 index 000000000000..af7425b9fd18 --- /dev/null +++ b/sys-kernel/linux-firmware/linux-firmware-20120708.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/linux-firmware-20120708.ebuild,v 1.1 2012/07/13 15:44:36 chithanh Exp $ + +EAPI=4 +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" +else + SRC_URI="mirror://gentoo/${P}.tar.xz" +fi + +DESCRIPTION="Linux firmware files" +HOMEPAGE="http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git" + +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist" +KEYWORDS="~amd64 ~arm ~ia64 ~x86" +SLOT="0" +IUSE="savedconfig" + +DEPEND="" +RDEPEND="!savedconfig? ( + !media-sound/alsa-firmware[alsa_cards_korg1212] + !media-sound/alsa-firmware[alsa_cards_maestro3] + !media-sound/alsa-firmware[alsa_cards_sb16] + !media-sound/alsa-firmware[alsa_cards_ymfpci] + !media-tv/cx18-firmware + !media-tv/ivtv-firmware + !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/iwl1000-ucode + !net-wireless/iwl2030-ucode + !net-wireless/iwl3945-ucode + !net-wireless/iwl4965-ucode + !net-wireless/iwl5000-ucode + !net-wireless/iwl5150-ucode + !net-wireless/iwl6000-ucode + !net-wireless/iwl6005-ucode + !net-wireless/iwl6030-ucode + !net-wireless/iwl6050-ucode + !net-wireless/libertas-firmware + !net-wireless/rt61-firmware + !net-wireless/rt73-firmware + !net-wireless/rt2860-firmware + !net-wireless/rt2870-firmware + !sys-block/qla-fc-firmware + !x11-drivers/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() { + save_config ${PN}.conf + 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." +} |