Date: Mon, 27 Feb 2017 12:52:18 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434933 - in head/misc/usbrh-libusb: . files Message-ID: <201702271252.v1RCqIJY073304@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Mon Feb 27 12:52:17 2017 New Revision: 434933 URL: https://svnweb.freebsd.org/changeset/ports/434933 Log: - Add LICENSE - Regenerate patches - Fix installation Modified: head/misc/usbrh-libusb/Makefile head/misc/usbrh-libusb/files/patch-Makefile head/misc/usbrh-libusb/files/patch-usbrh_main.c Modified: head/misc/usbrh-libusb/Makefile ============================================================================== --- head/misc/usbrh-libusb/Makefile Mon Feb 27 12:51:52 2017 (r434932) +++ head/misc/usbrh-libusb/Makefile Mon Feb 27 12:52:17 2017 (r434933) @@ -3,6 +3,7 @@ PORTNAME= usbrh-libusb PORTVERSION= 0.05 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://www.dd.iij4u.or.jp/~briareos/soft/ \ LOCAL/sanpei @@ -11,9 +12,11 @@ DISTNAME= usbrh-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Yet another reads temperatures and humidity from a Strawberry Linux USB-RH +LICENSE= GPLv2 + PLIST_FILES= bin/usbrh do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/usbrh ${STAGEDIR}${PREFIX}/bin/usbrh + ${INSTALL_PROGRAM} ${WRKSRC}/usbrh ${STAGEDIR}${PREFIX}/bin/usbrh .include <bsd.port.mk> Modified: head/misc/usbrh-libusb/files/patch-Makefile ============================================================================== --- head/misc/usbrh-libusb/files/patch-Makefile Mon Feb 27 12:51:52 2017 (r434932) +++ head/misc/usbrh-libusb/files/patch-Makefile Mon Feb 27 12:52:17 2017 (r434933) @@ -1,5 +1,5 @@ ---- ./Makefile.orig 2008-03-24 23:22:09.000000000 +0900 -+++ ./Makefile 2009-07-20 23:23:39.000000000 +0900 +--- Makefile.orig 2008-03-24 14:22:09 UTC ++++ Makefile @@ -2,8 +2,9 @@ SRC = usbrh_main.c EXE = usbrh @@ -7,7 +7,7 @@ +all: $(EXE) $(EXE): $(SRC) - gcc -lusb -g -o $@ $^ -+ cc -lusb -g -o $@ $(SRC) ++ ${CC} ${CFLAGS} ${LDFLAGS} -lusb -o $@ $(SRC) clean: rm $(EXE) Modified: head/misc/usbrh-libusb/files/patch-usbrh_main.c ============================================================================== --- head/misc/usbrh-libusb/files/patch-usbrh_main.c Mon Feb 27 12:51:52 2017 (r434932) +++ head/misc/usbrh-libusb/files/patch-usbrh_main.c Mon Feb 27 12:52:17 2017 (r434933) @@ -1,6 +1,6 @@ ---- ./usbrh_main.c.orig 2008-03-24 23:23:26.000000000 +0900 -+++ ./usbrh_main.c 2009-07-20 23:22:59.000000000 +0900 -@@ -198,7 +198,7 @@ +--- usbrh_main.c.orig 2008-03-24 14:23:26 UTC ++++ usbrh_main.c +@@ -198,7 +198,7 @@ int DeviceNum; break; default: usage(); @@ -9,7 +9,7 @@ break; } } -@@ -209,7 +209,7 @@ +@@ -209,7 +209,7 @@ int DeviceNum; if(flag_l){ listdevice(USBRH_VENDOR, USBRH_PRODUCT); @@ -18,7 +18,7 @@ } if(flag_d) -@@ -217,7 +217,7 @@ +@@ -217,7 +217,7 @@ int DeviceNum; if((dev = searchdevice(USBRH_VENDOR, USBRH_PRODUCT, DeviceNum)) == (struct usb_device *)NULL){ puts("USBRH not found"); @@ -27,7 +27,7 @@ } if(flag_d){ -@@ -226,26 +226,30 @@ +@@ -226,26 +226,30 @@ int DeviceNum; dh = usb_open(dev); if(dh == NULL){ puts("usb_open error"); @@ -61,7 +61,7 @@ } } } -@@ -311,7 +315,7 @@ +@@ -311,7 +315,7 @@ int DeviceNum; if((rc = usb_release_interface(dh, dev->config->interface->altsetting->bInterfaceNumber))<0){ puts("usb_release_interface error"); usb_close(dh);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702271252.v1RCqIJY073304>