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.

58 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-07-05
  7. PKG_SOURCE_VERSION:=539fa21a8dd427a8ca2dc13c9a5a1c975be96d3c
  8. PKG_MIRROR_HASH:=8c1b22d9926112a7e8ec94a3f731639a3789bef1aeb447f0bd7c41a1884e4dc5
  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_INSTALL:=1
  13. PKG_FIXUP:=autoreconf
  14. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/nls.mk
  17. define Package/cifsd-tools
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Filesystem
  21. TITLE:=Kernel CIFS/SMB server support and userspace tools
  22. URL:=https://github.com/cifsd-team/cifsd-tools
  23. DEPENDS:=+kmod-fs-cifsd +glib2 +libnl-core +libnl-genl
  24. endef
  25. define Package/cifsd-tools/description
  26. Userspace tools (cifsd, cifsadmin) for the CIFS/SMB kernel fileserver.
  27. The config file location is /etc/cifs/smb.conf
  28. endef
  29. define Package/cifsd-tools/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcifsdtools.so* $(1)/usr/lib/
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{cifsadmin,cifsd} $(1)/usr/sbin/
  34. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/cifs $(1)/etc/init.d
  35. $(INSTALL_CONF) ./files/cifsd.config $(1)/etc/config/cifsd
  36. $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/cifs/
  37. $(INSTALL_BIN) ./files/cifsd.init $(1)/etc/init.d/cifsd
  38. # copy examples until we have a wiki page
  39. $(INSTALL_DATA) ./files/cifsd.config.example $(1)/etc/cifs/
  40. $(INSTALL_DATA) ./files/smb.conf.help $(1)/etc/cifs/
  41. endef
  42. define Package/cifsd-tools/conffiles
  43. /etc/config/cifsd
  44. /etc/cifs/smb.conf.template
  45. /etc/cifs/smb.conf
  46. /etc/cifs/cifsdpwd.db
  47. endef
  48. $(eval $(call BuildPackage,cifsd-tools))