net-wireless/ar9271-firmware ebuild sets: LICENSE="as-is" RESTRICT="mirror binchecks strip" Not sure about which license is the proper one (following gentoo-dev discussions, "as-is" licenses should be replaced?), but mirror restriction should not be on for the package, because the same firmware is distributed in linux-firmware: # tar tJvf /usr/portage/distfiles/linux-firmware-20120924.tar.xz | grep htc_9271 -rw-rw-r-- root/root 51272 2012-09-24 19:35 linux-firmware-236367d/htc_9271.fw
Also, the source should be unpacked when the src_unpack() phase is finished. Why is this done in src_prepare() instead?
Well, I've removed RESTRICT=mirror > 10 Dec 2012; Sergei Trofimovich <slyfox@gentoo.org> > ar9271-firmware-1.3.ebuild: > Removed RESTRICT=mirror (per bug #446634 by Maxim Kammerer) Thanks! But, I didn't find a license for that firmware at the time i've packaged it. I guess it's a 'freedist' one, but if it's not RESTRICT= should be in place.
Changed to 'freedist' to reflect the minimal linux-firmware choice. > 10 Dec 2012; Sergei Trofimovich <slyfox@gentoo.org> > ar9271-firmware-1.3.ebuild: > Changed LICENSE to 'freedist'.
Just for reference, WHENCE in linux-firmware-20120924.tar.xz says: Driver: ath9k_htc - Atheros HTC devices (USB) [...] File: htc_9271.fw Version: 1.3 [...] Licence: Redistributable. See LICENCE.atheros_firmware for details So "freedist" is a reasonable choice.