From owner-freebsd-hackers Thu Sep 28 06:20:11 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA13699 for hackers-outgoing; Thu, 28 Sep 1995 06:20:11 -0700 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id GAA13694 for ; Thu, 28 Sep 1995 06:20:06 -0700 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA15789 (5.67a/IDA-1.5 for hackers@freebsd.org); Thu, 28 Sep 1995 08:02:31 -0500 Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.9) id HAA06625; Thu, 28 Sep 1995 07:54:22 -0500 From: peter@taronga.com (Peter da Silva) Message-Id: <199509281254.HAA06625@bonkers.taronga.com> Subject: Re: ports startup scripts Date: Thu, 28 Sep 1995 07:54:21 -0500 (CDT) To: hackers@freebsd.org In-Reply-To: <199509271912.PAA21585@healer.com> from "Coranth Gryphon" at Sep 27, 95 03:12:25 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1024 Sender: owner-hackers@freebsd.org Precedence: bulk > The comment "well, how do you configure what it is dependent on" > is answered "the same way you'd figure out what number to assign it". It's easier to figure that out with the coarse granularity of a numbering scheme than the fine granularity of a dependency scheme. Really. One possibility is to abstract the dependencies in the makefile, so that you have your package set up like so (I say, use command syntax to make parsing easier, and discourage the baroque. If you have multiple entries, create config-this and config-that files, or just put them in separate directories): /etc/packages/oracle config depends-on smtp-server nfs-client satisfies sql-server name oracle script orasrv -d /oracle Then in the makefile, you generate an entry: sql-server: oracle [anything else that has satisfies sql-server] oracle: smtp-server nfs-client orasrv -d /oracle This also allows the config tool to do a static dependency analysis and tell you "snmp-manager requires snmp-service, aborting".