Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2004 13:10:39 +0200
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Cyril Guibourg <plonk-o-matic@teaser.fr>
Cc:        ports@freebsd.org
Subject:   Re: Best way for dealing with RC scripts
Message-ID:  <40B47B2F.7020909@fillmore-labs.com>
In-Reply-To: <871xl7cx9p.fsf@blackbox.babasse.net>
References:  <871xl7cx9p.fsf@blackbox.babasse.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Cyril Guibourg wrote:

> Hello,
> 
> I am in the final stage of creating a new port and I would like to get
> some advice about the best way to handle differences between 4.X and 5.X
> for the startup script.
> 
> The source of the port already comes from NetBSD pkgsrc with a RCNG style
> script. I plan tocreate a 4.X script and  add special targets in post-install
> in order to check ${OSVERSION} and then install the appropriate script.
> 
> Is this a good way to do it or is there something better to do ?

use USE_RC_SUBR=yes and $SED -s,%%RC_SUBR%%,${RC_SUBR},g for your script.



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