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.

59 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cifsd-tools
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/cifsd-team/cifsd-tools.git
  6. PKG_SOURCE_DATE:=2019-11-27
  7. PKG_SOURCE_VERSION:=06fd4153a5d5af1f96a20234f397bd149a8e4832
  8. PKG_MIRROR_HASH:=2849d2af471e327abc8d67afc91ca767c410e2b307d6554531a0b387d9ad909a
  9. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  10. PKG_LICENSE:=GPL-2.0-or-later
  11. PKG_LICENSE_FILES:=COPYING
  12. PKG_FIXUP:=autoreconf
  13. PKG_INSTALL:=1
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_REMOVE_FILES:=autogen.sh
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. define Package/cifsd-tools
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Filesystem
  22. TITLE:=Kernel CIFS/SMB server support and userspace tools
  23. URL:=https://github.com/cifsd-team/cifsd-tools
  24. DEPENDS:=+kmod-fs-cifsd +glib2 +libnl-core +libnl-genl
  25. endef
  26. define Package/cifsd-tools/description
  27. Userspace tools (cifsd, cifsuseradd, cifsshareadd) for the CIFS/SMB kernel fileserver.
  28. The config file location is /etc/cifs/smb.conf
  29. endef
  30. define Package/cifsd-tools/install
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcifsdtools.so* $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{cifsuseradd,cifsshareadd,cifsd} $(1)/usr/sbin/
  35. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/cifs $(1)/etc/init.d
  36. $(INSTALL_CONF) ./files/cifsd.config $(1)/etc/config/cifsd
  37. $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/cifs/
  38. $(INSTALL_BIN) ./files/cifsd.init $(1)/etc/init.d/cifsd
  39. # copy examples until we have a wiki page
  40. $(INSTALL_DATA) ./files/cifsd.config.example $(1)/etc/cifs/
  41. $(INSTALL_DATA) $(PKG_BUILD_DIR)/Documentation/configuration.txt $(1)/etc/cifs/
  42. endef
  43. define Package/cifsd-tools/conffiles
  44. /etc/config/cifsd
  45. /etc/cifs/smb.conf.template
  46. /etc/cifs/smb.conf
  47. /etc/cifs/cifsdpwd.db
  48. endef
  49. $(eval $(call BuildPackage,cifsd-tools))