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-10-31
  7. PKG_SOURCE_VERSION:=3e6be471ee4a78d71d920787f2f91d2f745de575
  8. PKG_MIRROR_HASH:=f5f8b2e8b2248f0ca39d8647f9d5243957d293ba738cb2596323fa965ae723f3
  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) ./files/smb.conf.help $(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))