Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2009 00:28:02 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        anders@FreeBSD.org
Subject:   ports/140913: [PATCH] comms/minicom: use correct serial device on 8.x
Message-ID:  <20091126212802.7DE92B84B@hades.panopticon>
Resent-Message-ID: <200911262130.nAQLU5wZ008424@freefall.freebsd.org>

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

>Number:         140913
>Category:       ports
>Synopsis:       [PATCH] comms/minicom: use correct serial device on 8.x
>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 Nov 26 21:30:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009
>Description:
In FreeBSD 8.x, serial device names were changed from {tty,cua}d[0-9]+ to {tty,cua}u[0-9]+, so add conditional to support this.

Port maintainer (anders@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- minicom-2.3_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/comms/minicom/Makefile,v
retrieving revision 1.50
diff -u -u -r1.50 Makefile
--- Makefile	5 Jan 2009 17:27:26 -0000	1.50
+++ Makefile	26 Nov 2009 21:08:00 -0000
@@ -8,7 +8,7 @@
 
 PORTNAME=	minicom
 PORTVERSION=	2.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	comms
 MASTER_SITES=	http://alioth.debian.org/frs/download.php/2332/ \
 		ftp://ftp.nuug.no/pub/anders/distfiles/ \
@@ -35,11 +35,18 @@
 			--sysconfdir=${PREFIX}/etc/minicom \
 			--enable-lock-dir=/var/spool/lock
 
-MINICOM_DEFAULT_PORT?=	/dev/cuad0
 CONFIGURE_ARGS+=	--enable-dfl-port=${MINICOM_DEFAULT_PORT}
 
 MAN1=		minicom.1 runscript.1 ascii-xfr.1 xminicom.1
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800045
+MINICOM_DEFAULT_PORT?=	/dev/cuad0
+.else
+MINICOM_DEFAULT_PORT?=	/dev/cuau0
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e "s@/usr/local/bin/@${LOCALBASE}/bin/@; \
 		s@/sz@/lsz@;s@/sb@/lsb@;s@/sx@/lsx@;s@/rz@/lrz@; \
@@ -65,4 +72,4 @@
 		${DOCSDIR})
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- minicom-2.3_2.patch ends here ---

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



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