From owner-freebsd-ports@FreeBSD.ORG Wed Feb 15 05:44:07 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 C63F816A420 for ; Wed, 15 Feb 2006 05:44:07 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from mail.stovebolt.com (mail.stovebolt.com [66.221.101.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DB6F43D45 for ; Wed, 15 Feb 2006 05:44:07 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.101] (adsl-65-67-103-212.dsl.rcsntx.swbell.net [65.67.103.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.stovebolt.com (Postfix) with ESMTP id 64C2A114308; Tue, 14 Feb 2006 23:45:52 -0600 (CST) Date: Tue, 14 Feb 2006 23:43:06 -0600 From: Paul Schmehl To: eol1@yahoo.com, ports@freebsd.org Message-ID: <0B7B9B99B91EC6F8DF11AE39@Paul-Schmehls-Computer.local> In-Reply-To: <20060215053236.52921.qmail@web51908.mail.yahoo.com> References: <20060215053236.52921.qmail@web51908.mail.yahoo.com> X-Mailer: Mulberry/4.0.0 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Oddity with SUB_FILES= and pkg-message.in X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 05:44:07 -0000 --On February 14, 2006 9:32:36 PM -0800 Peter Thoenen wrote: > Any reason SUB_FILES= pkg-message doesn't work? (where pkg-message.in > is in ${FILESDIR}) > > Kicks an error "unterminated newline". Thought it was just me but > noticed not a single port with pkg-message.in mods it via SUB_FILES= > ... they all do the following hack: > > post-patch: > @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ > ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} > > Seems a undeeded hack as SUB_FILES should handle. > All my ports use SUB_FILES and pkg-message.in in $FILESDIR, and they work fine. Look at security/sancp, security/barnyard or x11-toolkits/iwidgets, for example. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/