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
samba.mk: Set SAMBA_LDB_MODULESDIR to ${_SAMBA_BASE}/lib/shared-modules/ldb
This is the path that's actually required in the build of Samba 4.22
with default options.
Also, make sure to use _SAMBA_BASE instead of LOCALBASE or PREFIX here.
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 at 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.