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