mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
autosamba: allow select samba server type
This commit is contained in:
parent
841d082824
commit
e67c755180
@ -9,21 +9,43 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=autosamba
|
PKG_NAME:=autosamba
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=13
|
PKG_RELEASE:=15
|
||||||
PKG_ARCH:=all
|
PKG_ARCH:=all
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_KSMBD \
|
||||||
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA3 \
|
||||||
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA4 \
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/autosamba
|
define Package/autosamba
|
||||||
TITLE:=Samba autoconfig hotplug script.
|
TITLE:=Samba autoconfig hotplug script.
|
||||||
MAINTAINER:=Lean
|
MAINTAINER:=Lean
|
||||||
DEPENDS:=+luci-app-samba4 +wsdd2
|
DEPENDS:=+wsdd2 +PACKAGE_$(PKG_NAME)_INCLUDE_KSMBD:luci-app-ksmbd +PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA3:luci-app-samba +PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA4:luci-app-samba4
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/autosamba/description
|
define Package/autosamba/description
|
||||||
A hotplug script to config Samba share automatically.
|
A hotplug script to config Samba share automatically.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/config
|
||||||
|
choice
|
||||||
|
prompt "Samba Server Selection"
|
||||||
|
default PACKAGE_$(PKG_NAME)_INCLUDE_KSMBD
|
||||||
|
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_KSMBD
|
||||||
|
bool "KSMBD"
|
||||||
|
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA3
|
||||||
|
bool "SAMBA 3"
|
||||||
|
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_SAMBA4
|
||||||
|
bool "SAMBA 4"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user