freebsd-ports/net/samba35/files
Doug Barton b3ab9ed23a The samba rc.d script uses some clever tricks to start (up to) 3 different
services using the same script. As a result it resets rcvar several times
in order to process the options for each service.

The changes I made on 2012/01/14 to facilitate the removal of set_rc_var()
from HEAD were effective in the case where the WINBIND option was off (the
case that I tested) because that causes the related portions of the rc.d
script to be removed completely on install. However, if installed from a
package, or installed using the the default OPTIONS, WINBIND is on, which
caused the last known rcvar to be winbind_enable.

Since the common case seems to be for users to use samba_enable (which
only enables smb_and nmb_ by default) the fact that rcvar=winbind_enable,
but that knob is off, caused the startup script to trip on a totally
unrelated portion of rc.subr.

So the fix is to move processing of the winbind_ stuff first, which leaves
the last known rcvar as smb_enable. Since running nmb without smb is a
very unlikely scenario, this should be safe for the common case, as well
as safe if the user enables winbind_.

Apologies all around for not catching this sooner, and thanks to the users
who reported the problem and stuck with me while I debugged it.

Bump PORTREVISION since this fix is needed for the common case, as
configured for the package.
2012-04-13 09:16:00 +00:00
..
patch-lib__replace__libreplace_macros.m4
patch-lib__replace__system__config.m4
patch-lib__replace__system__filesys.h
patch-lib__replace__system__wait.h
patch-lib__tevent__tevent_signal.c
patch-nsswitch__pam_winbind.c
patch-nsswitch__wins_freebsd.c
patch-source3__configure.in
patch-source3__include__includes.h
patch-source3__lib__fault.c
patch-source3__m4__aclocal.m4
patch-source3__Makefile.in
patch-source3__modules__vfs_zfsacl.c
patch-source3__smbd__negprot.c
patch-source3__smbd__quotas.c
patch-source3__smbd__server.c
patch-source3__smbd__statvfs.c
patch-source3__utils__net_time.c
pkg-deinstall.in
pkg-install.in
pkg-message.in
README.FreeBSD
samba.in
sernet.patch
smb.conf.sample.in

If you want to run this port:

1. Copy /usr/local/etc/smb.conf.default to /usr/local/etc/smb.conf and edit
   it.
2. Put string 'samba_enable="YES"' into your /etc/rc.conf.
3. Run '/usr/local/etc/rc.d/samba start' or reboot.

This port doesn't create 'smbpasswd' file automatically anymore. Users
are encouraged to use 'tdbsam' backend instead:

  [global]
    passdb backend = tdbsam, smbpasswd

You can use pdbedit to migrate accounts from 'smbpasswd' to 'tdbsam',
see the Samba3-HOWTO-Collection.

You still can create 'smbpasswd' file with the supplied 'make_smbpasswd'
script:

  cat /etc/passwd | grep -v "^#" | make_smbpasswd > smbpasswd
  chmod 600 smbpasswd

But the usage of it is deprecated.

See document files in /usr/local/share/doc/samba and example config files in
/usr/local/share/examples/samba for details.

This port doesn't come anymore with the IDEALX Samba LDAP management tools.
They are a separate port now, net/smbldap-tools. Please, install it, if you
are going to use Samba LDAP back end.

FreeBSD Samba3 port maintainer: Timur I. Bakeyev <timur@FreeBSD.org>