Index: head/sysutils/usbutils/Makefile =================================================================== --- head/sysutils/usbutils/Makefile (revision 431990) +++ head/sysutils/usbutils/Makefile (revision 431991) @@ -1,39 +1,36 @@ # Created by: Henrik Brix Andersen # $FreeBSD$ PORTNAME= usbutils -PORTVERSION= 0.86 -PORTREVISION= 2 +PORTVERSION= 0.91 +DISTVERSIONPREFIX= v CATEGORIES= sysutils -MASTER_SITES= SF/linux-usb/${PORTNAME} \ - http://pkgs.fedoraproject.org/repo/pkgs/usbutils/usbutils-0.86.tar.gz/34979f675d2bcb3e1b45012fa830a53f/ \ - http://ftp.be.debian.org/pub/linux/utils/usb/usbutils/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Utility for listing USB devices LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake pathfix pkgconfig +RUN_DEPENDS= usbhid-dump:sysutils/usbhid-dump \ + ${LOCALBASE}/share/usbids/usb.ids:misc/usbids + +OPTIONS_DEFINE= DOCS + +CONFIGURE_ARGS= --datadir=${LOCALBASE}/share/usbids --enable-zlib +CONFIGURE_ENV= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb" GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ARGS= --datadir=${DATADIR} --enable-zlib +USES= autoreconf gmake pkgconfig shebangfix PORTDOCS= AUTHORS ChangeLog NEWS README -OPTIONS_DEFINE= DOCS +GH_ACCOUNT= gregkh +USE_GITHUB= yes -post-patch: - @${REINPLACE_CMD} -e '/PKG_CONFIG.*libusb/s/ >= 0\.1\.[0-9]*/-0.1/' \ - ${WRKSRC}/configure - @${REINPLACE_CMD} -i '' \ - -e 's|/bin/bash|/bin/sh|' \ - ${WRKSRC}/usb-devices +SHEBANG_FILES= usb-devices post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ .include Index: head/sysutils/usbutils/distinfo =================================================================== --- head/sysutils/usbutils/distinfo (revision 431990) +++ head/sysutils/usbutils/distinfo (revision 431991) @@ -1,2 +1,3 @@ -SHA256 (usbutils-0.86.tar.gz) = b3b2bea6d2cd87660c8201a47071bf2a9889d8ed90c7203cc768b597799c12f4 -SIZE (usbutils-0.86.tar.gz) = 246623 +TIMESTAMP = 1484941159 +SHA256 (gregkh-usbutils-v0.91_GH0.tar.gz) = 26175117575a3e3ebf784d27d0822f7e86040fdc51ab94b54bbfc238257af2de +SIZE (gregkh-usbutils-v0.91_GH0.tar.gz) = 185068 Index: head/sysutils/usbutils/files/patch-lsusb.c =================================================================== --- head/sysutils/usbutils/files/patch-lsusb.c (revision 431990) +++ head/sysutils/usbutils/files/patch-lsusb.c (nonexistent) @@ -1,15 +0,0 @@ ---- 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 - #include - #include -+#include - #include --#include -+#if defined(HAVE_UNISTD_H) -+#include -+#endif - #include - - #include "names.h" Property changes on: head/sysutils/usbutils/files/patch-lsusb.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/usbutils/files/patch-Makefile.am =================================================================== --- head/sysutils/usbutils/files/patch-Makefile.am (nonexistent) +++ head/sysutils/usbutils/files/patch-Makefile.am (revision 431991) @@ -0,0 +1,33 @@ +--- Makefile.am.orig 2010-10-22 23:38:09 UTC ++++ Makefile.am +@@ -1,21 +1,9 @@ +-SUBDIRS = \ +- usbhid-dump +- + AM_LDFLAGS = \ + -Wl,--as-needed + +-data_DATA = \ +- usb.ids +-if HAVE_ZLIB +-data_DATA += usb.ids.gz +-endif +- + sbin_PROGRAMS = \ + lsusb + +-sbin_SCRIPTS = \ +- update-usbids.sh +- + bin_SCRIPTS = \ + usb-devices + +@@ -59,7 +47,7 @@ lsusb.8: $(srcdir)/lsusb.8.in + usb-devices.1: $(srcdir)/usb-devices.1.in + sed 's|VERSION|$(VERSION)|g' $< >$@ + +-pkgconfigdir = $(datarootdir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = usbutils.pc + + usbutils.pc: $(srcdir)/usbutils.pc.in Property changes on: head/sysutils/usbutils/files/patch-Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/usbutils/files/patch-configure.ac =================================================================== --- head/sysutils/usbutils/files/patch-configure.ac (nonexistent) +++ head/sysutils/usbutils/files/patch-configure.ac (revision 431991) @@ -0,0 +1,10 @@ +--- configure.ac.orig 2010-10-22 23:38:09 UTC ++++ configure.ac +@@ -35,7 +35,6 @@ AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_FILES([ + Makefile + ]) +-AC_CONFIG_SUBDIRS([usbhid-dump]) + + AC_OUTPUT + AC_MSG_RESULT([ Property changes on: head/sysutils/usbutils/files/patch-configure.ac ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/usbutils/pkg-descr =================================================================== --- head/sysutils/usbutils/pkg-descr (revision 431990) +++ head/sysutils/usbutils/pkg-descr (revision 431991) @@ -1,4 +1,4 @@ Usbutils contains the lsusb utility for displaying information about USB buses in the system and the devices connected to them. -WWW: http://sourceforge.net/projects/linux-usb/ +WWW: https://github.com/gregkh/usbutils Index: head/sysutils/usbutils/pkg-plist =================================================================== --- head/sysutils/usbutils/pkg-plist (revision 431990) +++ head/sysutils/usbutils/pkg-plist (revision 431991) @@ -1,8 +1,5 @@ bin/usb-devices libdata/pkgconfig/usbutils.pc -sbin/lsusb -sbin/update-usbids.sh man/man1/usb-devices.1.gz man/man8/lsusb.8.gz -%%DATADIR%%/usb.ids -%%DATADIR%%/usb.ids.gz +sbin/lsusb