luci-app-rosy-file-server: drop 5478/head
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 31 Oct 2021 08:27:13 +0000 (09:27 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 31 Oct 2021 08:32:10 +0000 (09:32 +0100)
This package was marked as broken [1], so it's time to remove it.
As package rosy-file-server will be dropped soon [2].

Reasons:
1. it's broken (and package requires LuCI, which was marked as broken,
   thus it is useless)
2. maintainer is inactive
3. maintainer's company does not seem to work.

[1] https://github.com/openwrt/luci/commit/34b682afac310859f0d4696110d8a1af60f16c04
[2] https://github.com/openwrt/packages/pull/17031

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
applications/luci-app-rosy-file-server/Makefile [deleted file]
applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua [deleted file]
applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua [deleted file]
applications/luci-app-rosy-file-server/po/templates/rosy-file-server.pot [deleted file]
applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json [deleted file]
applications/luci-app-rosy-file-server/root/usr/share/rpcd/acl.d/luci-app-rosy-file-server.json [deleted file]

diff --git a/applications/luci-app-rosy-file-server/Makefile b/applications/luci-app-rosy-file-server/Makefile
deleted file mode 100644 (file)
index 0b30de8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
-# Copyright (C) 2018 Rosy Song <rosysong@rosinson.com>
-#
-# This is free software, licensed under the Apache License, Version 2.0 .
-#
-
-include $(TOPDIR)/rules.mk
-
-LUCI_TITLE:=LuCI Support for Rosy File Server
-LUCI_DEPENDS:=+luci-compat +luci-base +rosy-file-server @BROKEN
-
-include ../../luci.mk
-
-# call BuildPackage - OpenWrt buildroot signature
diff --git a/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua b/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua
deleted file mode 100644 (file)
index 703b4de..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
--- Copyright 2018 Rosy Song <rosysong@rosinson.com>
--- Licensed to the public under the Apache License 2.0.
-
-local uci = require "luci.model.uci".cursor()
-local dis = uci:get("rosyfs", "default", "disabled")
-
-local targets = {}
-local server_root = luci.http.formvalue("server_root") or "/www/rosyfs-share/"
-local buffer = io.popen("/bin/busybox ls -ahLlp %s" % server_root)
-if dis ~= '1' and buffer then
-       for l in buffer:lines() do
-               local _p, i, u, g, sz, mm, dd, tt, nm = l:match(
-                       "^([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+(.+)"
-               )
-               local p = _p and string.sub(_p, 1, 1) or nil
-               if p and (p == '-' or p == 'd') and nm and (nm ~= "./") and
-                       not (server_root == "/www/rosyfs-share/" and nm == "../") and
-                       not (server_root == "/www/rosyfs-share/" and nm == "rosyfs-share/") then
-                       targets[nm] = {
-                               ['type'] = p,
-                               ['size'] = sz,
-                               ['last'] = "%s %s %s" % { mm, dd, tt },
-                               ['name'] = nm
-                       }
-               end
-       end
-end
-
-local title = uci:get("rosyfs", "default", "title") or nil
-
-m = SimpleForm("rosyfs", title or translate("Rosy File Server"), translate("This is rosy file server for luci.<br /><strong>Note: targets will be mapped at /www/rosyfs-share !</strong>"))
-m.reset = false
-m.submit = false
-
-
-s = m:section(Table, targets)
-
-t = s:option(DummyValue, "type", translate("Type"))
-
-n = s:option(DummyValue, "name", translate("Name"))
-n.rawhtml = true
-
-function n.cfgvalue(self, section)
-       local v = DummyValue.cfgvalue(self, section)
-       local hv = (v == "../") and "Parent Directory" or v
-       local t = targets[v]['type']
-
-       if t and t ~='d' then
-               -- File
-               return translatef("<a href='%s%s'>%s</a>",
-                       string.sub(server_root, 5, #server_root), hv, hv);
-       elseif t then
-               -- Directory
-               if v == "../" then
-                       local dir = luci.util.trim(luci.util.exec("dirname " .. server_root))
-
-                       if dir ~= "/" then dir = dir .. "/" end
-
-                       return translatef("<a href='%s?server_root=%s'>%s</a>",
-                               luci.dispatcher.build_url("httpfs/rosy-file-server"), dir, hv)
-               else
-                       return translatef("<a href='%s?server_root=%s%s'>%s</a>",
-                               luci.dispatcher.build_url("httpfs/rosy-file-server"),
-                               server_root, hv, hv)
-               end
-       end
-end
-
-l = s:option(DummyValue, "last", translate("Last Modified"))
-sz = s:option(DummyValue, "size", translate("Size"))
-
-return m
diff --git a/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua b/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua
deleted file mode 100644 (file)
index 51efa9e..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
--- Copyright 2019 Rosy Song <rosysong@rosinson.com>
--- Licensed to the public under the Apache License 2.0.
-
-local uci = require("luci.model.uci").cursor()
-local dis = uci:get("rosyfs", "default", "disabled")
-local tgt = uci:get("rosyfs", "default", "target")
-local tlt = uci:get("rosyfs", "default", "title")
-
-m = Map("rosyfs", translate("Rosy File Server Settings"))
-
-s = m:section(TypedSection, "rosyfs", nil)
-s.addremove = false
-s.anonymous = true
-
-e = s:option(Flag, "disabled", translate("Disable"), translate("Disable Rosy File Server"))
-e.default = dis or e.disabled
-e.rmempty = false
-
-a = s:option(Value, "target", translate("Target"), translate("Specify path to be mapped"))
-a.default = tgt or "/www"
-a.datatype = "directory"
-
-t = s:option(Value, "title", translate("Title"), translate("Title to be shown"))
-t.default = tlt or "Rosy File Server"
-
-return m
diff --git a/applications/luci-app-rosy-file-server/po/templates/rosy-file-server.pot b/applications/luci-app-rosy-file-server/po/templates/rosy-file-server.pot
deleted file mode 100644 (file)
index b8f4b1a..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-msgid ""
-msgstr "Content-Type: text/plain; charset=UTF-8"
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:50
-msgid "<a href='%s%s'>%s</a>"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:62
-msgid "<a href='%s?server_root=%s%s'>%s</a>"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:59
-msgid "<a href='%s?server_root=%s'>%s</a>"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:15
-msgid "Disable"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:15
-msgid "Disable Rosy File Server"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/root/usr/share/rpcd/acl.d/luci-app-rosy-file-server.json:3
-msgid "Grant UCI access for luci-app-rosy-file-server"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:69
-msgid "Last Modified"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:40
-msgid "Name"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:31
-#: applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json:3
-#: applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json:17
-#: applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json:27
-msgid "Rosy File Server"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:9
-msgid "Rosy File Server Settings"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:70
-msgid "Size"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:19
-msgid "Specify path to be mapped"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:19
-msgid "Target"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:31
-msgid ""
-"This is rosy file server for luci.<br /><strong>Note: targets will be mapped "
-"at /www/rosyfs-share !</strong>"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:23
-msgid "Title"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua:23
-msgid "Title to be shown"
-msgstr ""
-
-#: applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosy-file-server.lua:38
-msgid "Type"
-msgstr ""
diff --git a/applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json b/applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json
deleted file mode 100644 (file)
index c0a4665..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-{
-       "httpfs": {
-               "title": "Rosy File Server",
-               "order": 5,
-               "setuser": "root",
-               "setgroup": "root",
-               "action": {
-                       "type": "firstchild"
-               },
-               "depends": {
-                       "acl": [ "luci-app-rosy-file-server" ],
-                       "uci": { "rosyfs": true }
-               }
-       },
-
-       "httpfs/rosy-file-server": {
-               "title": "Rosy File Server",
-               "order": 1,
-               "action": {
-                       "type": "form",
-                       "path": "rosy-file-server/rosy-file-server",
-                       "post": { "cbi.submit": true }
-               }
-       },
-
-       "admin/services/rosyfs": {
-               "title": "Rosy File Server",
-               "order": 61,
-               "action": {
-                       "type": "cbi",
-                       "path": "rosy-file-server/rosyfs",
-                       "post": { "cbi.submit": true }
-               }
-       }
-}
diff --git a/applications/luci-app-rosy-file-server/root/usr/share/rpcd/acl.d/luci-app-rosy-file-server.json b/applications/luci-app-rosy-file-server/root/usr/share/rpcd/acl.d/luci-app-rosy-file-server.json
deleted file mode 100644 (file)
index b5ce1ff..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{
-       "luci-app-rosy-file-server": {
-               "description": "Grant UCI access for luci-app-rosy-file-server",
-               "read": {
-                       "uci": [ "rosyfs" ]
-               },
-               "write": {
-                       "uci": [ "rosyfs" ]
-               }
-       }
-}