[packages] samba3: reverse logic of printing support, fix recursive dep between nmbd...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 1 Dec 2011 17:39:25 +0000 (17:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 1 Dec 2011 17:39:25 +0000 (17:39 +0000)
SVN-Revision: 29374

net/samba3/Config.in
net/samba3/Makefile

index 528f249561f6ff2da77a016c334059b028d28f8e..a71de4d304a6f88cb2408c41ac4cfabf28ddb734 100644 (file)
@@ -6,6 +6,15 @@ config SAMBA3_CONFIG_DEBUG
                Enables debugging support (will make binaries *much* bigger)
                Also increases MAX_DEBUG_LEVEL to get more messages (also increases binary sizes!)
 
+config SAMBA3_CONFIG_PRINTING
+       bool "Enable shared printing support"
+       depends PACKAGE_samba3
+       select PACKAGE_cups
+       default n
+       help
+               Enable shared printing support.
+               Adds about 18kB for smbd, about 15kB for nmbd and about 18kB for smbpasswd
+
 config SAMBA3_CONFIG_SMALLER
        bool "Make samba3 even smaller"
        depends PACKAGE_samba3
@@ -13,11 +22,3 @@ config SAMBA3_CONFIG_SMALLER
        help
                Removes support for ???
                Saves about 18kB for smbd, about 16kB for nmbd and about 17kB for smbpasswd
-
-config SAMBA3_CONFIG_NO_PRINTING
-       bool "Remove shared printing support"
-       depends PACKAGE_samba3
-       default y
-       help
-               Removes shared printing support.
-               Saves about 18kB for smbd, about 15kB for nmbd and about 18kB for smbpasswd
index e6c187cbf8501a6751895a50cb884ac35fba4ad5..124bf9b461e89d53c79e58cebb31c35cfef0a0e5 100644 (file)
@@ -30,13 +30,13 @@ endef
 define Package/samba3
 $(call Package/samba3/Default)
   TITLE:=SMB server for file and printer sharing
-  DEPENDS:=+libpthread +libpopt $(ICONV_DEPENDS) +!SAMBA3_CONFIG_NO_PRINTING:cups
+  DEPENDS:=+libpthread +libpopt $(ICONV_DEPENDS)
 endef
 
 define Package/samba3-nmbd
 $(call Package/samba3/Default)
   TITLE:=NetBIOS name server
-  DEPENDS:=+samba3
+  DEPENDS:=samba3
 endef
 
 define Package/samba3-mountcifs
@@ -74,11 +74,11 @@ endef
 
 TARGET_CFLAGS+=$(if $(CONFIG_SAMBA3_CONFIG_DEBUG),-DSAMBA_DEBUG,-DMAX_DEBUG_LEVEL=2)
 TARGET_CFLAGS+=$(if $(CONFIG_SAMBA3_CONFIG_SMALLER),-DAVM_SMALLER)
-TARGET_CFLAGS+=$(if $(CONFIG_SAMBA3_CONFIG_NO_PRINTING),-DAVM_NO_PRINTING)
+TARGET_CFLAGS+=$(if $(CONFIG_SAMBA3_CONFIG_PRINTING),,-DAVM_NO_PRINTING)
 CONFIGURE_PATH:=source
 CONFIGURE_ARGS+= \
        $(if $(CONFIG_SAMBA3_CONFIG_DEBUG),--enable-debug) \
-       $(if $(CONFIG_SAMBA3_CONFIG_NO_PRINTING),--enable-cups=no --enable-iprint=no) \
+       $(if $(CONFIG_SAMBA3_CONFIG_PRINTING),,--enable-cups=no --enable-iprint=no) \
        --without-krb5 \
        --without-ads \
        --without-ldap \
@@ -99,7 +99,7 @@ CONFIGURE_VARS+= \
 
 MAKE_PATH=source
 MAKE_FLAGS += \
-       $(if $(CONFIG_SAMBA3_CONFIG_NO_PRINTING),OWRT_NO_PRINTING=1) \
+       $(if $(CONFIG_SAMBA3_CONFIG_PRINTING),,OWRT_NO_PRINTING=1) \
        $(if $(CONFIG_SAMBA3_CONFIG_SMALLER),OWRT_SMALLER=1)
 
 define Build/Compile