From owner-freebsd-ports Wed Sep 20 13:43:28 1995 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA26776 for ports-outgoing; Wed, 20 Sep 1995 13:43:28 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA26756 ; Wed, 20 Sep 1995 13:43:22 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.11/8.6.9) id NAA07047; Wed, 20 Sep 1995 13:43:13 -0700 From: Julian Elischer Message-Id: <199509202043.NAA07047@ref.tfs.com> Subject: Re: ports startup scripts To: asami@cs.berkeley.edu (Satoshi Asami) Date: Wed, 20 Sep 1995 13:43:13 -0700 (PDT) Cc: ports@freebsd.org, hackers@freebsd.org In-Reply-To: <199509201159.EAA04965@silvia.HIP.Berkeley.EDU> from "Satoshi Asami" at Sep 20, 95 04:59:24 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1205 Sender: owner-ports@freebsd.org Precedence: bulk > > (4) Same as (3), but use the current ${PREFIX} (usually /usr/local or > /usr/X11R6) > > - Same NFS problem > - PREFIX and X11BASE now defined in two locations (bsd.port.mk and > sysconfig) > > My opinion is that due to the first reasons on their respective lists, > options (2) and (3) are infeasible. I don't have any problem with > ports touching /etc (that directory is hardly sacred, and is one of > the things you need to backup during upgrades anyway) but since there > seems to be a large contingent of people who feel strongly against it, > I think it's wise to avoid option (1) too. > > That leaves option (4). We can deal with multiple startup dirs > easily, just a couple more lines of shell programming. And to > alleviate the second problem, I propose the following: > > @ Define LOCAL_PREFIX and X11BASE in /etc/sysconfig define RCLIST in /etc/sysconfig RCLIST= ${LOCAL_PREFIX}/etc/rc.d ${X11BASE}/etc/rc.d for PATH in $RCLIST do for FILE in $PATH/*.sh do if [ -x $FILE ] then sh -c $FILE start fi done done The problem with this is you cannot interleave operations.. ALL scripts in X11BASE are executed after ALL scripts in LOCAL_PREFIX