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.

53 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. PKG_CPE_ID:=cpe:/a:debian:cifs-utils
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/cifsmount
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+kmod-fs-cifs
  23. TITLE:=CIFS mount utilities
  24. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  25. endef
  26. TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
  27. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  28. CONFIGURE_ARGS += \
  29. --disable-cifsupcall \
  30. --disable-cifscreds \
  31. --disable-cifsidmap \
  32. --disable-cifsacl \
  33. --disable-pam \
  34. --disable-pie \
  35. --disable-relro \
  36. --disable-systemd \
  37. --disable-man \
  38. --without-libcap
  39. define Package/cifsmount/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount.cifs $(1)/usr/sbin/
  42. endef
  43. $(eval $(call BuildPackage,cifsmount))