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.

80 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:=2
  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. CONFIGURE_ARGS += \
  48. ac_cv_lib_cap_ng_capng_clear=no
  49. TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
  50. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  51. define Build/InstallDev
  52. $(INSTALL_DIR) $(1)/usr/include
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/cifsidmap.h $(1)/usr/include/
  54. endef
  55. define Package/cifsmount/install
  56. $(INSTALL_DIR) $(1)/usr/sbin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.cifs $(1)/usr/sbin/
  58. $(LN) /usr/sbin/mount.cifs $(1)/usr/sbin/mount.smb3
  59. endef
  60. define Package/smbinfo/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbinfo $(1)/usr/bin/
  63. endef
  64. $(eval $(call BuildPackage,cifsmount))
  65. $(eval $(call BuildPackage,smbinfo))