Samba4 is an attempt to implement an Active Directory compatible Domain
Controller.
In short, you can join a WinNT, Win2000, WinXP or Win 2003 - 2016 member
server to a Samba4 domain, and it will behave much as it does in AD,
including Kerberos domain logins where applicable.
===> The following configuration options are available for samba422-4.22.11_3:
ADS=on: Active Directory client
AD_DC=on: Active Directory Domain Controller(implies PYTHON3)
CLUSTER=off: Clustering support
CUPS=off: CUPS printing system support
DOCS=on: Build and/or install documentation
FAM=on: File Alteration Monitor
GPGME=off: GpgME support
LDAP=on: LDAP client
MANPAGES=on: Build and/or install manual pages
PROFILE=on: Profiling data
PYTHON3=on: Python 3.x bindings or support
QUOTAS=on: Disk quota support
SYSLOG=on: Syslog logging support
UTMP=on: UTMP accounting
====> Bundled dependencies
BUNDLED_CMOCKA=off: Bundle cmocka instead of depending on a standalone port
BUNDLED_TALLOC=off: Bundle talloc instead of depending on a standalone port
BUNDLED_TDB=off: Bundle TDB instead of depending on a standalone port
BUNDLED_TEVENT=off: Bundle Tevent instead of depending on a standalone port
====> Testing, debugging, and development
DEVELOPER=off: With developer framework
MEMORY_DEBUG=off: Debug memory allocator
PICKY_DEVELOPER=off: Treat compiler warnings as errors(implies DEVELOPER)
TEST=off: Build and/or run tests
====> VFS modules
FRUIT=on: MacOSX and TimeMachine support
GLUSTERFS=off: GlusterFS support
====> GSSAPI Security API support: you have to select exactly one of them
GSSAPI_BUILTIN=on: GSSAPI support via bundled Heimdal
GSSAPI_MIT=off: GSSAPI support via security/krb5
====> Zero configuration networking: you have to select exactly one of them
ZEROCONF_NONE=off: Zeroconf support is absent
AVAHI=on: Zeroconf support via Avahi
MDNSRESPONDER=off: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings
databases/lmdb: allow to install both 0.x and 1.x together
LMDB 1.0 and the legacy 0.9 ABI cannot be mixed, the datanase format are
incompatibles as well.
Rename or relocate everything databases/lmdb0 installs so that it no
longer overlaps with databases/lmdb:
- the utilities are now mdb_copy0, mdb_dump0, mdb_load0 and mdb_stat0
- the header is include/lmdb0/lmdb.h
- the linker name is liblmdb0.so, the shared object keeps its ABI name
liblmdb.so.0 so already linked programs are unaffected
- the pkg-config file is lmdb0.pc
A compatibility prefix holding the previous layout is also installed
under ${PREFIX}/lmdb0/ (include/, lib/ and libdata/pkgconfig/) so that
build systems which expect to find lmdb.h and -llmdb relative to a
single directory only need a path change.
Now all ports should migrate to lmdb 1.X and use the lmdb 0.9 port to ease
in the migration path, lmdb, the lmdb 0.x is supposed to get removed at
some point.
Approved by: mat (portmgr)
Reviewed by: mat
Differential Revision: https://reviews.freebsd.org/D60741
*/*: depends of devel/talloc244
Update dependency of devel/tevent017 to use devel/talloc244 instead
of devel/talloc243 since these version of samba can support it.
Update Mk/Uses/samba.mk for relecting such changes.
PR: 294595
Reported by: Jordan Ostref, ml@netfence.it
Reviewed by: kiwi
Approved by: samba (kiwi)
Sponsored by: Klara, Inc.
databases/lmdb0: Add port for LMDB 0.9.x legacy ABI
LMDB 1.0 introduced an incompatible on-disk format change and subtle
API breakage: applications that compiled cleanly against 1.0 headers
could fail silently at run time. Known affected ports include dns/knot3,
mail/bogofilter, and mail/postfix; the postfix issue has been confirmed
upstream. Linux distributions such as Arch Linux have observed the same
breakage. Samba can also be affected in certain configurations.
Because the regression is not detectable in an -exp build run -- the
postfix failure only manifests at run time, and bogofilter was caught
only because post-build self-tests happen to exercise this path -- we
cannot rely on package builds to validate the 1.0 upgrade.
This commit introduces databases/lmdb0 as a holding port for the 0.9.35
(Only the first 15 lines of the commit message are shown above )
all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by: many (*)
Differential Revision: https://reviews.freebsd.org/D55624
Differential Revision: https://reviews.freebsd.org/D55642 (merged in from bofh)
many (*)
acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
nobutaka pkubaj se tagattie thj
Anton Saietskii
GenericRikka
Gert Doering
Jan Bramkamp
Oleh Hushchenkov
Oleksandr Kryvulia
Ralf van der Enden
Yamagi
desktop kde python tcltk office
net/samba422: Add patches to fix ndr.h consumers (i.e. SSSD)
This is the same change that was applied to net/samba416 in
fd6a710e199bdba2b2df37a481038e743da895dd
PR: 293566
Approved by: samba (maintainer timeout)
net/samba422: opt out from Features/fortify.mk
[...]
Checking for freebsd sendfile support
: not found
sendfile support not found but it was requested !
(complete log in
/wrkdirs/usr/ports/net/samba422/work/samba-4.22.6/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292391
treewide: Remove references to USES= fam and move to LIB_DEPENDS
Only a handful of ports in tree uses this helper which
used to make a switch between devel/fam and devel/gamin more
convenient. With devel/fam going away there's no need to maintain
this any further for a handful of ports.
Approved by: blanket
net/samba422: OPTIONify handling bundled dependencies and lint
Before this commit, users could control whether to bundle cmocka, TDB,
Tevent, and talloc by setting an appropriate WITH_BUNDLED_* variable
to "yes". Let's transition to OPTIONS instead so that it's easier to
track the actual port configuration by taking a look at the options,
e.g., with make showconfig.
Additionally, the makefile itself requires less if statements.
While here, lint with portclippy --strict.
net/samba422: Simplify handling of SAMBA4_BUNDLED_*
Check if SAMBA4_BUNDLED_* variables are set to either "yes" or "no" once
to avoid having to check if they are defined over and over.
net/samba422: Set TEST_ENV with = instead of +=
"+=" may suggest that we are appending to the default value of TEST_ENV.
This is not true. Use "=" to be explicit about the intent.
net/samba422: CLUSTER: Add missing dependency net/libpcap
Error: /usr/local/bin/ctdb is linked to /usr/local/lib/libpcap.so.1 from
net/libpcap but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libpcap.so:net/libpcap
PR: 291104
Reported by: vvd
net/samba422: Add a missing dependency: ncurses
This should address the following errors:
Error: /usr/local/bin/samba-regedit is linked to /usr/local/lib/libform.so.6
from devel/ncurses but it is not declared as a dependency
Warning: you need USES+=ncurses
Error: /usr/local/bin/samba-regedit is linked to
/usr/local/lib/libncurses.so.6 from devel/ncurses but it is not declared as a
dependency
Warning: you need USES+=ncurses
Error: /usr/local/bin/samba-regedit is linked to
/usr/local/lib/libtinfo.so.6 from devel/ncurses but it is not declared as a
dependency
Warning: you need USES+=ncurses
Error: /usr/local/bin/samba-regedit is linked to
/usr/local/lib/libpanel.so.6 from devel/ncurses but it is not declared as a
dependency
Warning: you need USES+=ncurses
net/samba422: Introduce option DEVELOPMENT
DEVELOPMENT is a group option for all the testing, debugging, and
development options offered by Samba.
While here, sort related variables.
net/samba422: Standardize check if AD_DC is disabled when ADS is disabled
Use AD_DC_IMPLIES=ADS instead of:
.if !${PORT_OPTIONS:MADS} && ${PORT_OPTIONS:MAD_DC}
IGNORE=To disable ADS option you also need to disable AD_DC option
.endif
net/samba422: Fix plist entries for AD_DC=off
Some of the .so files that we assumed are AD_DC-specific are installed
also when AD_DC is off. Fix that.
PR: 291541
net/samba422: Fix location of ldb files
- Use SAMBA_LDB_MODULESDIR consistently
- Move all AD_DC-related plist entries to pkg-plist.ad_dc
This patch fixes a simple "make package" build with default options.
PR: 291541
Reported by: O. Hartmann <ohartmann@walstatt.org>
Sponsored by: Klara, Inc.
net/samba422: Do not set WRKSRC needlessly and explain PLIST assignment
We need to set PLIST explicitly here because we use
<OPTION>_VARS=PLIST+=pkg-plist.<option>
to append more files to PLIST. Everything works as expected.
net/samba422: Guard some plist entries with %%AD_DC%%
This fixes the following "package" phase errors:
===> Building packages for samba422-4.22.6
===> Building samba422-4.22.6
pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/asq.so:No such
file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/ildap.so:No such
file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/ldb.so:No such
file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/ldbsamba_extensions.so:No
such file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/paged_searches.so:No
such file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/rdn_name.so:No
such file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/sample.so:No
such file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/server_sort.so:No
such file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/skel.so:No such
file or directory pkg-static: Unable to access file
/p/net/samba422/work/stage/usr/local/lib/samba4/modules/ldb/tdb.so:No such
file or directory
*** Error code 1
The commit message was written by 0mp.
PR: 291509291516
net/samba422: Fix USES=cpe and incorporate USES=samba:self
USES=cpe has not been working as it was overwritten by another
assignment of USES later in the file. Fix that by merging those two USES
assignments into one.
Add USES=samba:self, so that we can depend on the directory paths
defined in samba.mk.
PR 290424
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D54137
net/samba422: Make ADS option imply LDAP option
If ADS option is on and LDAP option is off, build fails at configure
phase as below.
need ber_sockbuf_add_io() and LDAP_OPT_SOCKBUF for SASL and TLS support
Active Directory support not available: LDAP support is not available.
Active Directory support not found. Use --without-ads for building without
Active Directory support. ADS support improves communication with Active
Directory domain controllers.
(complete log in
/wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log)
===> Script "configure" failed unexpectedly.
Please report the problem to samba@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
(Only the first 15 lines of the commit message are shown above )
net/samba422: Fix plist error after commit 6c23ee846dd4
After commit 6c23ee846dd4 plist error happens with default options
setting as below.
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/samba4/modules/ldb/ldap.so
===> Error: Plist issues found.
*** Error code 1
Stop.
make: stopped in /usr/ports/net/samba422
While here, use %%SAMBA4_MODULEDIR%% for path of
lib/samba4/modules/ldb/ldap.so and sort plist.
Fixes: 6c23ee846dd4 net/samba422: Fix plist when AD_DC and LDAP are OFF
net/samba422: Fix pkg-plist when building without PYTHON3
The build fails at the packaging step because it tries to
include a file that doesn't exist without PYTHON3.
PR: 290439
Reported by: Toshimichi Masubuchi
Sponsored by: Klara, Inc. (0mp)
Co-authored-by: Toshimichi Masubuchi <t.masub@gmail.com>
net/samba422: Fix plist when AD_DC and LDAP are OFF
PR: 290441
Reported by: Trond Endrestøl
Sponsored by: Klara, Inc. (0mp)
Co-authored-by: Trond Endrestøl <Trond.Endrestol@ximalas.info>
net/samba422: Do not keep ldb private
Since version 4.22, Samba requires ldb to be bundled. This is
problematic for packaging because ldb is also used by ports such as
security/sssd2. In the past, we used a standalone ldb port to address
that.
Luckily, it turns out that Samba can turn its private libraries into
public ones via its configure script. This commit makes Samba's ldb
public.
PR: 289272
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52377
net/samba422: Update to 4.22.3
Most of this patch is Andrej Ebert's work. I fixed some of the remaining
issues and prepared it for landing in the ports tree under sponsorship
from Klara, Inc.
Changes in the port include:
- There's an unconditional dependency on devel/icu now,
since Samba pulls it in if it's in the build environment and
complains afterwards if icu is bumped without a Samba rebuild.
- Remove GSSAPI Builtin converters/p5-JSON build dependency,
it's not needed since 4.20 as per upstream:
https://www.samba.org/samba/history/samba-4.20.0.html
(Only the first 15 lines of the commit message are shown above )