Subject: Re: /usr/pkg/etc/rc.d/*
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: current-users
Date: 03/14/2003 14:54:44
--qRv+gaP9NHkyxxv6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 14, 2003 at 01:57:30PM -0500, Greg A. Woods wrote:
> [ On Thursday, March 13, 2003 at 23:23:57 (-0500), Michael G. Schabert wr=
ote: ]
> > Oh, really??
> >=20
> > alpha# more MESSAGE
> Yes, REALLY!  :-)
>=20
> The "MESSAGE" file is not the only instructional text displayed when
> such a package is installed.

You're ignoring the real question there, Greg.

You said, "the install process tells you to copy things from
/usr/pkg/etc/rc.d".

Michael gave an example (pkgsrc/net/netatalk) that doesn't seem to.

It only takes him one example to prove you wrong.

When during a netatalk install are we told how to configure its rc
files?

I just cvs updated pkgsrc/net/netatalk and pkgsrc/mk and did a make
install. Here's all of what I got:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The following files should be created for netatalk-1.6.1:

        /etc/rc.d/atalkd (m=3D0755)
        /etc/rc.d/afpd (m=3D0755)
        /etc/rc.d/papd (m=3D0755)
        /etc/rc.d/timelord (m=3D0755)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Installing configuration files:
  /usr/pkg/etc/netatalk/AppleVolumes.default already exists
  /usr/pkg/etc/netatalk/AppleVolumes.system already exists
  /usr/pkg/etc/netatalk/afpd.conf already exists
  /usr/pkg/etc/netatalk/atalkd.conf already exists
  /usr/pkg/etc/netatalk/netatalk.conf already exists
  /usr/pkg/etc/netatalk/papd.conf already exists
done.
=3D=3D=3D> Please note the following:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$NetBSD: MESSAGE,v 1.3 2002/08/29 11:16:14 abs Exp $

To have Netatalk start automatically at boot, you will need to set the
following variables in /etc/rc.conf (replacing "YES" with "NO" for those
services you wish to not run):
                atalkd=3DYES
                afpd=3DYES
                papd=3DYES
                timelord=3DYES

Example Netatalk config files have been installed in the examples directory
at /usr/pkg/share/examples/netatalk. Production config files are
installed in /usr/pkg/etc. If no config files existed before this
package was installed, default config files were copied in.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D> Registering installation for netatalk-1.6.1

So we know that those files "should be created". What should be in
them? No clue. Where can we find examples? We're not told. But they
are installed:

humbug:net/netatalk# ls -l {,/usr/pkg}/etc/rc.d/{atalkd,afpd,papd,timelord}
ls: /etc/rc.d/afpd: No such file or directory
ls: /etc/rc.d/atalkd: No such file or directory
ls: /etc/rc.d/papd: No such file or directory
ls: /etc/rc.d/timelord: No such file or directory
-r-xr-xr-x  1 root  wheel  486 Mar 14 14:48 /usr/pkg/etc/rc.d/afpd*
-r-xr-xr-x  1 root  wheel  813 Mar 14 14:48 /usr/pkg/etc/rc.d/atalkd*
-r-xr-xr-x  1 root  wheel  412 Mar 14 14:48 /usr/pkg/etc/rc.d/papd*
-r-xr-xr-x  1 root  wheel  375 Mar 14 14:48 /usr/pkg/etc/rc.d/timelord*

Bug in the package? Perhaps, but that's not the point.

The point is that the easy use of pkgsrc for many packages providing
daemons presumes that /usr/pkg/etc/rc.d will be trawled, so we
really ought to make using it a bit less unobvious.

--=20
gabriel rosenkoetter
gr@eclipsed.net

--qRv+gaP9NHkyxxv6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+cjOD9ehacAz5CRoRAuLPAJwLFR8fK/YLV96J5gFUh2huJ3wxqQCfcC/F
RK/lu4FmH5rF+quZFz8mtnw=
=ywX0
-----END PGP SIGNATURE-----

--qRv+gaP9NHkyxxv6--