[oe] [PATCH 2/2] usbutils 0.86: delete usb.ids if gzipped version is installed

Khem Raj raj.khem at gmail.com
Tue Nov 16 23:36:45 UTC 2010


On Thu, Nov 11, 2010 at 5:37 AM, Michael Smith <msmith at cbnco.com> wrote:
> Also split update-usbids.sh to a separate package, and allow building
> when sbindir != /sbin.
>
> Signed-off-by: Michael Smith <msmith at cbnco.com>

Acked-by: Khem Raj <raj.khem at gmail.com>
> ---
>  recipes/usbutils/usbutils_0.86.bb |   17 +++++++++++++++--
>  1 files changed, 15 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/usbutils/usbutils_0.86.bb b/recipes/usbutils/usbutils_0.86.bb
> index 905ad53..000fcca 100644
> --- a/recipes/usbutils/usbutils_0.86.bb
> +++ b/recipes/usbutils/usbutils_0.86.bb
> @@ -4,19 +4,32 @@ DEPENDS += "virtual/libusb0"
>  LICENSE = "GPLv2"
>  PRIORITY = "optional"
>
> +PR = "r1"
> +
>  SRC_URI = "${SOURCEFORGE_MIRROR}/linux-usb/usbutils-${PV}.tar.gz \
>          "
>  inherit autotools
>
>  EXTRA_OECONF = "--program-prefix="
> -sbindir = "/sbin"
> -bindir = "/bin"
> +sbindir = "${base_sbindir}"
> +bindir = "${base_bindir}"
> +
> +PACKAGES =+ "${PN}-update"
>
>  FILES_${PN} += "${datadir}/usb*"
> +FILES_${PN}-update = "${sbindir}/update-usbids.sh"
>
>  do_configure_prepend() {
>        rm -rf ${S}/libusb
>  }
>
> +do_install_append() {
> +       # The 0.86 Makefile.am installs both usb.ids and usb.ids.gz.
> +       if [ -f ${D}${datadir}/usb.ids.gz ]
> +       then
> +               rm -f ${D}${datadir}/usb.ids
> +       fi
> +}
> +
>  SRC_URI[md5sum] = "34979f675d2bcb3e1b45012fa830a53f"
>  SRC_URI[sha256sum] = "b3b2bea6d2cd87660c8201a47071bf2a9889d8ed90c7203cc768b597799c12f4"
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list