diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-12-02 07:21:00 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-12-02 07:21:00 +0000 |
commit | f7c6b56006ac247459064bd9b9eb02f3e64ea98c (patch) | |
tree | 77f643094094a7260204ed79e75a54f29f2eb020 /sys-apps/hwids/hwids-99999999.ebuild | |
parent | Remove old, stop installing oui.txt/manuf.txt (unused), don't use a full sear... (diff) | |
download | gentoo-2-f7c6b56006ac247459064bd9b9eb02f3e64ea98c.tar.gz gentoo-2-f7c6b56006ac247459064bd9b9eb02f3e64ea98c.tar.bz2 gentoo-2-f7c6b56006ac247459064bd9b9eb02f3e64ea98c.zip |
Use ids-update.pl from systemd tarball to regenerate udev.bin binary formatted database from files: pci.ids, usb.ids and oui.txt
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-apps/hwids/hwids-99999999.ebuild')
-rw-r--r-- | sys-apps/hwids/hwids-99999999.ebuild | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/sys-apps/hwids/hwids-99999999.ebuild b/sys-apps/hwids/hwids-99999999.ebuild index 7a597ad81286..b94cbccd5c86 100644 --- a/sys-apps/hwids/hwids-99999999.ebuild +++ b/sys-apps/hwids/hwids-99999999.ebuild @@ -1,8 +1,9 @@ # 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-99999999.ebuild,v 1.4 2012/12/02 06:47:35 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild,v 1.5 2012/12/02 07:21:00 ssuominen Exp $ -EAPI="4" +EAPI=5 +inherit udev DESCRIPTION="Hardware (PCI, USB) IDs databases" HOMEPAGE="https://github.com/gentoo/hwids" @@ -11,11 +12,12 @@ HOMEPAGE="https://github.com/gentoo/hwids" LICENSE="|| ( GPL-2 BSD ) freedist" SLOT="0" KEYWORDS="" -IUSE="" +IUSE="+udev" -S="${WORKDIR}" +S=${WORKDIR} -DEPEND="net-misc/wget" +DEPEND="net-misc/wget + udev? ( dev-lang/perl !=sys-fs/udev-196 )" RDEPEND="!<sys-apps/pciutils-3.1.9-r2 !<sys-apps/usbutils-005-r1" @@ -25,9 +27,25 @@ src_compile() { for file in {usb,pci}.ids; do zcat ${file}.gz > ${file} || die done + + if use udev; then + wget http://cgit.freedesktop.org/systemd/systemd/plain/hwdb/ids-update.pl -O ids-update-${PV}.pl || die + perl "${DISTDIR}"/ids-update-${PV}.pl &>/dev/null || die + fi } src_install() { insinto /usr/share/misc doins {usb,pci}.ids{,.gz} oui.txt + + if use udev; then + insinto "$(udev_get_udevdir)"/hwdb.d + doins *.hwdb + fi +} + +pkg_postinst() { + if use udev && has_version '>=virtual/udev-180'; then + udevadm hwdb --update + fi } |