Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2009 01:09:12 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Felipe Carlo <felipe.cts1@gmail.com>
Cc:        ports@freebsd.org
Subject:   Re: Samba3 + Jails in FreeBSD
Message-ID:  <790a9fff0903202309t7aa42af5l38784227bb0ead0e@mail.gmail.com>
In-Reply-To: <53bb3b9d0903202122j7da4d05aw13979eab85e3ff09@mail.gmail.com>
References:  <53bb3b9d0903181234h267ccb3ay21e50f7dc3a1fb0e@mail.gmail.com> <790a9fff0903181931g3e777b56r251307c6641ef7c7@mail.gmail.com> <53bb3b9d0903201223m75493a03p55307cd61b858b2b@mail.gmail.com> <790a9fff0903201713x7137359cl49ac3c598fd3ebee@mail.gmail.com> <53bb3b9d0903202122j7da4d05aw13979eab85e3ff09@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 20, 2009 at 11:22 PM, Felipe Carlo <felipe.cts1@gmail.com> wrot=
e:
> Hello,
>
> With this I have:
>
> # make -V SUB_LIST
> CUPS=3D"@comment " WINBIND=3D"" SAMBA_LOGDIR=3D"/var/log/samba"
> SAMBA_LOCKDIR=3D"/var/db/samba"=A0 SAMBA_CONFDIR=3D"/usr/local/etc"
> SAMBA_CONFIG=3D"smb.conf"=A0 SAMBA_RUNDIR=3D"/var/run"
> SAMBA_SWATDIR=3D"/usr/local/share/swat"=A0 SAMBA_SPOOL=3D"/var/spool/samb=
a"
> SAMBA_PRIVATEDIR=3D"/usr/local/etc/samba" PREFIX=3D/usr/local
> LOCALBASE=3D/usr/local X11BASE=3D/usr/local=A0 DATADIR=3D/usr/local/share=
/samba
> DOCSDIR=3D/usr/local/share/doc/samba
> EXAMPLESDIR=3D/usr/local/share/examples/samba=A0 WWWDIR=3D/usr/local/www/=
samba
> ETCDIR=3D/usr/local/etc/samba RC_SUBR=3D/etc/rc.subr
>
That looks normal.

Try:

cd /usr/ports/net/samba3
make clean
make patch
make apply-slist

This will create the rc.d/samba file as work/samba.  If you look at
this file it should have %%RC_SUBR%%, and %%WINDBIND%% replaced with
the above values.

This is the file that should have been installed during 'make
install', by the install-rc-script target in bsd.port.mk.

Try:

make install-rc-script

you should see:

=3D=3D=3D> Installing rc.d startup script(s)

And the work/samba file should be installed to
${PREFIX}/etc/rc.d/samba.  If you don't see the above message, check
your /etc/make.conf and the ports config options in your ports
management tool (portmaster, portupgrade, ports_conf, ...) for
USE_RC_SUBR=3Dyes, as this will cause the install-rc-script target to
not install the rc.d startup script.

NOTE FreeBSD < 7.0 adds a suffix to the filename (i.e. samba.sh).

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0903202309t7aa42af5l38784227bb0ead0e>