sysconfdir vs libdir for smb.conf

Bradley W. Langhorst brad at
Fri Apr 26 12:15:02 GMT 2002

right now the Makefile says

libdir is set by
the ./configure script 
and is suggested to be 
/usr/lib or /usr/local/lib

I want my smb.conf in /etc/samba (or at least /etc) not /usr or

there is a configure parameter "sysconfdir" that replaces
@sysconfdir@ in the makefile  but @sysconfdir@ does not exist in the
make file so it's a useless parameter.

I think maybe configure should be run with
--sysconfdir=/etc or  --sysconfdir=/etc/samba

which should set up the make file to put smb.conf and friends there
here is a patch to do that

diff -r1.471
> CONFDIR = @sysconfdir@
< CONFIGFILE = $(LIBDIR)/smb.conf
< DRIVERFILE = $(LIBDIR)/printers.def
> CONFIGFILE = $(CONFDIR)/smb.conf
> DRIVERFILE = $(CONFDIR)/printers.def

More information about the samba-technical mailing list