Subject: Re: Samba default directories
To: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 01/29/2003 18:59:39
On Wed, 29 Jan 2003, Ignatios Souvatzis wrote:

> On Wed, Jan 29, 2003 at 06:21:02PM +0100, Alex Sorg wrote:
>
> > how can I determine which directories are compiled by default into
> > smbd when build from pkgsrc? Especially log, config etc. Is there a
> > scheme that applies to all/most pkgsrc packages?
>
> man strings
> man more

That's one way to do it. ;-)

Inspection of the package Makefile's (in net/samba) suggests:

  # make show-var VARNAME=SAMBA_PRIVATE
  /etc/samba/private
  # make show-var VARNAME=SAMBA_LOCKDIR
  /var/db/samba
  # make show-var VARNAME=SAMBA_LOGDIR
  /var/log
  # make show-var VARNAME=SAMBA_ETCDIR
  /etc/samba

Note that those aren't the defaults; I have PKG_SYSCONFBASE=/etc in
my "/etc/mk.conf". The defaults for the first and last item would be
under ${PREFIX}/etc.

The scheme is now to put all such things in PKG_SYSCONFBASE and
VARDIR, both configurable.

Frederick