From owner-freebsd-ports@FreeBSD.ORG Mon Dec 22 15:12:02 2003 Return-Path: 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 3036E16A4CE for ; Mon, 22 Dec 2003 15:12:02 -0800 (PST) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D8F543D3F for ; Mon, 22 Dec 2003 15:12:00 -0800 (PST) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id E5D0A16E; Mon, 22 Dec 2003 17:11:59 -0600 (CST) Date: Mon, 22 Dec 2003 17:11:59 -0600 From: Tillman Hodgson To: FreeBSD-Ports Message-ID: <20031222231159.GO42615@seekingfire.com> References: <20031222150423.GJ42615@seekingfire.com> <20031222153610.771B817743@sirius.firepipe.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031222153610.771B817743@sirius.firepipe.net> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers User-Agent: Mutt/1.5.5.1i Subject: Re: What's the appropriate Makefile-fu to change someport.conf to someport.conf.sample? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2003 23:12:02 -0000 On Mon, Dec 22, 2003 at 09:36:10AM -0600, Pete Fritchman wrote: > * Mon, 22 Dec 2003 09:04:23 CST - Tillman Hodgson: > | pre-install: > | cp ${WRKSRC}/latd.conf ${WRKSRC}/latd.conf.sample > > That will make a file named .sample, but not actually install it. If > you're using the upstream Makefile for installing (as opposed to a > do-install target), you'll probably need to patch that to know about > installing latd.conf.sample (and not installing latd.conf over top of > an existing latd.conf!). Is the following acceptable practice? pre-configure: @${CP} ${WRKSRC}/latd.conf ${WRKSRC}/latd.conf.sample @${SED} -i .dist -e 's/sysconf_DATA = latd.conf/sysconf_DATA = latd.conf.sample/' ${WRKSRC}/Makefile.in `portlint` thinks that it looks fine, for what that's worth :-) -T -- Infinity attracts us like a floodlight in the night, blinding us to the excesses it can inflict upon the finite. - Meditations from Bifrost Eyrie, Buddislamic Text