From owner-freebsd-ports@FreeBSD.ORG Wed May 26 04:11:15 2004 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 287D616A4CE for ; Wed, 26 May 2004 04:11:15 -0700 (PDT) Received: from fillmore.dyndns.org (port-212-202-49-130.reverse.qsc.de [212.202.49.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B863643D1F for ; Wed, 26 May 2004 04:11:14 -0700 (PDT) (envelope-from eikemeier@fillmore-labs.com) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.34; FreeBSD) id 1BSwIx-0000Bo-Uh; Wed, 26 May 2004 13:11:03 +0200 Message-ID: <40B47B2F.7020909@fillmore-labs.com> Date: Wed, 26 May 2004 13:10:39 +0200 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Cyril Guibourg References: <871xl7cx9p.fsf@blackbox.babasse.net> In-Reply-To: <871xl7cx9p.fsf@blackbox.babasse.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@freebsd.org Subject: Re: Best way for dealing with RC scripts 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: Wed, 26 May 2004 11:11:15 -0000 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.