From owner-freebsd-ports@FreeBSD.ORG Wed May 26 03:12:37 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 A6C7A16A4CE for ; Wed, 26 May 2004 03:12:37 -0700 (PDT) Received: from sulfateuse.babasse.net (sulfateuse.babasse.net [213.41.169.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64E7A43D45 for ; Wed, 26 May 2004 03:12:36 -0700 (PDT) (envelope-from plonk-o-matic@teaser.fr) Received: from blackbox.babasse.net (sulfateuse.babasse.net [192.168.254.129]) i4QACYR7050994 for ; Wed, 26 May 2004 12:12:34 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) Received: from blackbox.babasse.net (localhost [127.0.0.1]) by blackbox.babasse.net (8.12.11/8.12.11) with ESMTP id i4QACYNW050991 for ; Wed, 26 May 2004 12:12:34 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) Received: (from cyril@localhost) by blackbox.babasse.net (8.12.11/8.12.11/Submit) id i4QACYj5050990; Wed, 26 May 2004 12:12:34 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) X-Authentication-Warning: blackbox.babasse.net: cyril set sender to plonk-o-matic@teaser.fr using -f To: ports@freebsd.org From: Cyril Guibourg Organization: Home sweet home Date: Wed, 26 May 2004 12:12:34 +0200 Message-ID: <871xl7cx9p.fsf@blackbox.babasse.net> Lines: 14 User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.1 (Cuyahoga Valley, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 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 10:12:37 -0000 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 ? Thanks.