Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2003 17:11:59 -0600
From:      Tillman Hodgson <tillman@seekingfire.com>
To:        FreeBSD-Ports <freebsd-ports@freebsd.org>
Subject:   Re: What's the appropriate Makefile-fu to change someport.conf to someport.conf.sample?
Message-ID:  <20031222231159.GO42615@seekingfire.com>
In-Reply-To: <20031222153610.771B817743@sirius.firepipe.net>
References:  <20031222150423.GJ42615@seekingfire.com> <20031222153610.771B817743@sirius.firepipe.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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