|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=cifsd-tools
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/cifsd-team/cifsd-tools.git
|
|
PKG_SOURCE_DATE:=2019-07-05
|
|
PKG_SOURCE_VERSION:=539fa21a8dd427a8ca2dc13c9a5a1c975be96d3c
|
|
PKG_MIRROR_HASH:=8c1b22d9926112a7e8ec94a3f731639a3789bef1aeb447f0bd7c41a1884e4dc5
|
|
|
|
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_REMOVE_FILES:=autogen.sh aclocal.m4
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/cifsd-tools
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Filesystem
|
|
TITLE:=Kernel CIFS/SMB server support and userspace tools
|
|
URL:=https://github.com/cifsd-team/cifsd-tools
|
|
DEPENDS:=+kmod-fs-cifsd +glib2 +libnl-core +libnl-genl
|
|
endef
|
|
|
|
define Package/cifsd-tools/description
|
|
Userspace tools (cifsd, cifsadmin) for the CIFS/SMB kernel fileserver.
|
|
The config file location is /etc/cifs/smb.conf
|
|
endef
|
|
|
|
define Package/cifsd-tools/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcifsdtools.so* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{cifsadmin,cifsd} $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/cifs $(1)/etc/init.d
|
|
$(INSTALL_CONF) ./files/cifsd.config $(1)/etc/config/cifsd
|
|
$(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/cifs/
|
|
$(INSTALL_BIN) ./files/cifsd.init $(1)/etc/init.d/cifsd
|
|
# copy examples until we have a wiki page
|
|
$(INSTALL_DATA) ./files/cifsd.config.example $(1)/etc/cifs/
|
|
$(INSTALL_DATA) ./files/smb.conf.help $(1)/etc/cifs/
|
|
endef
|
|
|
|
define Package/cifsd-tools/conffiles
|
|
/etc/config/cifsd
|
|
/etc/cifs/smb.conf.template
|
|
/etc/cifs/smb.conf
|
|
/etc/cifs/cifsdpwd.db
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,cifsd-tools))
|