Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2008 18:37:24 GMT
From:      Ganael Laplanche <ganael.laplanche@martymac.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/128422: Port update: comms/hso-kmod - Update to v20081023
Message-ID:  <200810271837.m9RIbO9L085500@www.freebsd.org>
Resent-Message-ID: <200810271840.m9RIe40l082069@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         128422
>Category:       ports
>Synopsis:       Port update: comms/hso-kmod - Update to v20081023
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 27 18:40:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #25: Tue Oct 21 13:40:19 CEST 2008     martymac@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
This patch updates hso-kmod to the latest version (20081023) :

- now builds against the new MPSAFE TTY layer
  (and still builds against the old one)
- new product IDs added (0x7011 and 0x7501)
- hsoctl now forks into background after a successful connection
  (use -d to disconnect, -n to get the old behavior)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -aurN hso-kmod.orig/Makefile hso-kmod/Makefile
--- hso-kmod.orig/Makefile	2008-10-23 15:50:47.952386963 +0200
+++ hso-kmod/Makefile	2008-10-23 15:32:38.298033407 +0200
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	hso
-PORTVERSION=	20080514
-PORTREVISION=	1
+PORTVERSION=	20081023
 CATEGORIES=	comms kld
 MASTER_SITES=	http://www.shapeshifter.se/pub/hso/
 PKGNAMESUFFIX=	-kmod
@@ -31,12 +30,8 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 800045
-BROKEN=	Does not compile with the new MPSAFE TTY layer
-.endif
-
 .if !defined(WITHOUT_HSOCTL)
-HSOCTL_VERSION=	20080812
+HSOCTL_VERSION=	20081023
 DISTFILES+=	hsoctl-${HSOCTL_VERSION}${EXTRACT_SUFX}
 WRKSRC_HSOCTL=	${WRKDIR}/hsoctl-${HSOCTL_VERSION}
 PLIST_SUB+=	PL_HSOCTL=""
diff -aurN hso-kmod.orig/distinfo hso-kmod/distinfo
--- hso-kmod.orig/distinfo	2008-10-23 15:50:47.952386963 +0200
+++ hso-kmod/distinfo	2008-10-23 15:32:41.114276533 +0200
@@ -1,6 +1,6 @@
-MD5 (hso-20080514.tar.gz) = 72162021aa4d05304537bf83389f77a6
-SHA256 (hso-20080514.tar.gz) = 9c72974973e8f11cdcd42c251adab0780180a9dc5f098ee8968520db02564f9f
-SIZE (hso-20080514.tar.gz) = 10345
-MD5 (hsoctl-20080812.tar.gz) = 680675da75c75b58790fe226b87e122b
-SHA256 (hsoctl-20080812.tar.gz) = 925cc427f1895c13ff986821babc30ff40d1318040cd63efadb4ca7acb9d6d2c
-SIZE (hsoctl-20080812.tar.gz) = 6779
+MD5 (hso-20081023.tar.gz) = c431eba366d7fb36dbd30e2e8f992457
+SHA256 (hso-20081023.tar.gz) = 8ab6cf4bc0208dbe76cdf41422b573afb811e6075c99e97f38f5377f47bc648c
+SIZE (hso-20081023.tar.gz) = 12326
+MD5 (hsoctl-20081023.tar.gz) = f19ebf0022758326837ce4db0684be6d
+SHA256 (hsoctl-20081023.tar.gz) = fe20461852c72ed554c5f1cf7dd98f9dd2a5217fc4b4a2ca3e1e7ade301ba8fe
+SIZE (hsoctl-20081023.tar.gz) = 8360
diff -aurN hso-kmod.orig/files/HSOCTL-DEBUG-patch-Makefile hso-kmod/files/HSOCTL-DEBUG-patch-Makefile
--- hso-kmod.orig/files/HSOCTL-DEBUG-patch-Makefile	2008-10-23 15:29:48.353056880 +0200
+++ hso-kmod/files/HSOCTL-DEBUG-patch-Makefile	2008-10-23 15:46:17.382120630 +0200
@@ -1,9 +1,10 @@
---- Makefile.orig	2008-05-14 14:18:53.751411172 +0200
-+++ Makefile	2008-05-14 14:19:01.497294028 +0200
-@@ -1,5 +1,5 @@
+--- Makefile.orig	2008-10-23 15:45:28.158855941 +0200
++++ Makefile	2008-10-23 15:45:53.171672654 +0200
+@@ -1,6 +1,6 @@
  SRCS=	hsoctl.c
  PROG=	hsoctl
 -CFLAGS+=	-g
 +#CFLAGS+=	-g
+ LDFLAGS+=	-lutil
+ DESTDIR?= /usr/local
  
- .include <bsd.prog.mk>
diff -aurN hso-kmod.orig/files/option-icon.conf.sample hso-kmod/files/option-icon.conf.sample
--- hso-kmod.orig/files/option-icon.conf.sample	2008-10-23 15:29:48.354064271 +0200
+++ hso-kmod/files/option-icon.conf.sample	2008-10-23 15:34:38.000000000 +0200
@@ -1,7 +1,7 @@
 attach 100 {
 match "device-name" "umass[0-9]+";
 match "vendor"  "0x0af0";
-match "product" "0x6911|0x6971|0x7251|0x7401";
+match "product" "0x6911|0x6971|0x7251|0x7401|0x7011|0x7501";
 match "devclass" "0x00";
 action "sleep 1; /sbin/camcontrol cmd `/sbin/camcontrol devlist | /usr/bin/grep ZCOPTION | /usr/bin/awk '{match($11, /pass[0-9]+/); print substr($11, RSTART, RLENGTH) }'` -c '01 00 00 00 00 00' -i 1 i1 > /dev/null";
 };
diff -aurN hso-kmod.orig/files/patch-if_hso.c hso-kmod/files/patch-if_hso.c
--- hso-kmod.orig/files/patch-if_hso.c	2008-10-23 15:29:48.353056880 +0200
+++ hso-kmod/files/patch-if_hso.c	1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
---- if_hso.c.orig	2008-05-18 15:16:15.402471749 +0200
-+++ if_hso.c	2008-05-18 15:16:54.689656014 +0200
-@@ -831,7 +831,7 @@
- 
- 	ht = tp->t_sc;
- 	if (cnt > ht->ht_obufsz) {
--		DPRINTF(1, "too many bytes %d, reducing to %d\n",
-+		DPRINTF(1, "too many bytes %d, reducing to %zd\n",
- 		    cnt, ht->ht_obufsz);
- 		cnt = ht->ht_obufsz;
- 	}
-@@ -1005,7 +1005,7 @@
- 	len = m->m_pkthdr.len - ETHER_HDR_LEN;
- 	m_copydata(m, ETHER_HDR_LEN, len, ib->ib_buf);
- 
--	DPRINTF(5, "hso_if_start: mlen=%d, len=%d\n",
-+	DPRINTF(5, "hso_if_start: mlen=%d, len=%zd\n",
- 	    m->m_pkthdr.len, len);
- 
- 	m_freem(m);


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810271837.m9RIbO9L085500>