luci-app-nfs-share: delete duplicate package

This commit is contained in:
CN_SZTL 2020-01-22 12:15:15 +08:00
parent 709f2fb5a8
commit c4f3140aa6
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
4 changed files with 0 additions and 111 deletions

View File

@ -1,11 +0,0 @@
# Copyright 2017 Kapil Dev Mishra <kdm6389@gmail.com.org>
# This is free software, licensed under the Apache License, Version 2.0 .
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Network Shares - NFS module
LUCI_DEPENDS:=+nfs-kernel-server
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -1,15 +0,0 @@
-- Copyright 2017 Kapil Dev Mishra <kdm6389@gmail.com.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nfs-share", package.seeall)
function index()
if not nixio.fs.access("/etc/exports") then
return
end
local page
page = entry({"admin", "services", "nfs-share"}, cbi("nfs-share"), _("Network Share - NFS"))
page.dependent = true
end

View File

@ -1,83 +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.
-- imported from https://github.com/openwrt/luci/edit/master/applications/luci-app-samba/luasrc/model/cbi/samba.lua for twweaking for NFS, since I am unable find where is old openwrt fronend for nfs.
-- needs to be edited
m = Map("nfs", translate("Network Shares - NFS"))
s = m:section(TypedSection, "nfs", "NFS")
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/nfs.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/nfs/nfs.conf.template")
end
function tmpl.write(self, section, value)
value = value:gsub("\r\n?", "\n")
nixio.fs.writefile("//etc/nfs/nfs.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", "fstab")
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

View File

@ -1,2 +0,0 @@
msgid ""
msgstr ""