2 # Copyright (C) 2007-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL_SUBDIR
:=/
15 PKG_SOURCE_URL
:=http
://ftp.samba.org
/pub
/samba
$(PKG_SOURCE_URL_SUBDIR
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_MD5SUM
:=d8e070e2a3b12f202f347e4427469bc2
19 include $(INCLUDE_DIR
)/package.mk
22 CONFIGURE_PATH
:=source3
24 PKG_BUILD_BIN
:=$(PKG_BUILD_DIR
)/$(MAKE_PATH
)/bin
26 define Package
/samba36-server
29 TITLE
:=Samba
3.6 SMB
/CIFS server
30 URL
:=http
://www.samba.org
/
33 define Package
/samba36-server
/config
34 config PACKAGE_SAMBA_MAX_DEBUG_LEVEL
35 int
"Maximum level of compiled-in debug messages"
40 define Package
/samba36-server
/description
41 The Samba software suite is a collection of programs that implements the
42 SMB protocol for UNIX systems
, allowing you to serve files and printers to
43 Windows
, NT
, OS
/2 and DOS clients. This protocol is sometimes also referred
44 to
as the LanManager or Netbios protocol.
47 TARGET_CFLAGS
+= -DMAX_DEBUG_LEVEL
=$(CONFIG_PACKAGE_SAMBA_MAX_DEBUG_LEVEL
) -D__location__
=\\\"\\\" -ffunction-sections
-fdata-sections
48 TARGET_LDFLAGS
+= -Wl
,--gc-sections
51 ac_cv_file__proc_sys_kernel_core_pattern
=yes \
52 libreplace_cv_HAVE_C99_VSNPRINTF
=yes \
53 libreplace_cv_HAVE_GETADDRINFO
=yes \
54 libreplace_cv_HAVE_IFACE_IFCONF
=yes \
55 LINUX_LFS_SUPPORT
=yes \
56 samba_cv_CC_NEGATIVE_ENUM_VALUES
=yes \
57 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes \
58 samba_cv_HAVE_IFACE_IFCONF
=yes \
59 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes \
60 samba_cv_HAVE_SECURE_MKSTEMP
=yes \
61 samba_cv_HAVE_WRFILE_KEYTAB
=no \
62 samba_cv_USE_SETREUID
=yes \
63 samba_cv_USE_SETRESUID
=yes \
64 samba_cv_have_setreuid
=yes \
65 samba_cv_have_setresuid
=yes \
66 ac_cv_header_zlib_h
=no \
67 samba_cv_zlib_1_2_3
=no
78 --disable-shared-libs \
79 --with-codepagedir
=/etc
/samba \
80 --with-configdir
=/etc
/samba \
81 --with-included-iniparser \
82 --with-included-popt \
83 --with-lockdir
=/var
/lock \
84 --with-logfilebase
=/var
/log \
85 --with-nmbdsocketdir
=/var
/nmbd \
86 --with-piddir
=/var
/run \
87 --with-privatedir
=/etc
/samba \
88 --with-sendfile-support \
89 --without-cluster-support \
98 --without-libsmbclient \
99 --without-libsmbsharemodes \
101 --with-shared-modules
=pdb_tdbsam
,pdb_wbc_sam
,idmap_nss
,nss_info_template
,auth_winbind
,auth_wbc
,auth_domain
103 MAKE_FLAGS
+= DYNEXP
= PICFLAG
= MODULES
=
105 define Package
/samba36-server
/install
106 $(INSTALL_DIR
) $(1)/etc
/config
107 $(INSTALL_DATA
) .
/files
/samba.config
$(1)/etc
/config
/samba
108 $(INSTALL_DIR
) $(1)/etc
/samba
109 $(INSTALL_DATA
) .
/files
/smb.conf.template
$(1)/etc
/samba
110 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/codepages
/lowcase.dat
$(1)/etc
/samba
111 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/codepages
/upcase.dat
$(1)/etc
/samba
112 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/codepages
/valid.dat
$(1)/etc
/samba
113 $(INSTALL_DIR
) $(1)/etc
/init.d
114 $(INSTALL_BIN
) .
/files
/samba.init
$(1)/etc
/init.d
/samba
115 $(INSTALL_DIR
) $(1)/usr
/sbin
116 $(INSTALL_BIN
) $(PKG_BUILD_BIN
)/samba_multicall
$(1)/usr
/sbin
117 ln
-sf samba_multicall
$(1)/usr
/sbin
/smbd
118 ln
-sf samba_multicall
$(1)/usr
/sbin
/nmbd
119 ln
-sf samba_multicall
$(1)/usr
/sbin
/smbpasswd
122 $(eval
$(call BuildPackage
,samba36-server
))