summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-03-06 10:00:17 -0500
committerMike Gilbert <floppym@gentoo.org>2016-03-06 10:01:16 -0500
commit71143327e754a50320670307461a072193e79218 (patch)
treef5f2223f0c7720e68800da78749be2e92d9bcbc7 /sys-apps
parentapp-crypt/mit-krb5: Stable for HPPA (bug #574604). (diff)
downloadgentoo-71143327e754a50320670307461a072193e79218.tar.gz
gentoo-71143327e754a50320670307461a072193e79218.tar.bz2
gentoo-71143327e754a50320670307461a072193e79218.zip
sys-apps/hwids: Bump to 20160306
Bug: https://bugs.gentoo.org/576568 Package-Manager: portage-2.2.27_p64
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hwids/Manifest1
-rw-r--r--sys-apps/hwids/hwids-20160306.ebuild73
-rw-r--r--sys-apps/hwids/hwids-99999999.ebuild2
3 files changed, 75 insertions, 1 deletions
diff --git a/sys-apps/hwids/Manifest b/sys-apps/hwids/Manifest
index b267ad089830..d85e94f3278e 100644
--- a/sys-apps/hwids/Manifest
+++ b/sys-apps/hwids/Manifest
@@ -6,3 +6,4 @@ DIST hwids-20150129.tar.gz 1707029 SHA256 33a7f4dbf14704076b0fe1d0052e86bb618e38
DIST hwids-20150417.tar.gz 1724883 SHA256 ef4d3e3f722ef7a2294af3e1c048c735cb0aa604259d54ed704dd7b8275c2569 SHA512 9acbf4ef7907e380bace30c38f1c2cf58e76cd68f258d59eb6d3b0e13287537205310f34783acd276cd7e7964b7f67eb7de8f636abf3419bf7bc9accb07e1761 WHIRLPOOL 33ca057faf1445409c563463271d67715077b27a7b402f2c91b82d893ff7b950e0443fb86611e9ec1d4118767e99d18ce40d9bc73bc1f471af69f163297f5b97
DIST hwids-20150421.tar.gz 1726968 SHA256 2c3ced90c069392f1f6ccdf7a8541ea2c3d871c575b8b6b02129e62bcec6f6a4 SHA512 3418d48b4f9b2dcb6e221a07ab74c81004866b40aa9d7b5ab0b73d2ed1febbd9e4d3d2d76e0a0e3c9d71c4dd79767c1cffa346d68c91e8fb19bcef3baccb101c WHIRLPOOL 5427dcd0725a5dfc16af441b52ad0bad1bf770a2287f814c6f032b5696062b76b934ca6cf968f45addd5b197c66011da6ddfd3a4b9539103672e1b66d68fb262
DIST hwids-20150717.tar.gz 1745565 SHA256 5a4769cd0e57a96c2693e7ec3d48f53e493afae58376a1f7124a08844632d917 SHA512 431a3a024512719ed5d53f21291de28bb5f904987fbeb8a90583517e24abcf5e19d9312819f02bcffbb42c0b16e761e4517575a600d1d8102f8373d1a21806d0 WHIRLPOOL 2ef9b880801d1ca94311104193e96f64eef58b7db86ee486614e80e63a1e9c42d9f940aadebd19c708ad0caab9a0be43ffcd44d9288bbce41238a64815d82076
+DIST hwids-20160306.tar.gz 1900745 SHA256 d5ae6937e87c4ae0a4dad84b8a917434831eda15b0bfcc5a8444bfca84279645 SHA512 766736ed2586ea163b0ea97654d6b73314bacc822d26f9d823dcd9de8661747a0372b0cd754b3c2605c6b1795440f87df126beafc391cf64577f461bd27b5e6c WHIRLPOOL 9a5d38fb4afa232917f69aa8d1fde3e55e20674d740941a392ee7cfa3f7d64d679a6e0a96553fb6c327bf5c98a1c3e8f6eff902dda99751dd5a15c6c20585022
diff --git a/sys-apps/hwids/hwids-20160306.ebuild b/sys-apps/hwids/hwids-20160306.ebuild
new file mode 100644
index 000000000000..e9a265691b36
--- /dev/null
+++ b/sys-apps/hwids/hwids-20160306.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit udev eutils
+
+DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
+HOMEPAGE="https://github.com/gentoo/hwids"
+if [[ ${PV} == "99999999" ]]; then
+ EGIT_REPO_URI="${HOMEPAGE}.git"
+ inherit git-2
+else
+ SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+LICENSE="|| ( GPL-2 BSD ) public-domain"
+SLOT="0"
+IUSE="+net +pci +udev +usb"
+
+DEPEND="udev? (
+ dev-lang/perl
+ >=virtual/udev-206
+)"
+[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )"
+RDEPEND="!<sys-apps/pciutils-3.1.9-r2
+ !<sys-apps/usbutils-005-r1"
+
+S=${WORKDIR}/hwids-${P}
+
+src_prepare() {
+ [[ ${PV} == "99999999" ]] && emake fetch
+
+ sed -i -e '/udevadm hwdb/d' Makefile || die
+
+ # Create a rules file compatible with older udev.
+ sed -e 's/evdev:name/keyboard:name/' \
+ -e 's/evdev:atkbd:dmi/keyboard:dmi/' \
+ -e 's/evdev:input:b\([^v]*\)v\([^p]*\)p\([^e]*\)\(e.*\)\?/keyboard:usb:v\2p\3/' \
+ -e 's/keyboard:usb:v046DpC52D\*/keyboard:usb:v046DpC52Dd*dc*dsc*dp*ic*isc*ip*in00*/' \
+ -e 's/keyboard:usb:v0458p0708\*/keyboard:usb:v0458p0708d*dc*dsc*dp*ic*isc*ip*in01*/' \
+ udev/60-keyboard.hwdb > udev/61-oldkeyboard.hwdb || die
+}
+
+_emake() {
+ emake \
+ NET=$(usex net) \
+ PCI=$(usex pci) \
+ UDEV=$(usex udev) \
+ USB=$(usex usb) \
+ "$@"
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake 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
+ [ "${ROOT:-/}" = "/" ] && udevadm control --reload
+ fi
+}
diff --git a/sys-apps/hwids/hwids-99999999.ebuild b/sys-apps/hwids/hwids-99999999.ebuild
index c68cf73b51e9..e9a265691b36 100644
--- a/sys-apps/hwids/hwids-99999999.ebuild
+++ b/sys-apps/hwids/hwids-99999999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$