#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# Samba uses gcc-like structure members initialization
# ...so solarisstudio12.1 (default in 11.3) fails to compile Samba
# Samba does not work properly on i386 when built by studio with -xO3+.
else
# Both SPRO_VROOT and studio_OPT vars must use the override keyword otherwise
# Userland will ignore it and use its default value.
# parfait seems to spin on us
# waf
# Verbosed waf produces unreadable output if parallelized.
# Uncomment to enable verbose build.
#override WAFOPT1 = -v -j1
# Set build dirs for Samba + Winbind / Winbind (without Samba).
# directory to search for "include" in samba.p5m
PKG_OPTIONS += -I $(COMPONENT_DIR)
# Set the pkg... path to search files in ./Solaris/ dir (mainly the SMF manifests are there)
PKG_PROTO_DIRS += $(COMPONENT_DIR)
# pkg-config files
$(BUILD_DIR)/pkgcfg/.pc: $(COMPONENT_DIR)/Solaris/samfs.pc $(COMPONENT_DIR)/Solaris/ldap.pc $(COMPONENT_DIR)/Solaris/lber.pc $(COMPONENT_DIR)/Solaris/openldap.pc
$(MKDIR) $(@D)
$(MKDIR) $(@D)
-o $@
# Compiler settings
# More libs needed by smbd (libavahi, libgamin, ...)
#CPPFLAGS += -DSAMBA_VERSION_VENDOR_SUFFIX=\\\"Placeholder_for_vendor_suffix\\\"
CPPFLAGS += $(CPP_LARGEFILES)
CPPFLAGS += $(CPP_XPG6MODE)
LD_OPTIONS += -B direct
# --enable-fhs should not be on
# Whenever getfacl is found HAVE_SOLARIS_UNIXWARE_ACLS is set and
# vfs_solarisacl is placed into the list of the static modules
--with-shared-modules=vfs_worm,vfs_zfsacl,vfs_prealloc,vfs_cacheprime,vfs_commit,idmap_ldap,idmap_tdb2,idmap_rid,idmap_ad,idmap_hash,idmap_adex
#CONFIGURE_OPTIONS += --enable-nss-wrapper
#CONFIGURE_OPTIONS += --with-system-mitkrb5
CONFIGURE_OPTIONS += --nocache
CONFIGURE_OPTIONS += --nopyo
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I$(PROTO_DIR)/usr/include -I$(COMPONENT_DIR)/Solaris/include"
# Propagation of smb.conf with default settings.
$(MKDIR) $(@D)
# Build targets for WAF:
# (motivation) Samba started to use WAF (build system from Google) from the 3.x
# (as a parallel build system) but Samba4 discontinued the use of auto tools
# definitively.
# (note) .BDprep target is an additional step between .prep and .configure
# targets. It was added because there were problems with libtool-like phase of
# WAF when the not "prepared well". "waf distclean" on CLONEY'ed BUILD_DIR is
# enough.
# Prepare build dir for Samba + Winbind.
# re-create configure dir
$(MKDIR) $(@D)
# Clone SOURCE_DIR
# clenup of clone
# dummy.c is needed to build with studio
$(TOUCH) $@
# Configure of Samba + Winbind.
$(BUILD_DIR_SMB)/.configured: $(BUILD_DIR_SMB)/.BDprep $(BUILD_DIR)/pkgcfg/.pc $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
$(TOUCH) $@
# Build of Samba + Winbind.
$(TOUCH) $@
# Install of Samba + Winbind.
(cd $(@D) ; $(ENV) - $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf install $(WAFOPT1) --destdir=$(PROTO_DIR) )
$(TOUCH) $@
# Prepare build dir for Winbind (without Samba) for different bitness.
# re-create configure dir
$(MKDIR) $(@D)
# Clone SOURCE_DIR
# clenup of clone
$(TOUCH) $@
# Configure of Winbind (without Samba) for different bitness.
$(TOUCH) $@
# Build of Winbind (without Samba) for different bitness.
$(TOUCH) $@
# Installf Winbind (without Samba) for different bitness.
"
$(TOUCH) $@
# Set appropriate bitnesses for Samba + Winbind / Winbind (without Samba).
# common targets
# set version of python interpreter for pkglint
done
done
test: $(NO_TESTS)
clean::