[packages] samba36: update to v3.6.4 (CVE-2012-1182)
[openwrt/svn-archive/archive.git] / net / samba36 / Makefile
1 #
2 # Copyright (C) 2007-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=samba
11 PKG_VERSION:=3.6.4
12 PKG_RELEASE:=1
13
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
18
19 include $(INCLUDE_DIR)/package.mk
20
21 MAKE_PATH:=source3
22 CONFIGURE_PATH:=source3
23
24 PKG_BUILD_BIN:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/bin
25
26 define Package/samba36-server
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=Samba 3.6 SMB/CIFS server
30 URL:=http://www.samba.org/
31 endef
32
33 define Package/samba36-server/config
34 config PACKAGE_SAMBA_MAX_DEBUG_LEVEL
35 int "Maximum level of compiled-in debug messages"
36 default -1
37
38 endef
39
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.
45 endef
46
47 TARGET_CFLAGS += -DMAX_DEBUG_LEVEL=$(CONFIG_PACKAGE_SAMBA_MAX_DEBUG_LEVEL) -D__location__=\\\"\\\" -ffunction-sections -fdata-sections
48 TARGET_LDFLAGS += -Wl,--gc-sections
49
50 CONFIGURE_VARS += \
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
68
69 CONFIGURE_ARGS += \
70 --exec-prefix=/usr \
71 --prefix=/ \
72 --disable-avahi \
73 --disable-cups \
74 --disable-pie \
75 --disable-relro \
76 --disable-static \
77 --disable-swat \
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 \
90 --without-ads \
91 --without-krb5 \
92 --without-ldap \
93 --without-pam \
94 --without-winbind \
95 --without-libtdb \
96 --without-libtalloc \
97 --without-libnetapi \
98 --without-libsmbclient \
99 --without-libsmbsharemodes \
100 --without-libaddns \
101 --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain
102
103 MAKE_FLAGS += DYNEXP= PICFLAG= MODULES=
104
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
120 endef
121
122 $(eval $(call BuildPackage,samba36-server))
123