Date: Fri, 27 Nov 2009 00:28:03 +0300 (MSK) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mm@FreeBSD.org Subject: ports/140914: [PATCH] comms/smstools: use correct serial device on 8.x Message-ID: <20091126212803.B0AA1B84D@hades.panopticon> Resent-Message-ID: <200911262130.nAQLU6bS008455@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 140914 >Category: ports >Synopsis: [PATCH] comms/smstools: 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:06 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 (mm@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- smstools-3.1.5_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/comms/smstools3/Makefile,v retrieving revision 1.7 diff -u -u -r1.7 Makefile --- Makefile 15 Jun 2009 08:13:38 -0000 1.7 +++ Makefile 26 Nov 2009 21:07:35 -0000 @@ -7,6 +7,7 @@ PORTNAME= smstools PORTVERSION= 3.1.5 +PORTREVISION= 1 CATEGORIES= comms MASTER_SITES= http://smstools3.kekekasvi.com/packages/ DISTNAME= smstools3-${PORTVERSION} @@ -63,10 +64,16 @@ CFLAGS+= -DNOSTATS .endif +.if ${OSVERSION} < 800045 +SMSTOOLS_DEFAULT_PORT?= /dev/cuad0 +.else +SMSTOOLS_DEFAULT_PORT?= /dev/cuau0 +.endif + post-patch: @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile \ ${WRKSRC}/install.sh ${WRKSRC}/src/smsd_cfg.c - @${REINPLACE_CMD} 's|/dev/ttyS0|/dev/cuad0|g' \ + @${REINPLACE_CMD} 's|/dev/ttyS0|${SMSTOOLS_DEFAULT_PORT}|g' \ ${WRKSRC}/examples/smsd.conf.easy \ ${WRKSRC}/examples/smsd.conf.full \ ${WRKSRC}/examples/smsd.conf.non-root --- smstools-3.1.5_1.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?20091126212803.B0AA1B84D>