Skip to content
Snippets Groups Projects
Commit 2078e86a authored by Karsten Böddeker's avatar Karsten Böddeker
Browse files

ffho-luci-remote-syslog: new package

for configuration of a remote syslog server within expertmode.
parent 7d930bd6
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=ffho-luci-remote-syslog
PKG_VERSION:=1
PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(GLUONDIR)/include/package.mk
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
define Package/ffho-luci-remote-syslog
SECTION:=ffho
CATEGORY:=FFHO
TITLE:=Luci module for setting a remote syslog server
DEPENDS:=+gluon-luci-admin
MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
$(call GluonBuildI18N,ffho-luci-remote-syslog,i18n)
endef
define Package/ffho-luci-remote-syslog/install
$(CP) ./files/* $(1)/
$(call GluonInstallI18N,ffho-luci-remote-syslog,$(1))
endef
$(eval $(call BuildPackage,ffho-luci-remote-syslog))
ffho-luci-remote-syslog
=======================
Luci module for setting a remote syslog server.
module("luci.controller.admin.remote-syslog", package.seeall)
function index()
entry({"admin", "remote-syslog"}, cbi("admin/remote-syslog"), _("Remote Syslog"), 85)
end
m = Map("system", translate("Remote Syslog"), translate(
"If you want to use a remote syslog server, you can set it up here."))
m.pageaction = false
m.template = "admin/expertmode"
s = m:section(TypedSection, "system", nil)
s.addremove = false
s.anonymous = true
o = s:option(Flag, "log_remote", translate("Enable"))
o.rmempty = false
o = s:option(Value, "log_ip", translate("IP"))
o.placeholder = "0.0.0.0"
o.datatype = "ipaddr"
o = s:option(Value, "log_port", translate("Port"))
o.placeholder = 514
o.datatype = "port"
return m
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "If you want to use a remote syslog server, you can set it up here."
msgstr ""
"Wenn du einen Remote-Syslog-Server nutzen möchtest, dann kannst du ihn hier "
"eintragen."
msgid "Remote Syslog"
msgstr "Remote-Syslog"
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "If you want to use a remote syslog server, you can set it up here."
msgstr ""
msgid "Remote Syslog"
msgstr ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment