You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2007-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cifs-utils
  9. PKG_VERSION:=6.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://download.samba.org/pub/linux-cifs/cifs-utils/
  13. PKG_HASH:=92fc29c8e9039637f3344267500f1fa381e2cccd7d10142f0c1676fa575904a7
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:debian:cifs-utils
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/cifsmount
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+kmod-fs-cifs
  26. TITLE:=CIFS mount
  27. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  28. endef
  29. define Package/smbinfo
  30. SECTION:=net
  31. CATEGORY:=Network
  32. DEPENDS:=+kmod-fs-cifs
  33. TITLE:=SMB info
  34. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  35. endef
  36. CONFIGURE_ARGS += \
  37. --disable-cifsupcall \
  38. --disable-cifscreds \
  39. --disable-cifsidmap \
  40. --disable-cifsacl \
  41. --disable-pam \
  42. --disable-pie \
  43. --disable-relro \
  44. --disable-systemd \
  45. --disable-man \
  46. --without-libcap
  47. TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
  48. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  49. define Build/InstallDev
  50. $(INSTALL_DIR) $(1)/usr/include
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/cifsidmap.h $(1)/usr/include/
  52. endef
  53. define Package/cifsmount/install
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.cifs $(1)/usr/sbin/
  56. $(LN) /usr/sbin/mount.cifs $(1)/usr/sbin/mount.smb3
  57. endef
  58. define Package/smbinfo/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbinfo $(1)/usr/bin/
  61. endef
  62. $(eval $(call BuildPackage,cifsmount))
  63. $(eval $(call BuildPackage,smbinfo))