diff options
author | 2014-01-03 21:41:12 +0000 | |
---|---|---|
committer | 2014-01-03 21:41:12 +0000 | |
commit | 5b9b4480633930b27943aab87b745c00fbbae5ab (patch) | |
tree | 395ee52ef0065a17c4b16712ad68002f324048e5 /sys-apps/hwids | |
parent | Stable on arm, wrt bug #495508 (diff) | |
download | gentoo-2-5b9b4480633930b27943aab87b745c00fbbae5ab.tar.gz gentoo-2-5b9b4480633930b27943aab87b745c00fbbae5ab.tar.bz2 gentoo-2-5b9b4480633930b27943aab87b745c00fbbae5ab.zip |
Update.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'sys-apps/hwids')
-rw-r--r-- | sys-apps/hwids/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/hwids/hwids-20140103.ebuild | 51 |
2 files changed, 58 insertions, 2 deletions
diff --git a/sys-apps/hwids/ChangeLog b/sys-apps/hwids/ChangeLog index 020138a9ff16..71c2e922a9c3 100644 --- a/sys-apps/hwids/ChangeLog +++ b/sys-apps/hwids/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/hwids -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.126 2013/12/26 18:46:01 flameeyes Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.127 2014/01/03 21:41:12 flameeyes Exp $ + +*hwids-20140103 (03 Jan 2014) + + 03 Jan 2014; Diego E. Pettenò <flameeyes@gentoo.org> +hwids-20140103.ebuild: + Update. *hwids-20131226 (26 Dec 2013) diff --git a/sys-apps/hwids/hwids-20140103.ebuild b/sys-apps/hwids/hwids-20140103.ebuild new file mode 100644 index 000000000000..e12136646a0f --- /dev/null +++ b/sys-apps/hwids/hwids-20140103.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20140103.ebuild,v 1.1 2014/01/03 21:41:12 flameeyes Exp $ + +EAPI=5 +inherit udev eutils + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz" + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux" +IUSE="+udev" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +RDEPEND="!<sys-apps/pciutils-3.1.9-r2 + !<sys-apps/usbutils-005-r1" + +S=${WORKDIR}/hwids-${P} + +src_prepare() { + sed -i -e '/udevadm hwdb/d' Makefile || die +} + +src_compile() { + emake UDEV=$(usex udev) +} + +src_install() { + emake UDEV=$(usex udev) install \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + MISCDIR="${EPREFIX}/usr/share/misc" \ + HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ + DESTDIR="${D}" +} + +pkg_postinst() { + if use udev; then + udevadm hwdb --update --root="${ROOT%/}" + # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then + return 0 + fi + udevadm control --reload + fi +} |