Add the hwids Portage package.

Add sys-apps/hwids, version 20121022 on amd64

BUG=chrome-os-partner:11327
BUG=chromium-os:33226
TEST=manual, build image + test lsusb / lspci

Change-Id: I90769f03fbf9af1d82a8a5a74a1a5d7e67fc2902
Reviewed-on: https://gerrit.chromium.org/gerrit/36281
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Shawn Nematbakhsh <shawnn@google.com>
Commit-Ready: Shawn Nematbakhsh <shawnn@google.com>
This commit is contained in:
Shawn Nematbakhsh 2012-10-22 16:13:32 -07:00 committed by Gerrit
parent 21b3728578
commit 193472cfa5
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,10 @@
DEFINED_PHASES=compile install
DESCRIPTION=Hardware (PCI, USB) IDs databases
EAPI=4
HOMEPAGE=https://github.com/gentoo/hwids
KEYWORDS=~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux
LICENSE=|| ( GPL-2 BSD )
RDEPEND=!<sys-apps/pciutils-3.1.9-r2 !<sys-apps/usbutils-005-r1
SLOT=0
SRC_URI=https://github.com/gentoo/hwids/tarball/hwids-20120922 -> hwids-20120922.tar.gz
_md5_=d231d5daab95187158aeea69e57a48fc

View File

@ -0,0 +1 @@
DIST hwids-20120922.tar.gz 373379 RMD160 4e8e4c726b4eabdf97c919ccd95704dca7d1b093 SHA1 32ae7895e5fe01ca4424d7e19fd4e6145ce93bd9 SHA256 7152b59b85c66f114436470319067685cd0cb9ecf37f051aef94cfdb15306297

View File

@ -0,0 +1,37 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20120922.ebuild,v 1.4 2012/10/02 12:53:52 blueness Exp $
EAPI="4"
DESCRIPTION="Hardware (PCI, USB) IDs databases"
HOMEPAGE="https://github.com/gentoo/hwids"
SRC_URI="https://github.com/gentoo/hwids/tarball/${P} -> ${P}.tar.gz"
LICENSE="|| ( GPL-2 BSD )"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE=""
DEPEND=""
RDEPEND="!<sys-apps/pciutils-3.1.9-r2
!<sys-apps/usbutils-005-r1"
S="${WORKDIR}"
src_compile() {
cd "${S}"/gentoo-hwids-*
for file in {usb,pci}.ids; do
gzip -c ${file} > ${file}.gz || die
done
}
src_install() {
cd "${S}"/gentoo-hwids-*
insinto /usr/share/misc
doins {usb,pci}.ids{,.gz}
dodoc README.md
}