summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-samba/luasrc/model/cbi
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2020-05-08 03:42:10 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2020-05-08 03:42:10 +0300
commit47fb749872cffdb9ec9893775056b4b444754e6e (patch)
tree4b3ab269e2493f5b7091cf1593e52da23cfe6a9a /applications/luci-app-samba/luasrc/model/cbi
parent893dfe727a7940aa6fc83d6583263224a228f1ec (diff)
luci-app-samba: drop package
The samba36-server package was dropped from OpenWrt. Use luci-app-samba4 with samba4 or luci-app-ksmbd with ksmbd instead. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'applications/luci-app-samba/luasrc/model/cbi')
-rw-r--r--applications/luci-app-samba/luasrc/model/cbi/samba.lua80
1 files changed, 0 insertions, 80 deletions
diff --git a/applications/luci-app-samba/luasrc/model/cbi/samba.lua b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
deleted file mode 100644
index e972874f5b..0000000000
--- a/applications/luci-app-samba/luasrc/model/cbi/samba.lua
+++ /dev/null
@@ -1,80 +0,0 @@
--- Copyright 2008 Steven Barth <steven@midlink.org>
--- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
--- Licensed to the public under the Apache License 2.0.
-
-m = Map("samba", translate("Network Shares"))
-
-s = m:section(TypedSection, "samba", "Samba")
-s.anonymous = true
-
-s:tab("general", translate("General Settings"))
-s:tab("template", translate("Edit Template"))
-
-s:taboption("general", Value, "name", translate("Hostname"))
-s:taboption("general", Value, "description", translate("Description"))
-s:taboption("general", Value, "workgroup", translate("Workgroup"))
-h = s:taboption("general", Flag, "homes", translate("Share home-directories"),
- translate("Allow system users to reach their home directories via " ..
- "network shares"))
-h.rmempty = false
-
-tmpl = s:taboption("template", Value, "_tmpl",
- translate("Edit the template that is used for generating the samba configuration."),
- translate("This is the content of the file '/etc/samba/smb.conf.template' from which your samba configuration will be generated. " ..
- "Values enclosed by pipe symbols ('|') should not be changed. They get their values from the 'General Settings' tab."))
-
-tmpl.template = "cbi/tvalue"
-tmpl.rows = 20
-
-function tmpl.cfgvalue(self, section)
- return nixio.fs.readfile("/etc/samba/smb.conf.template")
-end
-
-function tmpl.write(self, section, value)
- value = value:gsub("\r\n?", "\n")
- nixio.fs.writefile("//etc/samba/smb.conf.template", value)
-end
-
-
-s = m:section(TypedSection, "sambashare", translate("Shared Directories")
- , translate("Please add directories to share. Each directory refers to a folder on a mounted device."))
-s.anonymous = true
-s.addremove = true
-s.template = "cbi/tblsection"
-
-s:option(Value, "name", translate("Name"))
-pth = s:option(Value, "path", translate("Path"))
-if nixio.fs.access("/etc/config/fstab") then
- pth.titleref = luci.dispatcher.build_url("admin", "system", "mounts")
-end
-
-s:option(Value, "users", translate("Allowed users")).rmempty = true
-
-ro = s:option(Flag, "read_only", translate("Read-only"))
-ro.rmempty = false
-ro.enabled = "yes"
-ro.disabled = "no"
-
-br = s:option(Flag, "browseable", translate("Browseable"))
-br.rmempty = false
-br.default = "yes"
-br.enabled = "yes"
-br.disabled = "no"
-
-go = s:option(Flag, "guest_ok", translate("Allow guests"))
-go.rmempty = false
-go.enabled = "yes"
-go.disabled = "no"
-
-cm = s:option(Value, "create_mask", translate("Create mask"),
- translate("Mask for new files"))
-cm.rmempty = true
-cm.size = 4
-
-dm = s:option(Value, "dir_mask", translate("Directory mask"),
- translate("Mask for new directories"))
-dm.rmempty = true
-dm.size = 4
-
-
-return m