[source] samba36: add libsmbclient package

LEDE Commits lede-commits at lists.infradead.org
Wed May 24 06:38:29 PDT 2017


stintel pushed a commit to source.git, branch kodi:
https://git.lede-project.org/92fda767f007945c2d94d11f08f2f0c8df159a6f

commit 92fda767f007945c2d94d11f08f2f0c8df159a6f
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Sat Mar 11 13:50:46 2017 +0100

    samba36: add libsmbclient package
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 package/network/services/samba36/Makefile | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/package/network/services/samba36/Makefile b/package/network/services/samba36/Makefile
index 65d2043..d8ab080 100644
--- a/package/network/services/samba36/Makefile
+++ b/package/network/services/samba36/Makefile
@@ -47,10 +47,17 @@ define Package/samba36-client
   DEPENDS:=+libreadline +libncurses
 endef
 
+define Package/samba36-libsmbclient
+  $(call Package/samba/Default)
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Samba 3.6 SMB/CIFS client library
+endef
+
 define Package/samba36-server/config
 	config PACKAGE_SAMBA_MAX_DEBUG_LEVEL
 		int "Maximum level of compiled-in debug messages"
-		depends on PACKAGE_samba36-server || PACKAGE_samba36-client
+		depends on PACKAGE_samba36-server || PACKAGE_samba36-client || PACKAGE_samba36-libsmbclient
 		default -1
 
 endef
@@ -104,6 +111,7 @@ CONFIGURE_ARGS += \
 	--with-configdir=/etc/samba \
 	--with-included-iniparser \
 	--with-included-popt \
+	--with-libsmbclient \
 	--with-lockdir=/var/lock \
 	--with-logfilebase=/var/log \
 	--with-nmbdsocketdir=/var/nmbd \
@@ -120,7 +128,6 @@ CONFIGURE_ARGS += \
 	--without-libtdb \
 	--without-libtalloc \
 	--without-libnetapi \
-	--without-libsmbclient \
 	--without-libsmbsharemodes \
 	--without-libtevent \
 	--without-libaddns \
@@ -134,6 +141,12 @@ define Package/samba36-server/conffiles
 /etc/samba/smbpasswd
 endef
 
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/source3/include/libsmbclient.h $(1)/usr/include
+	$(INSTALL_BIN) $(PKG_BUILD_BIN)/libsmbclient.{a,so*} $(1)/usr/lib
+endef
+
 define Package/samba36-server/install
 	$(INSTALL_DIR) $(1)/etc/config
 	$(INSTALL_CONF) ./files/samba.config $(1)/etc/config/samba
@@ -157,6 +170,11 @@ define Package/samba36-client/install
 	$(INSTALL_BIN) $(PKG_BUILD_BIN)/nmblookup $(1)/usr/sbin
 endef
 
+define Package/samba36-libsmbclient/install
+	$(INSTALL_DIR) $(1)/usr/lib
+	$(INSTALL_BIN) $(PKG_BUILD_BIN)/libsmbclient.so* $(1)/usr/lib
+endef
+
 $(eval $(call BuildPackage,samba36-client))
 $(eval $(call BuildPackage,samba36-server))
-
+$(eval $(call BuildPackage,samba36-libsmbclient))



More information about the lede-commits mailing list