Date: Sat, 10 May 2014 18:08:24 GMT From: Bob Frazier <bobf@mrp3.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/189621: add 'staging' support to comms/uarduno Message-ID: <201405101808.s4AI8Opu091242@cgiserv.freebsd.org> Resent-Message-ID: <201405101810.s4AIA0s2045427@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189621 >Category: ports >Synopsis: add 'staging' support to comms/uarduno >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 10 18:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Bob Frazier >Release: 8.4-STABLE >Organization: S.F.T. Inc. >Environment: FreeBSD hack.SFT.local 8.4-STABLE FreeBSD 8.4-STABLE #0: Mon Feb 17 21:46:59 PST 2014 bobf@hack.SFT.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: patch for comms/uarduno to support staging >How-To-Repeat: >Fix: apply supplied patch 'comms.uarduno.patch' from /usr/ports/comms/uarduno directory to add staging support. Patch attached with submission follows: --- Makefile 2013-09-20 09:03:29.000000000 -0700 +++ Makefile 2014-05-10 10:51:12.000000000 -0700 @@ -7,27 +7,26 @@ MASTER_SITES= http://mrp3.com/ MAINTAINER= bobf@mrp3.com COMMENT= FreeBSD Kernel Driver for the Arduino Uno USB interface -NO_PACKAGE= You must (re)build this port with your kernel source - SSP_UNSAFE= kernel module does not support ssp # need to enforce installation into kernel module directory MAKE_ENV+= KMODDIR=${KMODDIR} PREFIX= ${KMODDIR} +MAKEOBJDIRPREFIX= -NO_STAGE= yes +USES= kmod .include <bsd.port.pre.mk> SRCPREFIX?= ${SRC_BASE} # disable mtree or you'll get a /boot/kernel/... directory hierarchy put there NO_MTREE= yes -# some test targets need a predictable source directory +## some test targets need a predictable source directory WRKSRC= ${WRKDIR}/uarduno PLIST_FILES= uarduno.ko \ "@unexec kldxref ${KMODDIR}" @@ -61,13 +60,11 @@ # post-install target, make sure kernel module is unloaded post-install: @if kldstat -q -m uhub/uarduno ; then \ echo "" ; echo " +++ Unloading uarduno.ko (related devices will need to be re-attached)" ; kldunload uarduno ; fi - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} - @${ECHO_MSG} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/uarduno.ko # # these next 2 targets are for developer use # # building a source tarball and related files --- files/ids.txt 2014-01-23 11:55:14.000000000 -0800 +++ files/ids.txt 2014-05-10 10:57:43.000000000 -0700 @@ -14,19 +14,27 @@ // { 0xaaaa, 0xbbbb }, // // Where '0xaaaa' is the vendor ID, and '0xbbbb' is the product ID that you // want the driver to recognize as an Arduino UNO. It must end with a ',' // -// The default value of { 0x2341, 0x0001 } is already included as a reference. -// NOTE: do not remove or modify this entry unless you really really mean it. +// The default values for Arduino UNO and MEGA are included as a reference. +// These are provided 'as-is' though testing suggests they are correct. // -// If you change this file, you will need to update it each +// When new Arduino products are released, you can add the new information to +// this file. Please let me know so I can update it, too (thanks). Send +// new submissions to 'bobf@mrp3.com', with an appropriate subject line and +// description of the entry. Please test it first, thanks. +// +// If you change this file yourself, you will need to update it each // time you obtain a fresh copy of the ports tree. // // { 0x2341, 0x0001 }, // Arduino UNO, vendor 2341H, product 0001H + { 0x2341, 0x0042 }, // Arduino MEGA (rev 3), vendor 2341H, product 0042H + { 0x2341, 0x0043 }, // Arduino UNO (rev 3), vendor 2341H, product 0043H + { 0x2341, 0x0010 }, // Arduino MEGA 2560 R3, vendor 2341H, product 0010H // place your entries below this line >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405101808.s4AI8Opu091242>