Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2007 17:14:04 +0200 (CEST)
From:      Anton Berezin <tobez@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/113914: [PATCH] Teach comms/garmin-utils about cuadX
Message-ID:  <20070621151404.1CE0F12543A@heechee.tobez.org>
Resent-Message-ID: <200706211520.l5LFK2hn009981@freefall.freebsd.org>

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

>Number:         113914
>Category:       ports
>Synopsis:       [PATCH] Teach comms/garmin-utils about cuadX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 21 15:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Anton Berezin
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
	
>Description:
In FreeBSD 6.X, /dev/cuaaX became /dev/cuadX.
The port still compiles /dev/cuaa0 as the default device.

It would be advantageous to teach it the difference.
>How-To-Repeat:
	
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/comms/garmin-utils/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	17 May 2005 14:50:11 -0000	1.4
+++ Makefile	21 Jun 2007 15:08:16 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	garmin-utils
 PORTVERSION=	2.2
+PORTREVISION=	1
 CATEGORIES=	comms
 MASTER_SITES=	ftp://ftp.snafu.org/pub/
 
@@ -15,9 +16,16 @@
 
 MAN1=		gardump.1 garload.1
 MANCOMPRESSED=	yes
-MAKE_ARGS+=	MANDIR=${MANPREFIX}/man/man \
-		GPS_SERIAL_PORT=/dev/cuaa0
+MAKE_ARGS+=	MANDIR=${MANPREFIX}/man/man
 
 PLIST_FILES=	bin/gardump bin/garload
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600006
+MAKE_ARGS+=	GPS_SERIAL_PORT=/dev/cuaa0
+.else
+MAKE_ARGS+=	GPS_SERIAL_PORT=/dev/cuad0
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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