Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 5)
@@ -0,0 +1,56 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url = $(DOWNLOAD_SERVER)/sources/packages/a/usbutils
+
+versions = 013
+pkgname = usbutils
+suffix = tar.xz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+patches = $(CURDIR)/patches/usbutils-013-usbids.patch
+
+.NOTPARALLEL: $(patches)
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======" ; \
+ for tarball in $(tarballs) ; do \
+ echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+ done ; wait
+
+$(sha1s): $(tarballs)
+ @for sha in $@ ; do \
+ echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+ echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+ touch $$sha ; \
+ echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+ sha1sum --check $$sha ; ret="$$?" ; \
+ if [ "$$ret" == "1" ]; then \
+ echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+ exit 1 ; \
+ fi ; \
+ done
+
+$(patches): $(sha1s)
+ @echo -e "\n======= Create Patches =======\n" ; \
+ ( cd create-013-usbids-patch ; ./create.patch.sh ) ; \
+ echo -e "\n"
+
+download_clean:
+ @rm -f $(tarballs) $(sha1s) $(patches)
Index: create-013-usbids-patch/create.patch.sh
===================================================================
--- create-013-usbids-patch/create.patch.sh (nonexistent)
+++ create-013-usbids-patch/create.patch.sh (revision 5)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=013
+
+tar --files-from=file.list -xJvf ../usbutils-$VERSION.tar.xz
+mv usbutils-$VERSION usbutils-$VERSION-orig
+
+cp -rf ./usbutils-$VERSION-new ./usbutils-$VERSION
+
+diff --unified -Nr usbutils-$VERSION-orig usbutils-$VERSION > usbutils-$VERSION-usbids.patch
+
+mv usbutils-$VERSION-usbids.patch ../patches
+
+rm -rf ./usbutils-$VERSION
+rm -rf ./usbutils-$VERSION-orig
Property changes on: create-013-usbids-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-013-usbids-patch/file.list
===================================================================
--- create-013-usbids-patch/file.list (nonexistent)
+++ create-013-usbids-patch/file.list (revision 5)
@@ -0,0 +1,3 @@
+usbutils-013/Makefile.am
+usbutils-013/configure.ac
+
Index: create-013-usbids-patch/usbutils-013-new/Makefile.am
===================================================================
--- create-013-usbids-patch/usbutils-013-new/Makefile.am (nonexistent)
+++ create-013-usbids-patch/usbutils-013-new/Makefile.am (revision 5)
@@ -0,0 +1,101 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (c) 2004 Thomas Sailer <sailer@ife.ee.ethz.ch>
+# Copyright (c) 2005-2006 David Brownell <dbrownell@users.sourceforge.net>
+# Copyright (c) 2009 Kay Sievers <kay.sievers@vrfy.org>
+# Copyright (c) 2009 Greg Kroah-Hartman <gregkh@suse.de>
+
+SUBDIRS = \
+ usbhid-dump
+
+AM_LDFLAGS = \
+ -Wl,--as-needed
+
+data_DATA =
+
+bin_PROGRAMS = \
+ lsusb
+
+sbin_SCRIPTS =
+
+bin_SCRIPTS = \
+ usb-devices \
+ lsusb.py
+
+noinst_PROGRAMS = \
+ usbreset
+
+lsusb_SOURCES = \
+ lsusb.c lsusb.h \
+ lsusb-t.c \
+ list.h \
+ desc-defs.c desc-defs.h \
+ desc-dump.c desc-dump.h \
+ names.c names.h \
+ sysfs.c sysfs.h \
+ usb-spec.h \
+ usbmisc.c usbmisc.h
+
+lsusb_CPPFLAGS = \
+ $(AM_CPPFLAGS) $(LIBUSB_CFLAGS) $(UDEV_CFLAGS) \
+ -DDATADIR=\"$(datadir)\"
+
+lsusb_LDADD = \
+ $(LIBUSB_LIBS) \
+ $(UDEV_LIBS)
+
+usbreset_SOURCES = \
+ usbreset.c
+
+man_MANS = \
+ lsusb.8 \
+ usbhid-dump.8 \
+ usb-devices.1
+
+EXTRA_DIST = \
+ lsusb.8.in \
+ usbhid-dump.8.in \
+ usb-devices.1.in \
+ usb-devices \
+ lsusb.py.in \
+ usbreset.c \
+ usbutils.pc.in \
+ LICENSES/GPL-2.0.txt \
+ LICENSES/GPL-3.0.txt
+
+lsusb.py: $(srcdir)/lsusb.py.in
+ sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
+ chmod 755 $@
+
+if INSTALL_USBIDS
+data_DATA += usb.ids
+
+sbin_SCRIPTS += update-usbids
+
+update-usbids: $(srcdir)/update-usbids.in
+ sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@
+ chmod 755 $@
+endif
+
+lsusb.8: $(srcdir)/lsusb.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+usbhid-dump.8: $(srcdir)/usbhid-dump.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+usb-devices.1: $(srcdir)/usb-devices.1.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+pkgconfigdir = $(datarootdir)/pkgconfig
+pkgconfig_DATA = usbutils.pc
+
+usbutils.pc: $(srcdir)/usbutils.pc.in
+ sed 's|@usbids@|$(datadir)/usb.ids|g;s|@VERSION[@]|$(VERSION)|g' $< >$@
+
+DISTCLEANFILES = \
+ lsusb.py \
+ lsusb.8 \
+ usb-devices.1 \
+ usbhid-dump.8
+
+distclean-local:
+ rm -rf autom4te.cache
Index: create-013-usbids-patch/usbutils-013-new/configure.ac
===================================================================
--- create-013-usbids-patch/usbutils-013-new/configure.ac (nonexistent)
+++ create-013-usbids-patch/usbutils-013-new/configure.ac (revision 5)
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2009 Kay Sievers <kay.sievers@vrfy.org>
+
+AC_INIT([usbutils],
+ [013],
+ [linux-usb@vger.kernel.org])
+AC_PREREQ(2.60)
+AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AC_PREFIX_DEFAULT([/usr])
+
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+
+AC_CHECK_HEADERS([byteswap.h])
+AC_CHECK_FUNCS([nl_langinfo iconv])
+
+AC_ARG_ENABLE(usbids,
+ AS_HELP_STRING(--disable-usbids, [disable installing usb.ids @<:@default=install@:>@]))
+AM_CONDITIONAL([INSTALL_USBIDS], [test "x$enable_usbids" != "xno"])
+
+PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.14)
+
+PKG_CHECK_MODULES(UDEV, libudev >= 196)
+
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([
+ Makefile
+])
+AC_CONFIG_SUBDIRS([usbhid-dump])
+
+AC_OUTPUT
+AC_MSG_RESULT([
+ usbutils $VERSION
+ =============
+
+ prefix: ${prefix}
+ datarootdir: ${datarootdir}
+ datadir: ${datadir}
+ mandir: ${mandir}
+
+ usb.ids: ${datadir}/usb.ids
+
+ compiler: ${CC}
+ cflags: ${CFLAGS}
+ ldflags: ${LDFLAGS}
+])
Index: create-013-usbids-patch/usbutils-013-new/update-usbids.in
===================================================================
--- create-013-usbids-patch/usbutils-013-new/update-usbids.in (nonexistent)
+++ create-013-usbids-patch/usbutils-013-new/update-usbids.in (revision 5)
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+# see also update-pciids.sh (fancier)
+
+[ "$1" = "-q" ] && quiet="true" || quiet="false"
+
+set -e
+SRC="http://www.linux-usb.org/usb.ids"
+DEST=@usbids@
+
+# if usb.ids is read-only (because the filesystem is read-only),
+# then just skip this whole process.
+if ! touch ${DEST} >&2 >/dev/null ; then
+ ${quiet} || echo "${DEST} is read-only, exiting."
+ exit 0
+fi
+
+if which wget >/dev/null 2>&1 ; then
+ DL="wget -O $DEST.new $SRC"
+ ${quiet} && DL="$DL -q"
+elif which lynx >/dev/null 2>&1 ; then
+ DL="eval lynx -source $SRC >$DEST.new"
+else
+ echo >&2 "update-usbids: cannot find wget nor lynx"
+ exit 1
+fi
+
+if ! $DL ; then
+ echo >&2 "update-usbids: download failed"
+ rm -f $DEST.new
+ exit 1
+fi
+
+if ! grep >/dev/null "^C " $DEST.new ; then
+ echo >&2 "update-usbids: missing class info, probably truncated file"
+ exit 1
+fi
+
+if [ -f $DEST ] ; then
+ mv $DEST $DEST.old
+ # --reference is supported only by chmod from GNU file, so let's ignore any errors
+ chmod -f --reference=$DEST.old $DEST.new 2>/dev/null || true
+fi
+mv $DEST.new $DEST
+
+${quiet} || echo "Done."
Property changes on: create-013-usbids-patch/usbutils-013-new/update-usbids.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-013-usbids-patch/usbutils-013-new/usbutils.pc.in
===================================================================
--- create-013-usbids-patch/usbutils-013-new/usbutils.pc.in (nonexistent)
+++ create-013-usbids-patch/usbutils-013-new/usbutils.pc.in (revision 5)
@@ -0,0 +1,5 @@
+Name: usbutils
+Description: USB device database
+Version: @VERSION@
+
+usbids=@usbids@
Index: create-013-usbids-patch/usbutils-013-new
===================================================================
--- create-013-usbids-patch/usbutils-013-new (nonexistent)
+++ create-013-usbids-patch/usbutils-013-new (revision 5)
Property changes on: create-013-usbids-patch/usbutils-013-new
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: create-013-usbids-patch
===================================================================
--- create-013-usbids-patch (nonexistent)
+++ create-013-usbids-patch (revision 5)
Property changes on: create-013-usbids-patch
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: patches/README
===================================================================
--- patches/README (nonexistent)
+++ patches/README (revision 5)
@@ -0,0 +1,6 @@
+
+/* begin *
+
+ TODO: Leave some comment here.
+
+ * end */
Index: patches
===================================================================
--- patches (nonexistent)
+++ patches (revision 5)
Property changes on: patches
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~