samba4: bump to version 4.1.10
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 31 Jul 2014 15:21:18 +0000 (12:21 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 31 Jul 2014 18:07:24 +0000 (20:07 +0200)
Lots of bugfixes, enhancements to provisioning and printing support via
cups.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/samba4/samba4.mk

index e2336e796a1ffca70e19ffe9a3da390ab6a2b56a..9e3178aeabc16e950ef01f161c5283bbef6ae899 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SAMBA4_VERSION = 4.1.9
+SAMBA4_VERSION = 4.1.10
 SAMBA4_SITE = http://ftp.samba.org/pub/samba/stable
 SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
 SAMBA4_LICENSE = GPLv3+
@@ -20,6 +20,14 @@ else
        SAMBA4_CONF_OPT += --without-acl-support
 endif
 
+ifeq ($(BR2_PACKAGE_CUPS),y)
+       SAMBA4_CONF_ENV += CUPS_CONFIG="$(STAGING_DIR)/usr/bin/cups-config"
+       SAMBA4_CONF_OPT += --enable-cups
+       SAMBA4_DEPENDENCIES += cups
+else
+       SAMBA4_CONF_OPT += --disable-cups
+endif
+
 ifeq ($(BR2_PACKAGE_LIBAIO),y)
        SAMBA4_CONF_OPT += --with-aio-support
        SAMBA4_DEPENDENCIES += libaio
@@ -69,6 +77,7 @@ define SAMBA4_CONFIGURE_CMDS
                python_LDFLAGS="" \
                python_LIBDIR="" \
                $(TARGET_CONFIGURE_OPTS) \
+               $(SAMBA4_CONF_ENV) \
                ./buildtools/bin/waf configure \
                        --prefix=/usr \
                        --sysconfdir=/etc \
@@ -80,7 +89,6 @@ define SAMBA4_CONFIGURE_CMDS
                        --hostcc=gcc \
                        --disable-rpath \
                        --disable-rpath-install \
-                       --disable-cups \
                        --disable-iprint \
                        --without-pam \
                        --without-dmapi \
@@ -101,6 +109,16 @@ define SAMBA4_INSTALL_TARGET_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
 endef
 
+# Samba just installs .py files so the purge causes problems with some tools
+ifeq ($(BR2_PACKAGE_PYTHON_PYC_ONLY),y)
+define SAMBA4_BUILD_PYC_FILES
+       PYTHONPATH="$(PYTHON_PATH)" \
+               $(HOST_DIR)/usr/bin/python -c "import compileall; \
+               compileall.compile_dir('$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/samba')"
+endef
+SAMBA4_POST_INSTALL_TARGET_HOOKS += SAMBA4_BUILD_PYC_FILES
+endif
+
 define SAMBA4_INSTALL_INIT_SYSV
        $(INSTALL) -m 0755 -D package/samba4/S91smb \
                $(TARGET_DIR)/etc/init.d/S91smb