components/samba/samba/Makefile
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Thu, 31 Jul 2014 01:53:13 -0700
changeset 4109 b8f324d4e07c
parent 3858 39f3c7ed68ae
child 4272 842ee8dc3530
permissions -rw-r--r--
17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     1
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     2
# CDDL HEADER START
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     3
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     7
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    11
# and limitations under the License.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    12
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    18
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    19
# CDDL HEADER END
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    20
#
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    21
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    24
#
774
d0cbca26a17c 7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 761
diff changeset
    25
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    26
# Samba does not work properly on i86 when built by studio.
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    27
# Samba on SPARC has serious performance drop when built by gcc.
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    28
ifeq ($(uname -p),sparc)
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    29
COMPILER =	studio
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    30
else
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    31
COMPILER =	gcc
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    32
endif
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    33
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    34
include ../../../make-rules/shared-macros.mk
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    35
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    36
COMPONENT_NAME=		samba
3858
39f3c7ed68ae 20592521 Update Samba to version 3.6.25
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    37
COMPONENT_VERSION=	3.6.25
39f3c7ed68ae 20592521 Update Samba to version 3.6.25
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    38
TPNO=			21657
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    39
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    40
COMPONENT_PROJECT_URL=	http://www.samba.org/
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    41
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
3858
39f3c7ed68ae 20592521 Update Samba to version 3.6.25
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    42
COMPONENT_ARCHIVE_HASH= sha256:8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751
1764
c89163761bd9 18416627 Update Samba to 3.6.23 release.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 1645
diff changeset
    43
COMPONENT_ARCHIVE_URL=	http://ftp.samba.org/pub/samba/stable/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1027
diff changeset
    44
COMPONENT_BUGDB=	utility/samba
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    45
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    46
COMPONENT_NAME_1=		docbook-xsl
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    47
COMPONENT_VERSION_1=		1.76.1
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    48
COMPONENT_SRC_1=		$(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    49
COMPONENT_ARCHIVE_1=		$(COMPONENT_SRC_1).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 790
diff changeset
    50
COMPONENT_ARCHIVE_HASH_1=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 790
diff changeset
    51
    sha256:d6bdfd76f672c810299c71443e5127431ffb87d2c79d818aee72c86eaccd312c
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    52
COMPONENT_ARCHIVE_URL_1=	http://sourceforge.net/projects/docbook/files/$(COMPONENT_NAME_1)/$(COMPONENT_VERSION_1)/$(COMPONENT_ARCHIVE_1)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    53
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    54
include $(WS_MAKE_RULES)/prep.mk
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    55
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    56
SRC_OFFSET =	source3
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    57
# Now we override paths to .built
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    58
BUILD_DIR_32 = $(BUILD_DIR)/$(MACH32)/$(SRC_OFFSET)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    59
BUILD_DIR_64 = $(BUILD_DIR)/$(MACH64)/$(SRC_OFFSET)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    60
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    61
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    62
include $(WS_MAKE_RULES)/ips.mk
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    63
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    64
CONFIGURE_SCRIPT = $(BUILD_DIR_$(BITS))/configure
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    65
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    66
PKG_OPTIONS += -I $(COMPONENT_DIR)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    67
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    68
DOCS-XML_DIR =	$(SOURCE_DIR)/docs-xml
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    69
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    70
# Build mozldap if not yet built.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    71
$(COMPONENT_DIR)/../mozldap/build/$(MACH32)/.installed \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    72
$(COMPONENT_DIR)/../mozldap/build/$(MACH64)/.installed:
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    73
	$(GMAKE) -C $(COMPONENT_DIR)/../mozldap install
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    74
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    75
# Clone mozldap libs and headers to $(PROTO_DIR).
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    76
# Create also $(PROTO_DIR).
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    77
$(PROTO_DIR)/.mozldap:	   $(COMPONENT_DIR)/../mozldap/build/$(MACH32)/.installed \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    78
			   $(COMPONENT_DIR)/../mozldap/build/$(MACH64)/.installed
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    79
	$(MKDIR) $(PROTO_DIR)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    80
	$(CLONEY) $(COMPONENT_DIR)/../mozldap/build/prototype/$(MACH) $(PROTO_DIR)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    81
	$(TOUCH) [email protected]
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    82
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    83
# Solve dependencies before the 32bits configure.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    84
$(BUILD_DIR_32)/.configured: $(DOCS-XML_DIR)/.built $(PROTO_DIR)/.mozldap \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    85
			$(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    86
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    87
# Start 64bits configure after the 32bits one is finished
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    88
# to have all dependecies solved.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    89
$(BUILD_DIR_64)/.configured: $(BUILD_DIR_32)/.configured
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    90
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    91
# re-create configure dir with respect of SRC_OFFSET
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    92
# (target $(BUILD_DIR_64)/.configured does not know about
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    93
# the lower level of directories)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    94
COMPONENT_PRE_CONFIGURE_ACTION = \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    95
	$(RM) -r $(BUILD_DIR)/$(MACH$(BITS)) ; \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    96
	$(MKDIR) $(BUILD_DIR)/$(MACH$(BITS)) ;
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    97
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    98
# Clone SOURCE_DIR and remove links to all of the files generated
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    99
# from *.in to distinguish then between the 32/64bits builds.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   100
COMPONENT_PRE_CONFIGURE_ACTION += \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   101
	( $(CLONEY) $(SOURCE_DIR) $(BUILD_DIR)/$(MACH$(BITS)) ; \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   102
	  find $(@D)/.. -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ) ;
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   103
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   104
# finish preparation
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   105
COMPONENT_PRE_CONFIGURE_ACTION += \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   106
	( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   107
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   108
COMPONENT_PRE_BUILD_ACTION = $(ENV) ; echo $(COMPONENT_BUILD_ENV)
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   109
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   110
# Depend on $(PROTO_DIR)/.mozldap because this target creates $(PROTO_DIR).
4109
b8f324d4e07c 17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3858
diff changeset
   111
$(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so: Solaris/libsam.c $(PROTO_DIR)/.mozldap
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   112
	$(MKDIR) $(PROTO_DIR)/opt/SUNWsamfs/lib
628
c3c0c8f3f696 7119845 Samba 3.5.10 can not use the system kerberos keytab.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 446
diff changeset
   113
	$(CC.studio.32) -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
4109
b8f324d4e07c 17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3858
diff changeset
   114
		-I$(COMPONENT_DIR)/Solaris/include \
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   115
		-o $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   116
446
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   117
CFLAGS.studio	+=	$(studio_C99_ENABLE)
1605
7fc7910b6d94 17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1601
diff changeset
   118
CFLAGS.gcc	+=	-std=c99
1496
f774cfa29f53 17389915 default userland gcc should be gcc4
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1463
diff changeset
   119
CFLAGS.gcc3	+=	-std=c99
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   120
899
dc77409b0afa 7180058 Update Samba to 3.6.6
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 874
diff changeset
   121
#CPPFLAGS +=	-DSAMBA_VERSION_VENDOR_SUFFIX=\\\"Placeholder_for_vendor_suffix\\\"
446
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   122
CPPFLAGS +=	$(CPP_LARGEFILES)
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   123
CPPFLAGS +=	$(CPP_XPG6MODE)
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   124
CPPFLAGS +=	-I$(PROTOUSRINCDIR)/samba -I$(PROTOUSRINCDIR)/samba/ldap6 -I$(BUILD_DIR_$(BITS))/include
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   125
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   126
LIBS +=		-lrt -lsocket -lnsl
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   127
# libavahi is not for 64bits but we do not need it
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   128
LIBS32 =	-lsendfile -lavahi-common -lavahi-core
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   129
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   130
LDFLAGS.32 +=	-L $(PROTOUSRLIBDIR)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   131
LDFLAGS.32 +=	-L $(PROTOUSRLIBDIR)/samba -R/usr/lib/samba
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   132
LDFLAGS.32 +=	-L $(PROTO_DIR)/opt/SUNWsamfs/lib
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   133
LDFLAGS.32 +=	$(LIBS) $(LIBS32)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   134
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   135
LDFLAGS.64 +=	-L $(PROTOUSRLIBDIR)/$(MACH64)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   136
LDFLAGS.64 +=	-L $(PROTOUSRLIBDIR)/samba/$(MACH64) -R/usr/lib/samba/$(MACH64)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   137
LDFLAGS.64 +=	$(LIBS)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   138
446
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   139
ifeq ($(COMPILER), studio)
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   140
LDFLAGS +=	$(LDFLAGS.$(BITS)) $(LD_OPTIONS)
446
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   141
else
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   142
LDFLAGS +=      $(LDFLAGS.$(BITS)) $(LD_OPTIONS:%=-Xlinker %)
ba4f3a6be7f7 7071751 Problem with utility/samba
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 264
diff changeset
   143
endif
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   144
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   145
CONFIGURE_LIBDIR.32 = /usr/lib/samba
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   146
CONFIGURE_LIBDIR.64 = /usr/lib/samba/$(MACH64)
761
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   147
CONFIGURE_OPTIONS +=	--includedir=/usr/include/samba
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   148
CONFIGURE_OPTIONS +=	--sysconfdir=/etc/samba
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   149
CONFIGURE_OPTIONS +=	--with-configdir=/etc/samba
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   150
CONFIGURE_OPTIONS +=	--with-privatedir=/etc/samba/private
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   151
CONFIGURE_OPTIONS +=	--with-swatdir=/usr/share/samba/swat
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   152
CONFIGURE_OPTIONS +=	--localstatedir=/var/samba
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   153
CONFIGURE_OPTIONS +=	--with-lockdir=/var/samba/locks
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   154
CONFIGURE_OPTIONS +=	--with-piddir=/var/samba/locks
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   155
CONFIGURE_OPTIONS +=	--with-logfilebase=/var/samba/log
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   156
CONFIGURE_OPTIONS +=	--enable-shared=yes
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   157
CONFIGURE_OPTIONS +=	--enable-static=no
1207
1d0be3a9fc06 16103575 Update Samba to 3.6.12 release.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 1058
diff changeset
   158
CONFIGURE_OPTIONS.32 +=	--with-static-modules=vfs_solarisacl
1986
ec77e9bb9f57 17027615 smbd still dumps core with patch 119758-27(SAMBA 3.6.12) in AIO mode with SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 1948
diff changeset
   159
CONFIGURE_OPTIONS.32 += --with-shared-modules=vfs_worm,vfs_zfsacl,vfs_aio_pthread,vfs_samfs,vfs_prealloc,vfs_cacheprime,vfs_commit,idmap_ldap,idmap_tdb2,idmap_rid,idmap_ad,idmap_hash,idmap_adex
1207
1d0be3a9fc06 16103575 Update Samba to 3.6.12 release.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 1058
diff changeset
   160
CONFIGURE_OPTIONS.64 +=	--with-static-modules=
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   161
CONFIGURE_OPTIONS.64 += --with-shared-modules=
761
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   162
CONFIGURE_OPTIONS +=	--with-readline
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   163
CONFIGURE_OPTIONS +=	--enable-cups
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   164
CONFIGURE_OPTIONS +=	--with-aio-support
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   165
CONFIGURE_OPTIONS +=	--with-acl-support
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   166
CONFIGURE_OPTIONS +=	--with-ads
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   167
CONFIGURE_OPTIONS +=	--with-ldap
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   168
CONFIGURE_OPTIONS +=	--with-automount
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   169
CONFIGURE_OPTIONS +=	--with-dnsupdate=no
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   170
CONFIGURE_OPTIONS +=	--with-pam
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   171
CONFIGURE_OPTIONS +=	--with-winbind
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   172
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   173
CONFIGURE_OPTIONS += 	LD="$(LD)"
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   174
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
4109
b8f324d4e07c 17027687 smbd is still not closing stale Samba connections w/ 119758-27 w/ SAMFS
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3858
diff changeset
   175
CONFIGURE_OPTIONS.32 +=	CPPFLAGS="$(CPPFLAGS) -I$(COMPONENT_DIR)/Solaris/include"
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   176
CONFIGURE_OPTIONS.64 +=	CPPFLAGS="$(CPPFLAGS)"
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   177
CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   178
CONFIGURE_OPTIONS.32 +=	LIBS="$(LIBS) $(LIBS32)"
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   179
CONFIGURE_OPTIONS.64 +=	LIBS="$(LIBS)"
1396
2c75b46fc80a 15694966 SUNBT7016715 6641606 is not solved with 146363-01/146364-01
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 1311
diff changeset
   180
CONFIGURE_OPTIONS +=	LDAP_LIBS="-lldap60 -lssldap60"
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   181
CONFIGURE_OPTIONS +=	CUPS_CONFIG=$(USRBINDIR)/cups-config
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   182
CONFIGURE_OPTIONS.32 +=	SAMFS_LIBS="-R/opt/SUNWsamfs/lib -lsam"
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   183
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   184
# download recent docbook-xsl and unpack it
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   185
$(BUILD_DIR)/$(COMPONENT_SRC_1)/.docbook-xsl-prep: $(COMPONENT_ARCHIVE_1) \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   186
		$(SOURCE_DIR)/.prep $(PROTO_DIR)/.mozldap
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   187
	cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   188
	cd $(DOCS-XML_DIR) ; $(GMAKE) clobber
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   189
	$(TOUCH) [email protected]
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   190
1504
6d2d9722f8cf 17576493 mozldap is not prepared during whole workspace 'gmake prep'
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1496
diff changeset
   191
prep::
6d2d9722f8cf 17576493 mozldap is not prepared during whole workspace 'gmake prep'
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1496
diff changeset
   192
	$(MAKE) -C $(COMPONENT_DIR)/../mozldap prep
6d2d9722f8cf 17576493 mozldap is not prepared during whole workspace 'gmake prep'
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1496
diff changeset
   193
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   194
# create also the: $(DOCS-XML_DIR)/configure and $(DOCS-XML_DIR)/build/catalog.xml
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   195
# needed to buils docs from XML sources
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   196
$(DOCS-XML_DIR)/Makefile.settings: $(BUILD_DIR)/$(COMPONENT_SRC_1)/.docbook-xsl-prep
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   197
	cd $(@D) ; $(GMAKE) configure \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   198
		BUILDDIR=$(@D) \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   199
		DOCBOOKXSLVER=$(COMPONENT_VERSION_1) \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   200
		DOCBOOKXSLDIR=$(BUILD_DIR)/$(COMPONENT_SRC_1)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   201
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   202
# Build docs from DocBook XML sources.
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   203
$(DOCS-XML_DIR)/.built: $(DOCS-XML_DIR)/Makefile.settings
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   204
	cd $(@D) ; \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   205
	env - XML_CATALOG_FILES="catalog.xml file:///$(@D)/build/catalog.xml" \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   206
		$(GMAKE) smbdotconf/parameters.all.xml manpages3 htmlman3
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   207
	$(TOUCH) [email protected]
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   208
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   209
$(PROTO_DIR)/etc/samba/smb.conf-example: $(BUILD_32)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   210
	$(MKDIR) $(@D)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   211
	sed -f $(COMPONENT_DIR)/Solaris/smbconf.sed > [email protected] \
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   212
	   $(BUILD_DIR)/$(MACH32)/examples/smb.conf.default
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   213
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   214
# Samba targets
761
3518078b68c4 7141061 Update to samba 3.6.3
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 628
diff changeset
   215
$(BUILD_32): COMPONENT_BUILD_TARGETS = showlayout all libsmbclient modules smbtorture
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   216
$(BUILD_64): COMPONENT_BUILD_TARGETS = showlayout nss_modules pam_modules pam_smbpass wins pam_winbind
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   217
$(INSTALL_32): COMPONENT_INSTALL_TARGETS = showlayout install-everything
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   218
$(INSTALL_64): COMPONENT_INSTALL_TARGETS = showlayout installpammodules
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   219
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   220
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2011
diff changeset
   221
configure:	$(CONFIGURE_32_and_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2011
diff changeset
   222
264
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   223
build:		$(BUILD_32_and_64)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   224
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   225
install:	$(PROTO_DIR)/etc/samba/smb.conf-example $(INSTALL_32_and_64)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   226
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   227
test:		$(NO_TESTS)
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   228
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   229
clean::
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   230
	$(GMAKE) -C $(COMPONENT_DIR)/../mozldap clean
84a67a54e8fd 7044174 Move samba(s) and its dependencies to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
   231
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   232
REQUIRED_PACKAGES += library/file-monitor/gamin
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   233
REQUIRED_PACKAGES += library/ncurses
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   234
REQUIRED_PACKAGES += library/popt
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   235
REQUIRED_PACKAGES += library/print/cups-libs
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   236
REQUIRED_PACKAGES += library/readline
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   237
REQUIRED_PACKAGES += library/samba/libsmbclient
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   238
REQUIRED_PACKAGES += library/zlib
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   239
REQUIRED_PACKAGES += runtime/perl-512
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   240
REQUIRED_PACKAGES += runtime/perl-516
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   241
REQUIRED_PACKAGES += service/security/kerberos-5
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   242
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   243
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   244
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   245
REQUIRED_PACKAGES += system/library/gcc-3-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   246
REQUIRED_PACKAGES += system/library/gcc-45-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   247
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   248
REQUIRED_PACKAGES += system/library/security/crypto
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   249
REQUIRED_PACKAGES += system/library/security/gss
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   250
REQUIRED_PACKAGES += system/network
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   251
REQUIRED_PACKAGES += system/network/avahi