Merge pull request #10583 from neheb/cif
cifs-utils: Add smbinfo utility
This commit is contained in:
commit
dfe3924f33
1 changed files with 27 additions and 5 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=cifs-utils
|
PKG_NAME:=cifs-utils
|
||||||
PKG_VERSION:=6.9
|
PKG_VERSION:=6.9
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://download.samba.org/pub/linux-cifs/cifs-utils/
|
PKG_SOURCE_URL:=https://download.samba.org/pub/linux-cifs/cifs-utils/
|
||||||
|
@ -20,18 +20,26 @@ PKG_LICENSE:=GPL-3.0
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_CPE_ID:=cpe:/a:debian:cifs-utils
|
PKG_CPE_ID:=cpe:/a:debian:cifs-utils
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/cifsmount
|
define Package/cifsmount
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+kmod-fs-cifs
|
DEPENDS:=+kmod-fs-cifs
|
||||||
TITLE:=CIFS mount utilities
|
TITLE:=CIFS mount
|
||||||
URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
|
URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
|
define Package/smbinfo
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+kmod-fs-cifs
|
||||||
|
TITLE:=SMB info
|
||||||
|
URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
|
||||||
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--disable-cifsupcall \
|
--disable-cifsupcall \
|
||||||
|
@ -45,9 +53,23 @@ CONFIGURE_ARGS += \
|
||||||
--disable-man \
|
--disable-man \
|
||||||
--without-libcap
|
--without-libcap
|
||||||
|
|
||||||
|
TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
|
||||||
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/cifsidmap.h $(1)/usr/include/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/cifsmount/install
|
define Package/cifsmount/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount.cifs $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.cifs $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/smbinfo/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbinfo $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,cifsmount))
|
$(eval $(call BuildPackage,cifsmount))
|
||||||
|
$(eval $(call BuildPackage,smbinfo))
|
||||||
|
|
Loading…
Reference in a new issue