Date: Thu, 28 Sep 1995 07:54:21 -0500 (CDT) From: peter@taronga.com (Peter da Silva) To: hackers@freebsd.org Subject: Re: ports startup scripts Message-ID: <199509281254.HAA06625@bonkers.taronga.com> In-Reply-To: <199509271912.PAA21585@healer.com> from "Coranth Gryphon" at Sep 27, 95 03:12:25 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> 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".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509281254.HAA06625>