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.

52 lines
1.2 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.9
  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:=18d8f1bf92c13c4d611502dbd6759e3a766ddc8467ec8a2eda3f589e40b9ac9c
  14. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/cifsmount
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+kmod-fs-cifs
  22. TITLE:=CIFS mount utilities
  23. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  24. endef
  25. TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
  26. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  27. CONFIGURE_ARGS += \
  28. --disable-cifsupcall \
  29. --disable-cifscreds \
  30. --disable-cifsidmap \
  31. --disable-cifsacl \
  32. --disable-pam \
  33. --disable-pie \
  34. --disable-relro \
  35. --disable-systemd \
  36. --disable-man \
  37. --without-libcap
  38. define Package/cifsmount/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount.cifs $(1)/usr/sbin/
  41. endef
  42. $(eval $(call BuildPackage,cifsmount))