components/samba3oi/Makefile
changeset 212 705e1ace097b
equal deleted inserted replaced
182:fa48f2b6c9af 212:705e1ace097b
       
     1 #
       
     2 # This file and its contents are supplied under the terms of the
       
     3 # Common Development and Distribution License ("CDDL"), version 1.0.
       
     4 # You may only use this file in accordance with the terms of version
       
     5 # 1.0 of the CDDL.
       
     6 #
       
     7 # A full copy of the text of the CDDL should have accompanied this
       
     8 # source.  A copy of the CDDL is also available via the Internet at
       
     9 # http://www.illumos.org/license/CDDL.
       
    10 #
       
    11 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       
    12 #
       
    13 
       
    14 include ../../make-rules/shared-macros.mk
       
    15 
       
    16 COMPONENT_NAME=		samba
       
    17 COMPONENT_VERSION=	3.5.8
       
    18 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    19 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    20 COMPONENT_ARCHIVE_HASH=	sha1:ffb71de38442eee14aafb44f819671354dc5cce9
       
    21 COMPONENT_ARCHIVE_URL=	http://ftp.samba.org/pub/samba/$(COMPONENT_ARCHIVE)
       
    22 COMPONENT_PROJECT_URL=	http://www.samba.org/
       
    23 
       
    24 COMPONENT_PREP_ACTION = (cd $(SOURCE_DIR)/source3; sh autogen.sh)
       
    25 
       
    26 include ../../make-rules/prep.mk
       
    27 
       
    28 # SS12u1 barfs on Samba lib/crypto/sha256.c
       
    29 # so go back to SS12.  Also need C99
       
    30 SPRO_VROOT =	$(SPRO_ROOT)/SS12
       
    31 studio_C99MODE=$(studio_99_ENABLE)
       
    32 
       
    33 # Samba runs CC without CFLAGS to link programs.
       
    34 CC.studio.64 += -m64
       
    35 
       
    36 # override paths to .built
       
    37 BUILD_DIR_32 = $(BUILD_DIR)/$(MACH32)/source3
       
    38 BUILD_DIR_64 = $(BUILD_DIR)/$(MACH64)/source3
       
    39 
       
    40 include ../../make-rules/configure.mk
       
    41 include ../../make-rules/ips.mk
       
    42 
       
    43 PATCH_LEVEL=0
       
    44 
       
    45 # Override some paths
       
    46 # Note: configure.mk provides --prefix, --libdir, (others)
       
    47 CONFIGURE_LIBDIR.32 =	$(CONFIGURE_PREFIX)/lib/samba
       
    48 CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib/samba/$(MACH64)
       
    49 
       
    50 # We need to work two levels down, and this needs to be relative
       
    51 CONFIGURE_SCRIPT =	../../../samba-3.5.8/source3/configure
       
    52 
       
    53 CONFIGURE_OPTIONS +=	--includedir=/usr/include/samba
       
    54 CONFIGURE_OPTIONS +=	--sysconfdir=/etc/samba
       
    55 CONFIGURE_OPTIONS +=	--with-configdir=/etc/samba
       
    56 CONFIGURE_OPTIONS +=	--with-privatedir=/etc/samba/private
       
    57 CONFIGURE_OPTIONS +=	--with-swatdir=/usr/share/samba/swat
       
    58 CONFIGURE_OPTIONS +=	--localstatedir=/var/samba
       
    59 CONFIGURE_OPTIONS +=	--with-lockdir=/var/samba/locks
       
    60 CONFIGURE_OPTIONS +=	--with-piddir=/var/samba/locks
       
    61 CONFIGURE_OPTIONS +=	--with-logfilebase=/var/samba/log
       
    62 CONFIGURE_OPTIONS +=	--enable-shared=yes
       
    63 CONFIGURE_OPTIONS +=	--enable-static=no
       
    64 CONFIGURE_OPTIONS +=	--with-static-modules=
       
    65 CONFIGURE_OPTIONS +=	--with-shared-modules=vfs_zfsacl,vfs_prealloc,vfs_cacheprime,vfs_commit,idmap_ldap,idmap_tdb2,idmap_rid,idmap_ad,idmap_hash,idmap_adex
       
    66 CONFIGURE_OPTIONS +=	--with-readline
       
    67 CONFIGURE_OPTIONS +=	--with-aio-support
       
    68 CONFIGURE_OPTIONS +=	--with-acl-support
       
    69 CONFIGURE_OPTIONS +=	--with-ads
       
    70 CONFIGURE_OPTIONS +=	--with-krb5
       
    71 CONFIGURE_OPTIONS +=	--with-ldap
       
    72 CONFIGURE_OPTIONS +=	--with-automount
       
    73 CONFIGURE_OPTIONS +=	--with-dnsupdate
       
    74 CONFIGURE_OPTIONS +=	--with-pam
       
    75 CONFIGURE_OPTIONS +=	--with-winbind
       
    76 CONFIGURE_OPTIONS +=	CPP=/usr/sfw/bin/cpp
       
    77 CONFIGURE_OPTIONS +=	CPPFLAGS="$(CPPFLAGS)"
       
    78 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    79 CONFIGURE_OPTIONS +=	CUPS_CONFIG=/usr/bin/cups-config
       
    80 CONFIGURE_OPTIONS +=	INSTALLCMD=/usr/bin/ginstall
       
    81 CONFIGURE_OPTIONS +=	LIBREPLACE_NETWORK_LIBS=" -lsocket -lnsl"
       
    82 CONFIGURE_OPTIONS.32 +=	LDFLAGS=-R/usr/lib/samba
       
    83 CONFIGURE_OPTIONS.64 +=	LDFLAGS=-R/usr/lib/samba/$(MACH64)
       
    84 CONFIGURE_OPTIONS +=	MAKE=gmake
       
    85 
       
    86 build:		$(BUILD_32) $(BUILD_64)
       
    87 
       
    88 # We only need a few 64-bit objects and we get them
       
    89 # directly from the build area, so no INSTALL_64.
       
    90 install:	$(INSTALL_32)
       
    91 
       
    92 test:		$(NO_TESTS)
       
    93 
       
    94 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    95 
       
    96 include ../../make-rules/depend.mk