diff options
Diffstat (limited to 'source/a/usbutils')
-rw-r--r-- | source/a/usbutils/usbutils-002.tar.bz2.sign | 8 | ||||
-rwxr-xr-x | source/a/usbutils/usbutils.SlackBuild | 18 | ||||
-rw-r--r-- | source/a/usbutils/usbutils.ids.dest | 11 | ||||
-rw-r--r-- | source/a/usbutils/usbutils.url | 1 |
4 files changed, 12 insertions, 26 deletions
diff --git a/source/a/usbutils/usbutils-002.tar.bz2.sign b/source/a/usbutils/usbutils-002.tar.bz2.sign deleted file mode 100644 index 9d96e9be..00000000 --- a/source/a/usbutils/usbutils-002.tar.bz2.sign +++ /dev/null @@ -1,8 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.11 (GNU/Linux) -Comment: See http://www.kernel.org/signature.html for info - -iD8DBQBNgpmUyGugalF9Dw4RAkkCAJ9AOpNKjFebxdbPfj3LYK+roL7UaACgiKtR -7L3j4M7iAo15yh6B4WP6uCI= -=fb1T ------END PGP SIGNATURE----- diff --git a/source/a/usbutils/usbutils.SlackBuild b/source/a/usbutils/usbutils.SlackBuild index 163b5378..15694392 100755 --- a/source/a/usbutils/usbutils.SlackBuild +++ b/source/a/usbutils/usbutils.SlackBuild @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=${VERSION:-$(echo usbutils-*.tar.bz2 | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-$(echo usbutils-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:--j7} @@ -58,7 +58,7 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf usbutils-$VERSION -tar xvf $CWD/usbutils-$VERSION.tar.bz2 || exit 1 +tar xvf $CWD/usbutils-$VERSION.tar.xz || exit 1 cd usbutils-$VERSION || exit 1 chown -R root:root . @@ -72,19 +72,27 @@ find . \ rm -f usb.ids* wget $(grep 'SRC=' update-usbids.sh.in | cut -d= -f2- | tr -d \") +# Use --datadir=/usr/share/hwdata so usb.ids is expected to be there CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sbindir=/sbin \ --mandir=/usr/man \ + --datadir=/usr/share/hwdata \ --build=$ARCH-slackware-linux make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 # Get rid of this redundant file: -rm -f $PKG/usr/share/usb.ids.gz +rm -f $PKG/usr/share/hwdata/usb.ids.gz + +## Use the usb.ids file shipped with the hwdata package +#rm -f $PKG/usr/share/hwdata/usb.ids* + +# Put a compat symlink in place for stuff that doesn't know about pkgconfig +ln -s hwdata/usb.ids $PKG/usr/share/usb.ids # The usbids are kept under /usr, so it makes no sense at all to have # this util in /sbin rather than /usr/sbin: @@ -100,10 +108,6 @@ mv $PKG/sbin/update-usbids.sh $PKG/usr/sbin/update-usbids.sh # upstream name available there too... ( cd $PKG/sbin ; ln -sf /usr/sbin/update-usbids.sh . ) -# Move the pkgconfig directory to @libdir@ instead of @datadir@ -mkdir $PKG/usr/lib${LIBDIRSUFFIX} -mv $PKG/usr/share/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX} - find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null diff --git a/source/a/usbutils/usbutils.ids.dest b/source/a/usbutils/usbutils.ids.dest deleted file mode 100644 index 67111881..00000000 --- a/source/a/usbutils/usbutils.ids.dest +++ /dev/null @@ -1,11 +0,0 @@ ---- ./update-usbids.sh.orig 2005-01-22 17:03:47.000000000 -0600 -+++ ./update-usbids.sh 2007-01-04 17:14:28.000000000 -0600 -@@ -4,7 +4,7 @@ - - set -e - SRC="http://www.linux-usb.org/usb.ids" --DEST=usb.ids -+DEST=/usr/share/usb.ids - - if which wget >/dev/null ; then - DL="wget -O $DEST.new $SRC" diff --git a/source/a/usbutils/usbutils.url b/source/a/usbutils/usbutils.url new file mode 100644 index 00000000..57e0013b --- /dev/null +++ b/source/a/usbutils/usbutils.url @@ -0,0 +1 @@ +http://www.kernel.org/pub/linux/utils/usb/usbutils/ |