From owner-freebsd-ports@FreeBSD.ORG Thu May 11 03:41:28 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C65CD16A403 for ; Thu, 11 May 2006 03:41:28 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A3FB43D46 for ; Thu, 11 May 2006 03:41:28 +0000 (GMT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id k4B3fRG3014913 for ; Wed, 10 May 2006 20:41:27 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id k4B3fRkZ014912 for ports@freebsd.org; Wed, 10 May 2006 20:41:27 -0700 (PDT) (envelope-from david) Date: Wed, 10 May 2006 20:41:27 -0700 From: David Wolfskill To: ports@freebsd.org Message-ID: <20060511034127.GS545@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: Port maintainer query: what to use to specify serial port? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 03:41:28 -0000 I received a couple of good, similar-in-spirit suggestions from Serge Gagnon and Sam Lawrance: thank you! I simplified one suggestion a little bit to arrive at the following change to the port Makefile: [after ".include "] .if ${OSVERSION} < 600000 GPSMAN_DEFAULT_PORT?= /dev/cuaa0 .else GPSMAN_DEFAULT_PORT?= /dev/cuad0 .endif then add a new stanza: post-patch: ${REINPLACE_CMD} "s|/dev/ttyS0|${GPSMAN_DEFAULT_PORT}|" ${WRKSRC}/util/exerciser.tcl ${REINPLACE_CMD} "s|/dev/ttyS0|${GPSMAN_DEFAULT_PORT}|" ${WRKSRC}/manual/html/info/l_realtime.doc.txt ${REINPLACE_CMD} "s|/dev/ttyS0|${GPSMAN_DEFAULT_PORT}|" ${WRKSRC}/gpsman.tcl thus taking the place of one of the patches (and adding one -- in the documentation -- that I had overlooked). (The gpsman.tcl file has a couple of other changes it still needs.) It appears to work quite well; "make patch" does the expected, including the above replacements. Thanks again for the assistance! Peace, david (current hat: maintainer of port astro/gpsman) -- David H. Wolfskill david@catwhisker.org Spam received via "opt-out" lists is still spam, and should be treated as such. See http://www.catwhisker.org/~david/publickey.gpg for my public key.