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.

75 lines
1.7 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:=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:=18d8f1bf92c13c4d611502dbd6759e3a766ddc8467ec8a2eda3f589e40b9ac9c
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:debian:cifs-utils
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/cifsmount
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+kmod-fs-cifs
  25. TITLE:=CIFS mount
  26. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  27. endef
  28. define Package/smbinfo
  29. SECTION:=net
  30. CATEGORY:=Network
  31. DEPENDS:=+kmod-fs-cifs
  32. TITLE:=SMB info
  33. URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
  34. endef
  35. CONFIGURE_ARGS += \
  36. --disable-cifsupcall \
  37. --disable-cifscreds \
  38. --disable-cifsidmap \
  39. --disable-cifsacl \
  40. --disable-pam \
  41. --disable-pie \
  42. --disable-relro \
  43. --disable-systemd \
  44. --disable-man \
  45. --without-libcap
  46. TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
  47. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/cifsidmap.h $(1)/usr/include/
  51. endef
  52. define Package/cifsmount/install
  53. $(INSTALL_DIR) $(1)/usr/sbin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.cifs $(1)/usr/sbin/
  55. endef
  56. define Package/smbinfo/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbinfo $(1)/usr/bin/
  59. endef
  60. $(eval $(call BuildPackage,cifsmount))
  61. $(eval $(call BuildPackage,smbinfo))