diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-02-03 22:56:13 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-02-03 22:56:13 +0000 |
commit | 006fdc8e1cc973e549630c9a55e16b8d4d2040fc (patch) | |
tree | d4c73f86e328546f4b361802c5369cde5b8742e1 /sys-kernel/linux-firmware | |
parent | Marking mindterm-3.4 ppc for bug 397173 (diff) | |
download | gentoo-2-006fdc8e1cc973e549630c9a55e16b8d4d2040fc.tar.gz gentoo-2-006fdc8e1cc973e549630c9a55e16b8d4d2040fc.tar.bz2 gentoo-2-006fdc8e1cc973e549630c9a55e16b8d4d2040fc.zip |
New snapshot. Update download locations. Avoid installing empty directories, bug #396073.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'sys-kernel/linux-firmware')
5 files changed, 129 insertions, 11 deletions
diff --git a/sys-kernel/linux-firmware/ChangeLog b/sys-kernel/linux-firmware/ChangeLog index 2dbfd6bb03c3..3772187cbabd 100644 --- a/sys-kernel/linux-firmware/ChangeLog +++ b/sys-kernel/linux-firmware/ChangeLog @@ -1,6 +1,14 @@ # 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.31 2012/02/02 13:15:29 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/ChangeLog,v 1.32 2012/02/03 22:56:13 chithanh Exp $ + +*linux-firmware-20120125 (03 Feb 2012) + + 03 Feb 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + linux-firmware-20110731.ebuild, linux-firmware-20110818.ebuild, + +linux-firmware-20120125.ebuild, linux-firmware-99999999.ebuild: + New snapshot. Update download locations. Avoid installing empty directories, + bug #396073. 02 Feb 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> linux-firmware-99999999.ebuild: diff --git a/sys-kernel/linux-firmware/linux-firmware-20110731.ebuild b/sys-kernel/linux-firmware/linux-firmware-20110731.ebuild index f384f18f0da7..04d61a4b15a4 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20110731.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20110731.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# 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-20110731.ebuild,v 1.6 2011/11/01 14:40:57 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/linux-firmware-20110731.ebuild,v 1.7 2012/02/03 22:56:13 chithanh Exp $ EAPI=3 inherit savedconfig @@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then SRC_URI="" EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/${PN}.git" else - SRC_URI="mirror://kernel/linux/kernel/people/dwmw2/firmware/${P}.tar.bz2" + SRC_URI="mirror://gentoo/${P}.tar.bz2" fi DESCRIPTION="Linux firmware files" diff --git a/sys-kernel/linux-firmware/linux-firmware-20110818.ebuild b/sys-kernel/linux-firmware/linux-firmware-20110818.ebuild index 1dff65b7a84c..0354bf4dc5cc 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20110818.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20110818.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# 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-20110818.ebuild,v 1.3 2011/11/01 14:40:57 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/linux-firmware-20110818.ebuild,v 1.4 2012/02/03 22:56:13 chithanh Exp $ EAPI=3 inherit savedconfig @@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then SRC_URI="" EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/${PN}.git" else - SRC_URI="mirror://kernel/linux/kernel/people/dwmw2/firmware/${P}.tar.bz2" + SRC_URI="mirror://gentoo/${P}.tar.bz2" fi DESCRIPTION="Linux firmware files" diff --git a/sys-kernel/linux-firmware/linux-firmware-20120125.ebuild b/sys-kernel/linux-firmware/linux-firmware-20120125.ebuild new file mode 100644 index 000000000000..a0b7bafc0ba0 --- /dev/null +++ b/sys-kernel/linux-firmware/linux-firmware-20120125.ebuild @@ -0,0 +1,98 @@ +# 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-20120125.ebuild,v 1.1 2012/02/03 22:56:13 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.gz" +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 ~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/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 + !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." +} diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index b8b463b10721..62b4a31a7a0e 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -1,8 +1,8 @@ # 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-99999999.ebuild,v 1.13 2012/02/02 13:15:29 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild,v 1.14 2012/02/03 22:56:13 chithanh Exp $ -EAPI=3 +EAPI=4 inherit savedconfig if [[ ${PV} == 99999999* ]]; then @@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then SRC_URI="" EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git" else - SRC_URI="mirror://gentoo/${P}.tar.bz2" + SRC_URI="mirror://gentoo/${P}.tar.gz" fi DESCRIPTION="Linux firmware files" @@ -53,6 +53,16 @@ RDEPEND="!savedconfig? ( )" #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 @@ -64,6 +74,8 @@ src_prepare() { | sort ${PN}.conf ${PN}.conf - \ | uniq -u | xargs -r rm eend $? || die + # remove empty directories, bug #396073 + find -type d -empty -delete || die fi } @@ -71,7 +83,7 @@ src_install() { save_config ${PN}.conf rm ${PN}.conf || die insinto /lib/firmware/ - doins -r * || die "Install failed!" + doins -r * } pkg_preinst() { |