diff options
author | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 13:20:17 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 13:20:17 +0000 |
commit | 2b0df5a72d143228d00599de34a33bb1f00973ea (patch) | |
tree | 0d4d4ad833d71e180bf7d07aa500461865d82551 /sysutils/usbutils | |
parent | 24c78aae279d7c2af27637dc1c0bce3d6b1bfc96 (diff) |
- Update to v0.86
- Add LICENSE information
Notes
Notes:
svn path=/head/; revision=258280
Diffstat (limited to 'sysutils/usbutils')
-rw-r--r-- | sysutils/usbutils/Makefile | 18 | ||||
-rw-r--r-- | sysutils/usbutils/distinfo | 6 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-Makefile.am | 11 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-config.h.in | 22 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-configure | 13 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-configure.in | 11 | ||||
-rw-r--r-- | sysutils/usbutils/files/patch-lsusb.c | 34 | ||||
-rw-r--r-- | sysutils/usbutils/pkg-plist | 5 |
9 files changed, 53 insertions, 78 deletions
diff --git a/sysutils/usbutils/Makefile b/sysutils/usbutils/Makefile index 3a260d7b19d4..c974afa54479 100644 --- a/sysutils/usbutils/Makefile +++ b/sysutils/usbutils/Makefile @@ -5,18 +5,22 @@ # $FreeBSD$ PORTNAME= usbutils -PORTVERSION= 0.73 +PORTVERSION= 0.86 CATEGORIES= sysutils -MASTER_SITES= SF/linux-usb/${PORTNAME}/${PORTVERSION} +MASTER_SITES= SF/linux-usb/${PORTNAME} MAINTAINER= brix@FreeBSD.org COMMENT= Utility for listing USB devices +LICENSE= GPLv2 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS= --datadir=${DATADIR} +CONFIGURE_ARGS= --datadir=${DATADIR} --enable-zlib +USE_GMAKE= yes +USE_GNOME= pkgconfig +MAN1= usb-devices.1 MAN8= lsusb.8 PORTDOCS= AUTHORS ChangeLog NEWS README @@ -24,8 +28,16 @@ PORTDOCS= AUTHORS ChangeLog NEWS README .if ${OSVERSION} < 800069 LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb +.else +CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" \ + LIBUSB_LIBS="-L/usr/lib -lusb" .endif +post-patch: + @${REINPLACE_CMD} -i '' \ + -e 's|/bin/bash|/bin/sh|' \ + ${WRKSRC}/usb-devices + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} diff --git a/sysutils/usbutils/distinfo b/sysutils/usbutils/distinfo index 0c83ddf363ad..4059dcb976ed 100644 --- a/sysutils/usbutils/distinfo +++ b/sysutils/usbutils/distinfo @@ -1,3 +1,3 @@ -MD5 (usbutils-0.73.tar.gz) = 88978b4ad891f610620b1b8e5e0f43eb -SHA256 (usbutils-0.73.tar.gz) = 2edc7cc98fd217f6980d8ba0b3792beed4695d4e8429a11c7237faab04ab47f4 -SIZE (usbutils-0.73.tar.gz) = 173312 +MD5 (usbutils-0.86.tar.gz) = 34979f675d2bcb3e1b45012fa830a53f +SHA256 (usbutils-0.86.tar.gz) = b3b2bea6d2cd87660c8201a47071bf2a9889d8ed90c7203cc768b597799c12f4 +SIZE (usbutils-0.86.tar.gz) = 246623 diff --git a/sysutils/usbutils/files/patch-Makefile.am b/sysutils/usbutils/files/patch-Makefile.am new file mode 100644 index 000000000000..cfa74ee65c70 --- /dev/null +++ b/sysutils/usbutils/files/patch-Makefile.am @@ -0,0 +1,11 @@ +--- Makefile.am.orig 2010-07-13 21:30:02.000000000 +0200 ++++ Makefile.am 2010-07-13 21:30:21.000000000 +0200 +@@ -56,7 +56,7 @@ lsusb.8: $(srcdir)/lsusb.8.in + usb-devices.1: $(srcdir)/usb-devices.1.in + sed 's|VERSION|$(VERSION)|g' $< >$@ + +-pkgconfigdir = $(datadir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = usbutils.pc + + usbutils.pc: $(srcdir)/usbutils.pc.in diff --git a/sysutils/usbutils/files/patch-Makefile.in b/sysutils/usbutils/files/patch-Makefile.in new file mode 100644 index 000000000000..6752d01d6e18 --- /dev/null +++ b/sysutils/usbutils/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2010-07-13 21:50:47.000000000 +0200 ++++ Makefile.in 2010-07-13 21:51:39.000000000 +0200 +@@ -223,7 +223,7 @@ EXTRA_DIST = \ + usb-devices \ + usbutils.pc.in + +-pkgconfigdir = $(datadir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = usbutils.pc + DISTCLEANFILES = \ + usb.ids.gz \ diff --git a/sysutils/usbutils/files/patch-config.h.in b/sysutils/usbutils/files/patch-config.h.in deleted file mode 100644 index c664960dea69..000000000000 --- a/sysutils/usbutils/files/patch-config.h.in +++ /dev/null @@ -1,22 +0,0 @@ ---- config.h.in.orig 2006-12-10 21:33:49.000000000 +0100 -+++ config.h.in 2007-11-14 20:50:36.000000000 +0100 -@@ -15,6 +15,9 @@ - */ - #undef HAVE_ALLOCA_H - -+/* Define to 1 if you have the <asm/byteorder.h> header file. */ -+#undef HAVE_ASM_BYTEORDER_H -+ - /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. - */ - #undef HAVE_DIRENT_H -@@ -46,6 +49,9 @@ - /* Define to 1 if you have the `z' library (-lz). */ - #undef HAVE_LIBZ - -+/* Define to 1 if you have the <machine/endian.h> header file. */ -+#undef HAVE_MACHINE_ENDIAN_H -+ - /* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ - #undef HAVE_MALLOC diff --git a/sysutils/usbutils/files/patch-configure b/sysutils/usbutils/files/patch-configure deleted file mode 100644 index 3ed6d73112c2..000000000000 --- a/sysutils/usbutils/files/patch-configure +++ /dev/null @@ -1,13 +0,0 @@ ---- configure.orig 2007-10-23 23:19:49.000000000 +0200 -+++ configure 2007-11-14 20:50:37.000000000 +0100 -@@ -4138,7 +4138,9 @@ done - - - --for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h -+ -+ -+for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h asm/byteorder.h machine/endian.h - do - as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` - if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/sysutils/usbutils/files/patch-configure.in b/sysutils/usbutils/files/patch-configure.in deleted file mode 100644 index 2f54d02fd7f0..000000000000 --- a/sysutils/usbutils/files/patch-configure.in +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.in.orig 2007-10-23 23:19:32.000000000 +0200 -+++ configure.in 2007-11-14 20:50:37.000000000 +0100 -@@ -20,7 +20,7 @@ AC_PROG_LN_S - AC_FUNC_ALLOCA - AC_HEADER_DIRENT - AC_HEADER_STDC --AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h ]) -+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h asm/byteorder.h machine/endian.h]) - - # Checks for typedefs, structures, and compiler characteristics. - AC_C_CONST diff --git a/sysutils/usbutils/files/patch-lsusb.c b/sysutils/usbutils/files/patch-lsusb.c index 40a7e3c1ab15..86841c67cc56 100644 --- a/sysutils/usbutils/files/patch-lsusb.c +++ b/sysutils/usbutils/files/patch-lsusb.c @@ -1,33 +1,15 @@ ---- lsusb.c.orig 2007-10-23 23:04:32.000000000 +0200 -+++ lsusb.c 2007-11-14 20:50:37.000000000 +0100 -@@ -35,13 +35,29 @@ +--- lsusb.c.orig 2009-08-17 22:28:42.000000000 +0000 ++++ lsusb.c 2010-07-26 13:08:52.000000000 +0000 +@@ -31,8 +31,11 @@ + #include <string.h> #include <errno.h> #include <stdio.h> ++#include <stdlib.h> #include <stdarg.h> -+ -+#if defined(HAVE_ASM_BYTEORDER_H) - #include <asm/byteorder.h> - #define le16_to_cpu __le16_to_cpu -+ -+#elif defined(HAVE_MACHINE_ENDIAN_H) -+#include <machine/endian.h> -+#if _BYTE_ORDER == _LITTLE_ENDIAN -+#define le16_to_cpu(x) (x) -+#else -+#define le16_to_cpu __bswap16 +-#include <byteswap.h> ++#if defined(HAVE_UNISTD_H) ++#include <unistd.h> +#endif -+ -+#else -+#error no le16_to_cpu implementation is available -+#endif -+ #include <usb.h> - /* NOTE: that should be <libusb.h> and it should include -- * <linux/usb_ch9.h> ... without it, we keep accumulating -+ * <linux/usb/ch9.h> ... without it, we keep accumulating - * potentially broken variants of standard types ... -+ * also <linux/usb/cdc.h>, <linux/usb/audio.h>, etc - */ - #include "names.h" diff --git a/sysutils/usbutils/pkg-plist b/sysutils/usbutils/pkg-plist index c7b66580e81a..ceeb98125577 100644 --- a/sysutils/usbutils/pkg-plist +++ b/sysutils/usbutils/pkg-plist @@ -1,3 +1,8 @@ +bin/usb-devices +libdata/pkgconfig/usbutils.pc sbin/lsusb +sbin/update-usbids.sh +%%DATADIR%%/usb.ids %%DATADIR%%/usb.ids.gz @dirrm %%DATADIR%% +@dirrmtry libdata/pkgconfig |