Subject: Re: Allowing ${name}_path to be set in "rc.conf", was Re: Keeping
To: Andrew Brown <atatat@atatdot.net>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-userlevel
Date: 01/04/2002 20:03:19
On Fri, 4 Jan 2002, Andrew Brown wrote:

> >For "pkgsrc" purposes (and possibly for most purposes), permitting
> >${name}_path to be set in "/etc/rc.conf" would be enough. "sshd", for
> >example, could be changed to conform to the NetBSD naming scheme, or
> >else the rc.d script could conditionalize on detecting one version or
> >another, or else it could conditionalize on a flag, and then we could
> >leave "/etc/rc.conf.d" to the user.
>
> well...almost.  the pkgsrc sshd doesn't use or need the same files in
> /etc that the openssh stuff needs,

That can be fixed...

> so there's more than just the
> command you'd need to tweak in order to get them to change places
> easily.  hence my other settings in /etc/rc.conf.d/sshd.

...or else I'm sure the two can be distinguished in the script. I
don't have a copy of the other "sshd" handy -- does `sshd -v
2>/dev/null/' return anything useful? The point is, we have control of
the binary and the script, so the user shouldn't have to get creative
just to enable a package.

Frederick