Samba4 FreeBSD ports build (4.0.3)
Samba4 has a lot of dependencies. The majority of the dependencies have been updated in the ports tree to provide the foundation to build the S4 port (please make sure to update your ports tree).
I have included the build options for zfsacl's and shadow_copy. It should be noted that shadow_copy does not appear to be fully functionally as of writing.
clean/pristine ports tree
enable EXP_MODULES (zfsacls, shadow_copy2)
Disabled avahi mostly b/c it comes with a bunch of extra packages (~150MB worth)
Otherwise vanilla samba4 build
The first dependency built is perl
We are using perl 5.16.2
No special options here
Trying to keep it vanilla
Next up talloc 2.0.8
KEEP THE PYTHON BINDINGS!!!
Ahh, next up python try to keep it vanilla:
DISABLED the EXAMPLES option
ENABLED the FPECTL option (floating point exception handling)
DISABLED the NLS option – milage my very again here I chose not to include do to extra libs
This can take a while,
Wait... now over to tevent 0.9.1 KEEP PYTHON BINDINGS!!!
next up tdb 1.2.11
KEEP PYTHON BINDINGS
The next dependency is: libiconv 1.14
I added the PATCHES option
no changes to the defaults
DISABLE NLS option – Native language support
ENABLE LZO option– Compression
… gmp 5.1.1
No images yet!!!
the more direct route
The main option outside the defaults for samba4 is to enable "EXP_MODULES"
I have a ports "option" file which seems work for me. The file contents should be placed in /var/db/ports/samba4/options(default ports options path):
Do not use the lines which start with "===" in the options file.
==== =================== StartFile ==========================
# This file is auto-generated by 'make config'.
# Options for samba4-4.0.3 _OPTIONS_READ=samba4-4.0.3
_FILE_COMPLETE_OPTIONS_LIST=ACL_SUPPORT ADS AIO_SUPPORT AVAHI CUPS DEBUG DEVELOPER DNSUPDATE EXP_MODULES FAM_SUPPORT LDAP MANPAGES PAM_SMBPASS PTHREADPOOL QUOTAS SWAT SYSLOG UTMP WINBIND NSUPDATE BIND98 BIND99
======================= End File ==========================
Once the file has been saved, building the samba is a bit easier.