From 2fc9ca7640cc3d55a5b8daedfdc4b4430b0cd982 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 1 Dec 2011 17:39:25 +0000 Subject: [PATCH] [packages] samba3: reverse logic of printing support, fix recursive dep between nmbd and samba3, fix recursive dep between samba, cups and printer support git-svn-id: svn://svn.openwrt.org/openwrt/packages@29374 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/samba3/Config.in | 17 +++++++++-------- net/samba3/Makefile | 10 +++++----- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/net/samba3/Config.in b/net/samba3/Config.in index 528f24956..a71de4d30 100644 --- a/net/samba3/Config.in +++ b/net/samba3/Config.in @@ -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 diff --git a/net/samba3/Makefile b/net/samba3/Makefile index e6c187cbf..124bf9b46 100644 --- a/net/samba3/Makefile +++ b/net/samba3/Makefile @@ -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 -- 2.11.0