diff options
author | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2008-12-12 09:09:51 +0000 |
---|---|---|
committer | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2008-12-12 09:09:51 +0000 |
commit | f02a0408dcca36dcc996484e14bd52b9de9f48a6 (patch) | |
tree | bafb48e1a61d6ebcc5269bc6240dd9deccaae387 /package/samba/samba.mk | |
parent | 2bb1785adb14b50a648ab75614f78a3c7a5e5edc (diff) | |
download | buildroot-novena-f02a0408dcca36dcc996484e14bd52b9de9f48a6.tar.gz buildroot-novena-f02a0408dcca36dcc996484e14bd52b9de9f48a6.zip |
samba: bump version to 3.2.5
This patch bumps Samba version to 3.2.5. In the process Samba now
depends on libiconv. This dependency is needed because Samba wants to use
various formats when talking to the different parts of the system.
Two new patches are introduced, one to double check if BSD functions are
available, and one to skip checking for glibc version. The use unsigned
enum patch could be removed since this can be supplied with a autoconf
variable.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'package/samba/samba.mk')
-rw-r--r-- | package/samba/samba.mk | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/package/samba/samba.mk b/package/samba/samba.mk index cecc0cdfe..ea1b50b5f 100644 --- a/package/samba/samba.mk +++ b/package/samba/samba.mk @@ -3,7 +3,7 @@ # samba # ############################################################# -SAMBA_VERSION:=3.0.33 +SAMBA_VERSION:=3.2.5 SAMBA_SOURCE:=samba-$(SAMBA_VERSION).tar.gz SAMBA_SITE:=http://samba.org/samba/ftp/stable/ SAMBA_DIR:=$(BUILD_DIR)/samba-$(SAMBA_VERSION)/source @@ -32,8 +32,9 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked samba_cv_HAVE_MMAP=yes \ samba_cv_HAVE_FCNTL_LOCK=yes \ samba_cv_HAVE_SECURE_MKSTEMP=yes \ + samba_cv_HAVE_NATIVE_ICONV=no \ + samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \ samba_cv_fpie=no \ - SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ @@ -45,17 +46,21 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked --with-privatedir=/etc/samba \ --with-logfilebase=/var/log/samba \ --with-configdir=/etc/samba \ + --with-libiconv=$(STAGING_DIR) \ --without-ldap \ - --without-libaddns \ + --without-ads \ + --without-acl \ --with-included-popt \ --with-included-iniparser \ - --disable-cups \ + --disable-shared-libs \ --disable-static \ + --disable-cups \ + $(BR2_LARGEFILE) \ ) touch $@ $(SAMBA_DIR)/$(SAMBA_BINARY): $(SAMBA_DIR)/.configured - $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(SAMBA_DIR) + $(MAKE1) -C $(SAMBA_DIR) SAMBA_TARGETS_ := SAMBA_TARGETS_y := @@ -98,13 +103,22 @@ $(TARGET_DIR)/$(SAMBA_TARGET_BINARY): $(SAMBA_DIR)/$(SAMBA_BINARY) PRIVATEDIR="${TARGET_DIR}/etc/samba" \ CONFIGDIR="${TARGET_DIR}/etc/samba" \ VARDIR="${TARGET_DIR}/var/log/samba" \ - -C $(SAMBA_DIR) installservers installbin installcifsmount installscripts + -C $(SAMBA_DIR) installlibs installservers installbin installcifsmount installscripts + # Do not install the LDAP-like embedded database tools + rm -f $(addprefix $(TARGET_DIR)/usr/bin/ldb, add del edit modify search) + # Remove not used library by Samba binaries + rm -f $(TARGET_DIR)/usr/lib/libnetapi* + rm -f $(TARGET_DIR)/usr/lib/libsmbclient* + rm -f $(TARGET_DIR)/usr/lib/libtalloc* + rm -f $(TARGET_DIR)/usr/lib/libtdb* + # Remove not wanted Samba binaries for file in $(SAMBA_TARGETS_); do \ rm -f $(TARGET_DIR)/$$file; \ done - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(SAMBA_TARGET_BINARY) + # Strip the wanted Samba binaries + $(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/$(SAMBA_TARGET_BINARY) for file in $(SAMBA_TARGETS_y); do \ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$$file; \ + $(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/$$file; \ done ifeq ($(BR2_PACKAGE_SAMBA_SWAT),y) cp -dpfr $(SAMBA_DIR)/../swat $(TARGET_DIR)/usr/ @@ -116,7 +130,7 @@ endif rm -rf $(TARGET_DIR)/var/cache/samba rm -rf $(TARGET_DIR)/var/lib/samba -samba: uclibc $(TARGET_DIR)/$(SAMBA_TARGET_BINARY) +samba: libiconv $(TARGET_DIR)/$(SAMBA_TARGET_BINARY) samba-source: $(DL_DIR)/$(SAMBA_SOURCE) |