|
@@ -3,32 +3,30 @@ DESCRIPTION = "Contains the lsusb utility for inspecting the devices connected t
|
|
HOMEPAGE = "http://www.linux-usb.org"
|
|
HOMEPAGE = "http://www.linux-usb.org"
|
|
SECTION = "base"
|
|
SECTION = "base"
|
|
|
|
|
|
-LICENSE = "GPLv2+"
|
|
|
|
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
|
|
+LICENSE = "GPLv2+ & (GPLv2 | GPLv3)"
|
|
|
|
+# License files went missing in 010, when 011 is released add LICENSES/* back
|
|
|
|
+LIC_FILES_CHKSUM = "file://lsusb.c;endline=1;md5=7d4861d978ff5ba7cb2b319ed1d4afe3 \
|
|
|
|
+ file://lsusb.py.in;beginline=2;endline=2;md5=194d6a0226bf90f4f683e8968878b6cd"
|
|
|
|
|
|
-DEPENDS = "libusb zlib virtual/libiconv udev"
|
|
|
|
|
|
+DEPENDS = "libusb1 virtual/libiconv udev"
|
|
|
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
|
|
file://usb-devices-avoid-dependency-on-bash.patch \
|
|
file://usb-devices-avoid-dependency-on-bash.patch \
|
|
"
|
|
"
|
|
-
|
|
|
|
-SRC_URI[md5sum] = "b5dbc498b2eb5058f7a57fc6532d0aad"
|
|
|
|
-SRC_URI[sha256sum] = "e73543293a17c7803994eac97a49e58b377e08e6299ba11aad09794b91340e8b"
|
|
|
|
|
|
+SRC_URI[md5sum] = "5eb2d2d68f9ed6dc3e9659a5988f7ed6"
|
|
|
|
+SRC_URI[sha256sum] = "881ba47fb2df10c3ba54a4cd6755a90377180890788e476f99d480ea9bc8bb58"
|
|
|
|
|
|
inherit autotools pkgconfig distro_features_check update-alternatives
|
|
inherit autotools pkgconfig distro_features_check update-alternatives
|
|
|
|
|
|
ALTERNATIVE_${PN} = "lsusb"
|
|
ALTERNATIVE_${PN} = "lsusb"
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
|
|
|
|
-FILES_${PN}-dev += "${datadir}/pkgconfig"
|
|
|
|
|
|
+# The binaries are mostly GPLv2+ apart from lsusb.py which is GPLv2 or v3.
|
|
|
|
+LICENSE_${PN} = "GPLv2+"
|
|
|
|
+LICENSE_${PN}-python = "GPLv2 | GPLv3"
|
|
|
|
|
|
RRECOMMENDS_${PN} = "udev-hwdb"
|
|
RRECOMMENDS_${PN} = "udev-hwdb"
|
|
-RDEPENDS_${PN}-ptest = "libboost-system libboost-thread"
|
|
|
|
|
|
|
|
PACKAGE_BEFORE_PN =+ "${PN}-python"
|
|
PACKAGE_BEFORE_PN =+ "${PN}-python"
|
|
FILES_${PN}-python += "${bindir}/lsusb.py"
|
|
FILES_${PN}-python += "${bindir}/lsusb.py"
|
|
RDEPENDS_${PN}-python = "python3-core"
|
|
RDEPENDS_${PN}-python = "python3-core"
|
|
-
|
|
|
|
-do_install_append() {
|
|
|
|
- sed -i -E '1s,#!.+python,#!${bindir}/python3,' ${D}${bindir}/lsusb.py
|
|
|
|
-}
|
|
|