mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-21 20:03:09 +01:00
* add cifsd - kernel module * add cifsd-tools - userspace package Reference repos: https://github.com/namjaejeon/cifsd https://github.com/namjaejeon/cifsd-tools Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=cifsd-tools
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/namjaejeon/cifsd-tools.git
|
|
PKG_SOURCE_DATE:=2019-02-14
|
|
PKG_SOURCE_VERSION:=a7d7dfc40524b88dbcb2052034a75f446b3cefdd
|
|
PKG_MIRROR_HASH:=a74f95a79c3cdcc78e66c080729141abee0d821e21a326d88b11d849738314fb
|
|
|
|
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
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
|
|
DEPENDS:=+kmod-fs-cifsd +glib2 +libnl-core +libnl-genl $(ICONV_DEPENDS)
|
|
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)/etc/cifs
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/smb.conf.example $(1)/etc/cifs
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/cifsd.config $(1)/etc/config/cifsd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/cifsd.init $(1)/etc/init.d/cifsd
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{cifsadmin,cifsd} $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,cifsd-tools))
|