mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
package zxlhhyccc: add
This commit is contained in:
parent
1a7b5c6e60
commit
50702a48de
58
package/zxlhhyccc/libpciaccess/Makefile
Normal file
58
package/zxlhhyccc/libpciaccess/Makefile
Normal file
@ -0,0 +1,58 @@
|
||||
# Copyright (C) 2019 Lucian Cristian <lucian.cristian@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libpciaccess
|
||||
PKG_VERSION:=0.14
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=https://www.x.org/releases/individual/lib/
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_HASH:=3df543e12afd41fea8eac817e48cbfde5aed8817b81670a4e9e493bb2f5bf2a4
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libpciaccess
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Generic PCI access library
|
||||
URL:=https://xorg.freedesktop.org/
|
||||
endef
|
||||
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--prefix=/usr
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/include \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
||||
$(1)/usr/include/
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libpciaccess/install
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libpciaccess))
|
@ -0,0 +1,28 @@
|
||||
From b6df5202306bd71158b482f25ca2e6919645d4dd Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 4 Jun 2015 20:55:06 -0700
|
||||
Subject: [PATCH 4/4] Don't include sys/io.h on arm
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
src/linux_sysfs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
|
||||
index 3f95e53..1e3aad3 100644
|
||||
--- a/src/linux_sysfs.c
|
||||
+++ b/src/linux_sysfs.c
|
||||
@@ -50,7 +50,7 @@
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
|
||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
|
||||
+#if defined(__i386__) || defined(__x86_64__)
|
||||
#include <sys/io.h>
|
||||
#else
|
||||
#define inb(x) -1
|
||||
--
|
||||
2.1.4
|
||||
|
54
package/zxlhhyccc/librouteros/Makefile
Normal file
54
package/zxlhhyccc/librouteros/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=librouteros
|
||||
PKG_SOURCE_DATE:=2018-07-19
|
||||
PKG_SOURCE_VERSION:=c485c777ffbbbd87c3d72d843af36ba016803cae
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Sven Roederer <devel-sven@geroedel.de>
|
||||
PKG_LICENSE:=ISC
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/octo/librouteros/tar.gz/$(PKG_SOURCE_VERSION)?
|
||||
PKG_HASH:=427e071fe270ff6c08e32a10e5beff2add4205e6c864b142f950efdb8d2245a4
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/librouteros
|
||||
TITLE:=A library that talks to MikroTik devices.
|
||||
URL:=https://octo.github.io/librouteros/
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
endef
|
||||
|
||||
define Package/librouteros/description
|
||||
librouteros is a library to communicate with RouterOS, the operating system of MikroTik's RouterBoards.
|
||||
It uses the API port provided by those systems to connect and talk to the devices. librouteros is a
|
||||
low-level library in that it abstracts the network protocol used but has next to no knowledge about the
|
||||
commands and responses available
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/routeros_*.h $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.{a,la,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/librouteros/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,librouteros))
|
51
package/zxlhhyccc/luci-app-k3usb/Makefile
Normal file
51
package/zxlhhyccc/luci-app-k3usb/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright (C) 2018 XiaoShan mivm.cn
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-k3usb
|
||||
PKG_VERSION:=1.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPLv3
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Shenzt <shenzt@gmail.com>
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=luci
|
||||
CATEGORY:=LuCI
|
||||
SUBMENU:=3. Applications
|
||||
TITLE:=LuCI Support for k3usb3.0 on or off
|
||||
DEPENDS:=@TARGET_bcm53xx_DEVICE_phicomm-k3
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
LuCI Support for k3usb3.0 on or off.
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
$(foreach po,$(wildcard ${CURDIR}/files/luci/i18n/*.po), \
|
||||
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
|
||||
$(INSTALL_DATA) ./files/luci/controller/k3usb.lua $(1)/usr/lib/lua/luci/controller/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/k3usb*.lmo $(1)/usr/lib/lua/luci/i18n/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
|
||||
$(INSTALL_DATA) ./files/luci/model/cbi/k3usb.lua $(1)/usr/lib/lua/luci/model/cbi/
|
||||
$(INSTALL_DIR) $(1)/
|
||||
cp -pR ./files/root/* $(1)/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
@ -0,0 +1,10 @@
|
||||
-- Copyright (C) 2018 XiaoShan mivm.cn
|
||||
|
||||
module("luci.controller.k3usb", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/k3usb") then
|
||||
return
|
||||
end
|
||||
entry({"admin","system","k3usb"}, cbi("k3usb"), _("k3usb"),60)
|
||||
end
|
@ -0,0 +1,19 @@
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
||||
msgid "usb3 enable :"
|
||||
msgstr "USB3 开启:"
|
||||
|
||||
msgid "usb3 mode enable"
|
||||
msgstr "是否开启USB3模式,修改此选项设备将会自动重启"
|
||||
|
||||
msgid "k3usb"
|
||||
msgstr "K3USB管理"
|
||||
|
||||
msgid "k3 usb mode"
|
||||
msgstr "开启或禁用USB3"
|
||||
|
||||
msgid "usb mode"
|
||||
msgstr "USB3管理模式"
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
-- Copyright (C) 2018 XiaoShan mivm.cn
|
||||
|
||||
local m, s ,o
|
||||
|
||||
m = Map("k3usb", translate("k3usb"), translate("k3 usb mode"))
|
||||
|
||||
s = m:section(TypedSection, "config", translate("usb mode") )
|
||||
s.anonymous = true
|
||||
|
||||
o = s:option(Flag, "usb3_enable", translate("usb3 enable :"), translate("usb3 mode enable"))
|
||||
o.default = 1
|
||||
|
||||
return m
|
@ -0,0 +1,3 @@
|
||||
config config usb
|
||||
option usb3_enable '0'
|
||||
|
62
package/zxlhhyccc/luci-app-k3usb/files/root/etc/init.d/k3usb
Executable file
62
package/zxlhhyccc/luci-app-k3usb/files/root/etc/init.d/k3usb
Executable file
@ -0,0 +1,62 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=55
|
||||
STOP=55
|
||||
|
||||
usb3_enable=$(uci get k3usb.usb.usb3_enable 2>/dev/null)
|
||||
|
||||
kernel=$(uname -a | awk '{print $3}')
|
||||
|
||||
boot(){
|
||||
if [ "$usb3_enable" == "1" ]; then
|
||||
#usb3
|
||||
kmodloader /usr/k3usb/45-phy-bcm-ns-usb3
|
||||
kmodloader /usr/k3usb/54-usb3
|
||||
|
||||
#usb2
|
||||
kmodloader /usr/k3usb/35-usb-ehci
|
||||
kmodloader /usr/k3usb/40-usb2
|
||||
kmodloader /usr/k3usb/45-phy-bcm-ns-usb2
|
||||
kmodloader /usr/k3usb/50-usb-ohci
|
||||
|
||||
echo "usb switch to usb3 mode!"
|
||||
else
|
||||
#usb2
|
||||
kmodloader /usr/k3usb/35-usb-ehci
|
||||
kmodloader /usr/k3usb/40-usb2
|
||||
kmodloader /usr/k3usb/45-phy-bcm-ns-usb2
|
||||
kmodloader /usr/k3usb/50-usb-ohci
|
||||
echo "usb switch to usb2 mode!"
|
||||
fi
|
||||
|
||||
kmodloader /usr/k3usb/usb-storage
|
||||
kmodloader /usr/k3usb/usb-storage-extras
|
||||
|
||||
}
|
||||
|
||||
|
||||
start(){
|
||||
if [ "$usb3_enable" == "1" ]; then
|
||||
if [ -z "$(lsmod | grep usb3)" ]; then
|
||||
echo "usb change to usb3 mode, will reboot!"
|
||||
reboot
|
||||
else
|
||||
echo "usb mode is usb3 , nothing to do"
|
||||
fi
|
||||
else
|
||||
if [ -n "$(lsmod | grep usb3)" ]; then
|
||||
echo "usb change usb2 mode, will reboot!"
|
||||
reboot
|
||||
else
|
||||
echo "usb mode is usb2 , nothing to do"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
stop(){
|
||||
echo "nothing do"
|
||||
}
|
||||
|
||||
restart(){
|
||||
start
|
||||
}
|
10
package/zxlhhyccc/luci-app-k3usb/files/root/etc/uci-defaults/k3usb
Executable file
10
package/zxlhhyccc/luci-app-k3usb/files/root/etc/uci-defaults/k3usb
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@k3usb[-1]
|
||||
add ucitrack k3usb
|
||||
set ucitrack.@k3usb[-1].init=k3usb
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
exit 0
|
@ -0,0 +1 @@
|
||||
ehci-hcd
|
@ -0,0 +1,4 @@
|
||||
ehci-hcd
|
||||
ehci-platform
|
||||
ehci-orion
|
||||
ehci-atmel
|
@ -0,0 +1 @@
|
||||
phy-bcm-ns-usb2
|
@ -0,0 +1 @@
|
||||
phy-bcm-ns-usb3
|
@ -0,0 +1,3 @@
|
||||
ohci-hcd
|
||||
ohci-platform
|
||||
ohci-at91
|
@ -0,0 +1,3 @@
|
||||
xhci-hcd
|
||||
xhci-pci
|
||||
xhci-plat-hcd
|
@ -0,0 +1 @@
|
||||
usb-storage
|
@ -0,0 +1,10 @@
|
||||
ums-alauda
|
||||
ums-cypress
|
||||
ums-datafab
|
||||
ums-freecom
|
||||
ums-isd200
|
||||
ums-jumpshot
|
||||
ums-karma
|
||||
ums-sddr09
|
||||
ums-sddr55
|
||||
ums-usbat
|
17
package/zxlhhyccc/luci-app-syncthing/Makefile
Normal file
17
package/zxlhhyccc/luci-app-syncthing/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright (C) 2016 Openwrt.org
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI support for syncthing
|
||||
LUCI_DEPENDS:=+syncthing
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
@ -0,0 +1,18 @@
|
||||
|
||||
module("luci.controller.syncthing", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/syncthing") then
|
||||
return
|
||||
end
|
||||
|
||||
entry({"admin", "nas", "syncthing"}, cbi("syncthing"), _("Syncthing"), 10).dependent = true
|
||||
entry({"admin","nas","syncthing","status"},call("act_status")).leaf=true
|
||||
end
|
||||
|
||||
function act_status()
|
||||
local e={}
|
||||
e.running=luci.sys.call("pgrep syncthing >/dev/null")==0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
@ -0,0 +1,19 @@
|
||||
-- Copyright 2008 Yanira <forum-2008@email.de>
|
||||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
require("nixio.fs")
|
||||
|
||||
m = Map("syncthing", translate("SyncThing Synchronization Tool"))
|
||||
|
||||
m:section(SimpleSection).template = "syncthing/syncthing_status"
|
||||
|
||||
s = m:section(TypedSection, "setting", translate("Settings"))
|
||||
s.anonymous = true
|
||||
|
||||
s:option(Flag, "enabled", translate("Enable"))
|
||||
|
||||
s:option(Value, "port", translate("port")).default = 8384
|
||||
s.rmempty = true
|
||||
|
||||
|
||||
return m
|
@ -0,0 +1,22 @@
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
XHR.poll(1, '<%=url([[admin]], [[nas]], [[syncthing]], [[status]])%>', null,
|
||||
function(x, data) {
|
||||
var tb = document.getElementById('syncthing_status');
|
||||
if (data && tb) {
|
||||
if (data.running) {
|
||||
var links = '<font color=green><%:RUNNING%></font>';
|
||||
tb.innerHTML = links;
|
||||
} else {
|
||||
tb.innerHTML = '<font color=red><%:NOT RUNNING%></font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
//]]>
|
||||
</script>
|
||||
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
||||
<fieldset class="cbi-section">
|
||||
<p id="syncthing_status">
|
||||
<em><%:Collecting data...%></em>
|
||||
</p>
|
||||
</fieldset>
|
11
package/zxlhhyccc/luci-app-syncthing/po/zh-cn/syncthing.po
Normal file
11
package/zxlhhyccc/luci-app-syncthing/po/zh-cn/syncthing.po
Normal file
@ -0,0 +1,11 @@
|
||||
msgid "Syncthing"
|
||||
msgstr "储存同步"
|
||||
|
||||
msgid "SyncThing Synchronization Tool"
|
||||
msgstr "syncthing同步工具"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
|
||||
config setting 'config'
|
||||
option enabled '0'
|
||||
option port '8384'
|
43
package/zxlhhyccc/luci-app-syncthing/root/etc/init.d/syncthing
Executable file
43
package/zxlhhyccc/luci-app-syncthing/root/etc/init.d/syncthing
Executable file
@ -0,0 +1,43 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=50
|
||||
|
||||
run_syncthing()
|
||||
{
|
||||
local enabled
|
||||
config_get_bool enabled $1 enabled
|
||||
if [ $enabled = 1 ]; then
|
||||
local port
|
||||
config_get port $1 port
|
||||
state=`pgrep syncthing | wc -l`
|
||||
if [ $state = 0 ] ; then
|
||||
export HOME="/root"
|
||||
syncthing -gui-address="0.0.0.0:$port" -logfile="/var/log/syncthing.log" -no-browser >/dev/null &
|
||||
echo "启动中..."
|
||||
start=`pgrep syncthing | wc -l`
|
||||
if [ $start = 0 ] ; then
|
||||
echo "启动失败"
|
||||
else
|
||||
echo "启动成功"
|
||||
fi
|
||||
else
|
||||
echo "已在运行"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
config_load syncthing
|
||||
config_foreach run_syncthing setting
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
kill -9 `pgrep syncthing`
|
||||
stop=`pgrep syncthing | wc -l`
|
||||
if [ $stop = 0 ] ; then
|
||||
echo "已停止运行"
|
||||
else
|
||||
echo "未停止运行"
|
||||
fi
|
||||
}
|
12
package/zxlhhyccc/luci-app-syncthing/root/etc/uci-defaults/luci-syncthing
Executable file
12
package/zxlhhyccc/luci-app-syncthing/root/etc/uci-defaults/luci-syncthing
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
touch /etc/config/syncthing
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@syncthing[-1]
|
||||
add ucitrack syncthing
|
||||
set ucitrack.@syncthing[-1].exec='/etc/init.d/syncthing restart'
|
||||
commit ucitrack
|
||||
EOF
|
||||
# remove LuCI cache
|
||||
rm -f /tmp/luci*
|
||||
exit 0
|
16
package/zxlhhyccc/luci-app-verysync/Makefile
Normal file
16
package/zxlhhyccc/luci-app-verysync/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2016 Openwrt.org
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI support for Verysync
|
||||
LUCI_DEPENDS:=+verysync
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=4
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
@ -0,0 +1,17 @@
|
||||
module("luci.controller.verysync", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/verysync") then
|
||||
return
|
||||
end
|
||||
|
||||
entry({"admin", "nas", "verysync"}, cbi("verysync"), _("Verysync"), 10).dependent = true
|
||||
entry({"admin","nas","verysync","status"},call("act_status")).leaf=true
|
||||
end
|
||||
|
||||
function act_status()
|
||||
local e={}
|
||||
e.running=luci.sys.call("pgrep verysync >/dev/null")==0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
@ -0,0 +1,24 @@
|
||||
-- Copyright 2008 Yanira <forum-2008@email.de>
|
||||
-- Copyright 2020 KFERMercer <KFER.Mercer@gmail.com>
|
||||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
m = Map("verysync")
|
||||
m.title = translate("Verysync")
|
||||
m.description = translate("Simple and easy-to-use multi-platform file synchronization software, astonishing transmission speed is different from the greatest advantage of other products. Micro-force synchronization of intelligent P2P technology to accelerate synchronization, will split the file into several KB-only data synchronization, and the file will be AES encryption processing.")
|
||||
|
||||
m:section(SimpleSection).template = "verysync/verysync_status"
|
||||
|
||||
s = m:section(TypedSection, "verysync")
|
||||
s.addremove = false
|
||||
s.anonymous = true
|
||||
|
||||
o = s:option(Flag, "enabled", translate("Enable"))
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "port", translate("Port"))
|
||||
o.datatype = "port"
|
||||
o.placeholder = "8886"
|
||||
o.default = "8886"
|
||||
o.rmempty = false
|
||||
|
||||
return m
|
@ -0,0 +1,33 @@
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
XHR.poll(3, '<%=url([[admin]], [[nas]], [[verysync]], [[status]])%>', null,
|
||||
function(x, data) {
|
||||
var tb = document.getElementById('verysync_status');
|
||||
|
||||
if (data && tb) {
|
||||
if (data.running) {
|
||||
var links = '<em><b><font color=green>Verysync <%:RUNNING%></font></b></em><input class="cbi-button mar-10" type="button" value="<%:Open Verysync page%>" onclick="openClient();" />';
|
||||
tb.innerHTML = links;
|
||||
} else {
|
||||
tb.innerHTML = '<em><b><font color=red>Verysync <%:NOT RUNNING%></font></b></em>';
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
function openClient() {
|
||||
var curWwwPath = window.document.location.href;
|
||||
var pathName = window.document.location.pathname;
|
||||
var pos = curWwwPath.indexOf(pathName);
|
||||
var localhostPath = curWwwPath.substring(0, pos);
|
||||
var clientPort = window.document.getElementById("cbid.verysync.config.port").value
|
||||
var url = "http:" + localhostPath.substring(window.location.protocol.length) + ":" + clientPort;
|
||||
window.open(url)
|
||||
};
|
||||
//]]>
|
||||
</script>
|
||||
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
||||
<fieldset class="cbi-section">
|
||||
<p id="verysync_status">
|
||||
<em><%:Collecting data...%></em>
|
||||
</p>
|
||||
</fieldset>
|
8
package/zxlhhyccc/luci-app-verysync/po/zh-cn/verysync.po
Normal file
8
package/zxlhhyccc/luci-app-verysync/po/zh-cn/verysync.po
Normal file
@ -0,0 +1,8 @@
|
||||
msgid "Verysync"
|
||||
msgstr "微力同步"
|
||||
|
||||
msgid "Simple and easy-to-use multi-platform file synchronization software, astonishing transmission speed is different from the greatest advantage of other products. Micro-force synchronization of intelligent P2P technology to accelerate synchronization, will split the file into several KB-only data synchronization, and the file will be AES encryption processing."
|
||||
msgstr "简单易用的多平台文件同步软件, 惊人的传输速度是不同于其他产品的最大优势. 微力同步的智能 P2P 加速同步技术会将文件分割成若干份仅 KB 的数据进行传输, 同时会使用 AES 加密处理."
|
||||
|
||||
msgid "Open Verysync page"
|
||||
msgstr "打开微力同步页面"
|
@ -0,0 +1,2 @@
|
||||
|
||||
config verysync 'config'
|
17
package/zxlhhyccc/luci-app-verysync/root/etc/init.d/verysync
Executable file
17
package/zxlhhyccc/luci-app-verysync/root/etc/init.d/verysync
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=50
|
||||
STOP=10
|
||||
|
||||
start() {
|
||||
local enabled="$(uci get verysync.config.enabled)"
|
||||
local port="$(uci get verysync.config.port)"
|
||||
stop
|
||||
[ "${enabled}" == "1" ] || exit 0
|
||||
export HOME="/root/"
|
||||
verysync -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="/etc/verysync/" -no-browser >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pgrep verysync` >/dev/null 2>&1
|
||||
}
|
11
package/zxlhhyccc/luci-app-verysync/root/etc/uci-defaults/luci-verysync
Executable file
11
package/zxlhhyccc/luci-app-verysync/root/etc/uci-defaults/luci-verysync
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@verysync[-1]
|
||||
add ucitrack verysync
|
||||
set ucitrack.@verysync[-1].init=verysync
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
BIN
package/zxlhhyccc/luci-app-verysync/root/usr/bin/verysync
Normal file
BIN
package/zxlhhyccc/luci-app-verysync/root/usr/bin/verysync
Normal file
Binary file not shown.
16
package/zxlhhyccc/luci-app-xunlei/Makefile
Normal file
16
package/zxlhhyccc/luci-app-xunlei/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI Support for Xware downloading app.
|
||||
LUCI_DEPENDS:=@arm +wget
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
@ -0,0 +1,13 @@
|
||||
|
||||
module("luci.controller.xunlei", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/xunlei") then
|
||||
return
|
||||
end
|
||||
|
||||
local page
|
||||
page = entry({"admin", "services", "xunlei"}, cbi("xunlei"), _("迅雷远程下载"), 199)
|
||||
page.i18n = "xunlei"
|
||||
page.dependent = true
|
||||
end
|
106
package/zxlhhyccc/luci-app-xunlei/luasrc/model/cbi/xunlei.lua
Normal file
106
package/zxlhhyccc/luci-app-xunlei/luasrc/model/cbi/xunlei.lua
Normal file
@ -0,0 +1,106 @@
|
||||
local fs = require "nixio.fs"
|
||||
local util = require "nixio.util"
|
||||
|
||||
local running=(luci.sys.call("pidof EmbedThunderManager > /dev/null") == 0)
|
||||
local button=""
|
||||
local xunleiinfo=""
|
||||
local tblXLInfo={}
|
||||
local detailInfo = "<br />启动后会看到类似如下信息:<br /><br />[ 0, 1, 1, 0, “7DHS94”,1, “201_2.1.3.121”, “shdixang”, 1 ]<br /><br />其中有用的几项为:<br /><br />第一项: 0表示返回结果成功;<br /><br />第二项: 1表示检测网络正常,0表示检测网络异常;<br /><br />第四项: 1表示已绑定成功,0表示未绑定;<br /><br />第五项: 未绑定的情况下,为绑定的需要的激活码;<br /><br />第六项: 1表示磁盘挂载检测成功,0表示磁盘挂载检测失败。"
|
||||
|
||||
if running then
|
||||
xunleiinfo = luci.sys.exec("wget-ssl http://127.0.0.1:9000/getsysinfo -O - 2>/dev/null")
|
||||
m = Map("xunlei", translate("Xware"), translate("<strong><font color=\"green\">迅雷远程下载 运行中</font></strong>"))
|
||||
string.gsub(string.sub(xunleiinfo, 2, -2),'[^,]+',function(w) table.insert(tblXLInfo, w) end)
|
||||
|
||||
detailInfo = [[<p>启动信息:]] .. xunleiinfo .. [[</p>]]
|
||||
if tonumber(tblXLInfo[1]) == 0 then
|
||||
detailInfo = detailInfo .. [[<p>状态正常</p>]]
|
||||
else
|
||||
detailInfo = detailInfo .. [[<p style="color:red">执行异常</p>]]
|
||||
end
|
||||
|
||||
if tonumber(tblXLInfo[2]) == 0 then
|
||||
detailInfo = detailInfo .. [[<p style="color:red">网络异常</p>]]
|
||||
else
|
||||
detailInfo = detailInfo .. [[<p>网络正常</p>]]
|
||||
end
|
||||
|
||||
if tonumber(tblXLInfo[4]) == 0 then
|
||||
detailInfo = detailInfo .. [[<p>未绑定]].. [[ 激活码:]].. tblXLInfo[5] ..[[</p>]]
|
||||
else
|
||||
detailInfo = detailInfo .. [[<p>已绑定</p>]]
|
||||
end
|
||||
|
||||
if tonumber(tblXLInfo[6]) == 0 then
|
||||
detailInfo = detailInfo .. [[<p style="color:red">磁盘挂载检测失败</p>]]
|
||||
else
|
||||
detailInfo = detailInfo .. [[<p>磁盘挂载检测成功</p>]]
|
||||
end
|
||||
else
|
||||
m = Map("xunlei", translate("Xware"), translate("<strong><font color=\"red\">迅雷远程下载 未运行</font></strong>"))
|
||||
end
|
||||
|
||||
-----------
|
||||
--Xware--
|
||||
-----------
|
||||
|
||||
s = m:section(TypedSection, "xunlei","Xware 设置")
|
||||
s.anonymous = true
|
||||
|
||||
s:tab("basic", translate("Settings"))
|
||||
|
||||
enable = s:taboption("basic", Flag, "enable", "启用 迅雷远程下载")
|
||||
enable.rmempty = false
|
||||
|
||||
vod = s:taboption("basic", Flag, "vod", "删除迅雷VOD服务器", "删除迅雷VOD服务器,减少上传流量。")
|
||||
vod.rmempty = false
|
||||
|
||||
s:taboption("basic", DummyValue,"opennewwindow" ,"<br /><p align=\"justify\"><script type=\"text/javascript\"></script><input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"获取启动信息\" onclick=\"window.open('http://'+window.location.host+':9000/getsysinfo')\" /></p>", detailInfo)
|
||||
|
||||
s:taboption("basic", DummyValue,"opennewwindow" ,"<br /><p align=\"justify\"><script type=\"text/javascript\"></script><input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"迅雷远程下载页面\" onclick=\"window.open('http://yuancheng.xunlei.com')\" /></p>", "<br />打开迅雷远程下载页面。首次运行将激活码填进网页即可绑定。")
|
||||
|
||||
|
||||
s:tab("editconf_etm", translate("Xware 配置"))
|
||||
editconf_etm = s:taboption("editconf_etm", Value, "_editconf_etm",
|
||||
translate("Xware 配置:"),
|
||||
translate("注释用“ ; ”"))
|
||||
editconf_etm.template = "cbi/tvalue"
|
||||
editconf_etm.rows = 20
|
||||
editconf_etm.wrap = "off"
|
||||
|
||||
function editconf_etm.cfgvalue(self, section)
|
||||
return fs.readfile("/tmp/etc/etm.cfg") or ""
|
||||
end
|
||||
function editconf_etm.write(self, section, value2)
|
||||
if value2 then
|
||||
value2 = value2:gsub("\r\n?", "\n")
|
||||
fs.writefile("/tmp/etm.cfg", value2)
|
||||
if (luci.sys.call("cmp -s /tmp/etm.cfg /tmp/etc/etm.cfg") == 1) then
|
||||
fs.writefile("/tmp/etc/etm.cfg", value2)
|
||||
end
|
||||
fs.remove("/tmp/etm.cfg")
|
||||
end
|
||||
end
|
||||
|
||||
s:tab("editconf_download", translate("下载配置"))
|
||||
editconf_download = s:taboption("editconf_download", Value, "_editconf_download",
|
||||
translate("下载配置"),
|
||||
translate("注释用“ ; ”"))
|
||||
editconf_download.template = "cbi/tvalue"
|
||||
editconf_download.rows = 20
|
||||
editconf_download.wrap = "off"
|
||||
|
||||
function editconf_download.cfgvalue(self, section)
|
||||
return fs.readfile("/tmp/etc/download.cfg") or ""
|
||||
end
|
||||
function editconf_download.write(self, section, value3)
|
||||
if value3 then
|
||||
value3 = value3:gsub("\r\n?", "\n")
|
||||
fs.writefile("/tmp/download.cfg", value3)
|
||||
if (luci.sys.call("cmp -s /tmp/download.cfg /tmp/etc/download.cfg") == 1) then
|
||||
fs.writefile("/tmp/etc/download.cfg", value3)
|
||||
end
|
||||
fs.remove("/tmp/download.cfg")
|
||||
end
|
||||
end
|
||||
return m
|
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/ETMDaemon
Executable file
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/ETMDaemon
Executable file
Binary file not shown.
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/EmbedThunderManager
Executable file
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/EmbedThunderManager
Executable file
Binary file not shown.
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/portal
Executable file
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/portal
Executable file
Binary file not shown.
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/vod_httpserver
Executable file
BIN
package/zxlhhyccc/luci-app-xunlei/root/app/xunlei/vod_httpserver
Executable file
Binary file not shown.
10
package/zxlhhyccc/luci-app-xunlei/root/etc/config/xunlei
Normal file
10
package/zxlhhyccc/luci-app-xunlei/root/etc/config/xunlei
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
config xunlei 'config'
|
||||
option device '/mnt/sda1'
|
||||
option up '0'
|
||||
option xware 'Xware_mipseb_32_uclibc.tar.gz'
|
||||
option url 'http://dl.lazyzhu.com/file/Thunder/Xware'
|
||||
option file '/app'
|
||||
option vod '1'
|
||||
option enable '0'
|
||||
|
49
package/zxlhhyccc/luci-app-xunlei/root/etc/init.d/xunlei
Executable file
49
package/zxlhhyccc/luci-app-xunlei/root/etc/init.d/xunlei
Executable file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=99
|
||||
|
||||
start() {
|
||||
config_load "xunlei"
|
||||
|
||||
config_get enable config enable 0
|
||||
config_get device config device
|
||||
config_get up config up 0
|
||||
config_get file config file
|
||||
|
||||
device=$(uci get xunlei.config.device)
|
||||
file=$(uci get xunlei.config.file)
|
||||
vod=$(uci get xunlei.config.vod)
|
||||
mountpoint="`mount | grep "$device" | awk '{print $3;exit}'`"
|
||||
|
||||
rm -f /tmp/etc/thunder_mounts.cfg
|
||||
rm -f /tmp/etc/etm.cfg
|
||||
rm -f /tmp/etc/download.cfg
|
||||
|
||||
path1="$file/xunlei/cfg/thunder_mounts.cfg"
|
||||
path2="$file/xunlei/cfg/etm.cfg"
|
||||
path3="$file/xunlei/cfg/download.cfg"
|
||||
|
||||
[ "$up" -eq 1 ] && /etc/xware/xlup && /etc/xware/cfg
|
||||
[ "$vod" -eq 1 ] && rm -f $file/xunlei/lib/vod_httpserver
|
||||
[ "$vod" -eq 1 ] && rm -f $file/xunlei/vod_httpserver
|
||||
|
||||
[ "$enable" -eq 0 ] && exit 0
|
||||
|
||||
ln -s "$path1" /tmp/etc/thunder_mounts.cfg
|
||||
ln -s "$path2" /tmp/etc/etm.cfg
|
||||
ln -s "$path3" /tmp/etc/download.cfg
|
||||
|
||||
$file/xunlei/portal
|
||||
sleep 3
|
||||
renice -n 19 $(pidof EmbedThunderManager)
|
||||
}
|
||||
|
||||
stop() {
|
||||
file=$(uci get xunlei.config.file)
|
||||
$file/xunlei/portal -s
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
11
package/zxlhhyccc/luci-app-xunlei/root/etc/uci-defaults/luci-xunlei
Executable file
11
package/zxlhhyccc/luci-app-xunlei/root/etc/uci-defaults/luci-xunlei
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@xunlei[-1]
|
||||
add ucitrack xunlei
|
||||
set ucitrack.@xunlei[-1].init=xunlei
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcahe
|
||||
exit 0
|
18
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/cfg
Executable file
18
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/cfg
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
device=$(uci get xunlei.config.device)
|
||||
file=$(uci get xunlei.config.file)
|
||||
mountpoint="`mount | grep "$device" | awk '{print $3;exit}'`"
|
||||
|
||||
[ -f "$file/xunlei/cfg/thunder_mounts.cfg" ] && cfg="$file/xunlei/cfg/thunder_mounts.cfg"
|
||||
[ ! -f "$cfg" ] && {
|
||||
cfg="/$file/xunlei/cfg/thunder_mounts.cfg"
|
||||
|
||||
cat > "$cfg" << EOF
|
||||
avaliable_mount_path_pattern
|
||||
{
|
||||
$mountpoint
|
||||
}
|
||||
|
||||
EOF
|
||||
}
|
10
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/xlatest
Executable file
10
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/xlatest
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
VERSION=`wget -qO- http://dl.lazyzhu.com/file/Thunder/Xware/latest`
|
||||
sleep 3 && killall wget
|
||||
xl_configfile="/tmp/etc/xlver"
|
||||
[ ! -f "$xl_configfile" ] && touch "$xl_configfile"
|
||||
cat > "$xl_configfile" << EOF
|
||||
$VERSION
|
||||
EOF
|
||||
|
43
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/xlup
Executable file
43
package/zxlhhyccc/luci-app-xunlei/root/etc/xware/xlup
Executable file
@ -0,0 +1,43 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
device=$(uci get xunlei.config.device)
|
||||
file=$(uci get xunlei.config.file)
|
||||
mountpoint="`mount | grep "$device" | awk '{print $3;exit}'`"
|
||||
DIR=$file/xunlei
|
||||
$DIR/portal -s
|
||||
sleep 1
|
||||
mkdir -p ${DIR}/cfg
|
||||
cd ${DIR}
|
||||
FILES=$(uci get xunlei.config.xware)
|
||||
ver=$(uci get xunlei.config.ver)
|
||||
url=$(uci get xunlei.config.url)
|
||||
zversion=$(uci get xunlei.config.zversion)
|
||||
VERSION=$(wget --no-check-certificate -O- ${url}/latest)
|
||||
|
||||
{
|
||||
if [ "$zversion" -eq 1 ];then
|
||||
wget --no-check-certificate ${url}/${ver}/${FILES}
|
||||
else
|
||||
wget --no-check-certificate ${url}/${VERSION}/${FILES}
|
||||
fi
|
||||
}
|
||||
|
||||
{
|
||||
xl_configfile="/tmp/etc/xlver"
|
||||
[ ! -f "$xl_configfile" ] && touch "$xl_configfile"
|
||||
|
||||
cat > "$xl_configfile" << EOF
|
||||
$VERSION
|
||||
EOF
|
||||
}
|
||||
|
||||
rm -rf $DIR/portal && rm -rf $DIR/lib && tar zxvf ${FILES}
|
||||
chmod +x $DIR/* && chmod +x $DIR/lib/*
|
||||
rm -rf ${FILES}
|
||||
rm -rf $file/xunlei/cfg/thunder_mounts.cfg>> /dev/null 2>&1
|
||||
uci set xunlei.config.up=0>> /dev/null 2>&1
|
||||
uci commit 2>&1 > /dev/null
|
||||
vod=$(uci get xunlei.config.vod)
|
||||
[ "$vod" -eq 1 ] && rm -f "$file"/xunlei/vod_httpserver
|
||||
[ "$vod" -eq 1 ] && rm -f "$file"/xunlei/lib/vod_httpserver
|
||||
sleep 3 && killall wget
|
63
package/zxlhhyccc/pfring/Makefile
Normal file
63
package/zxlhhyccc/pfring/Makefile
Normal file
@ -0,0 +1,63 @@
|
||||
#
|
||||
# Copyright (C) 2017 Banglang Huang
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=pf-ring
|
||||
PKG_VERSION:=7.4.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=e1c9cb44d8072854220f493c56fa5cba99a6b8336883939dc18b3e30c2954b68
|
||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/PF_RING-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
CONFIGURE_PATH:=kernel
|
||||
MAKE_PATH:=kernel
|
||||
|
||||
define KernelPackage/pf-ring
|
||||
SUBMENU:=Network Support
|
||||
TITLE:=PF_RING Kernel driver
|
||||
FILES:=$(PKG_BUILD_DIR)/kernel/pf_ring.ko
|
||||
AUTOLOAD:=$(call AutoLoad,90,pf_ring,1)
|
||||
endef
|
||||
|
||||
define KernelPackage/pf-ring/description
|
||||
Kernel module for libpf-ring package
|
||||
endef
|
||||
|
||||
EXTRA_CFLAGS += \
|
||||
-I$(PKG_BUILD_DIR)/kernel
|
||||
|
||||
MAKE_OPTS := \
|
||||
ARCH="$(LINUX_KARCH)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
SUBDIRS="$(PKG_BUILD_DIR)/kernel" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)"
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/linux
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/linux/*.h $(1)/usr/include/linux
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
+$(MAKE) -C "$(LINUX_DIR)" \
|
||||
$(MAKE_OPTS) \
|
||||
modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,pf-ring))
|
63
package/zxlhhyccc/phicomm-k3screenctrl/Makefile
Normal file
63
package/zxlhhyccc/phicomm-k3screenctrl/Makefile
Normal file
@ -0,0 +1,63 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=phicomm-k3screenctrl
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
#PKG_SOURCE_URL:=https://github.com/Hill-98/k3screenctrl
|
||||
#PKG_SOURCE_VERSION:=3257090decf7de1e70ef6e7bf28d0491ffe78854
|
||||
PKG_SOURCE_URL:=https://github.com/zxlhhyccc/Hill-98-k3screenctrl.git
|
||||
PKG_SOURCE_VERSION:=81c1cb35022082262c28e87b5b0d7141d0d2432b
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
|
||||
PKG_MAINTAINER:=Hamster Tian <haotia@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
TARGET_CFLAGS+= -D_GNU_SOURCE
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=@TARGET_bcm53xx_DEVICE_phicomm-k3 +@BUSYBOX_CONFIG_ARPING +@KERNEL_DEVMEM +bash +bc +jq +@BUSYBOX_CONFIG_ARP +@BUSYBOX_CONFIG_OD
|
||||
TITLE:=LCD screen controller on PHICOMM K3
|
||||
URL:=https://github.com/zxlhhyccc/Hill-98-k3screenctrl
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
K3 Screen Controller (k3screenctrl) is a program utilizing
|
||||
the LCD screen on PHICOMM K3 to display some stats.
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
#!/bin/sh
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
if [ -f /etc/uci-defaults/k3screenctrl ]; then
|
||||
( . /etc/uci-defaults/k3screenctrl ) && \
|
||||
rm -f /etc/uci-defaults/k3screenctrl
|
||||
fi
|
||||
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/lib/k3screenctrl
|
||||
$(INSTALL_DIR) $(1)/lib/k3screenctrl/oui
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/k3screenctrl $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/*.sh $(1)/lib/k3screenctrl/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/oui/update_oui.sh $(1)/lib/k3screenctrl/oui/
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/k3screenctrl/oui/oui.txt $(1)/lib/k3screenctrl/oui/
|
||||
$(INSTALL_DATA) ./files/k3screenctrl.config $(1)/etc/config/k3screenctrl
|
||||
$(INSTALL_BIN) ./files/k3screenctrl.init $(1)/etc/init.d/k3screenctrl
|
||||
$(INSTALL_BIN) ./files/k3screenctrl.uci $(1)/etc/uci-defaults/k3screenctrl
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
@ -0,0 +1,11 @@
|
||||
config general
|
||||
option screen_time '10'
|
||||
option refresh_time '5'
|
||||
option pawd_hide '1'
|
||||
option disp_cputemp '1'
|
||||
option psk_hide '1'
|
||||
option cputemp '1'
|
||||
option city_checkip '1'
|
||||
option update_time '3600'
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=99
|
||||
|
||||
SCRIPTS_BASE=/lib/k3screenctrl/
|
||||
TEMP_DIR=/tmp/k3screenctrl
|
||||
|
||||
start() {
|
||||
[ -z "$(grep "/lib/k3screenctrl/oui/update_oui.sh" /etc/crontabs/root)" ] && echo "0 6 * * * /lib/k3screenctrl/oui/update_oui.sh" >> /etc/crontabs/root
|
||||
mkdir -p $TEMP_DIR
|
||||
mkdir -p $TEMP_DIR/device_speed
|
||||
[ -z "$(iptables --list | grep K3_SEREEN_U)" ] && iptables -N K3_SEREEN_U
|
||||
[ -z "$(iptables --list | grep K3_SEREEN_D)" ] && iptables -N K3_SEREEN_D
|
||||
$SCRIPTS_BASE"device_custom.sh"
|
||||
$SCRIPTS_BASE"device_online.sh" &
|
||||
# [ -z "$(grep "/lib/k3screenctrl/device_online.sh" /etc/crontabs/root)" ] && echo "*/5 * * * * /lib/k3screenctrl/device_online.sh" >> /etc/crontabs/root
|
||||
m=$(uci get k3screenctrl.@general[0].screen_time) && [ $m -lt 10 ] && m=10
|
||||
d=$(uci get k3screenctrl.@general[0].refresh_time) && [ $d -lt 2 ] && d=2
|
||||
/usr/bin/k3screenctrl -m $m -d $d &
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall k3screenctrl device_online.sh
|
||||
kill -9 $(pidof device_online.sh) >/dev/null 2>&1
|
||||
rm -rf $TEMP_DIR
|
||||
}
|
8
package/zxlhhyccc/phicomm-k3screenctrl/files/k3screenctrl.uci
Executable file
8
package/zxlhhyccc/phicomm-k3screenctrl/files/k3screenctrl.uci
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@k3screenctrl[-1]
|
||||
add ucitrack k3screenctrl
|
||||
set ucitrack.@k3screenctrl[-1].init=k3screenctrl
|
||||
commit ucitrack
|
||||
EOF
|
||||
exit 0
|
65
package/zxlhhyccc/syncthing/Makefile
Normal file
65
package/zxlhhyccc/syncthing/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
PKG_ARCH_SYNCTHING:=amd64
|
||||
endif
|
||||
ifeq ($(ARCH),mipsel)
|
||||
PKG_ARCH_SYNCTHING:=mipsle
|
||||
endif
|
||||
ifeq ($(ARCH),mips)
|
||||
PKG_ARCH_SYNCTHING:=mips
|
||||
endif
|
||||
ifeq ($(ARCH),i386)
|
||||
PKG_ARCH_SYNCTHING:=386
|
||||
endif
|
||||
ifeq ($(ARCH),arm)
|
||||
PKG_ARCH_SYNCTHING:=arm
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
PKG_ARCH_SYNCTHING:=arm64
|
||||
endif
|
||||
|
||||
PKG_NAME:=syncthing
|
||||
PKG_VERSION:=v1.3.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-linux-$(PKG_ARCH_SYNCTHING)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/$(PKG_VERSION)
|
||||
PKG_HASH:=skip
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A continuous file synchronization program
|
||||
DEPENDS:=
|
||||
URL:=https://github.com/syncthing/syncthing
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Syncthing is a continuous file synchronization program.
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
tar -xzvf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)-linux-$(PKG_ARCH_SYNCTHING)-$(PKG_VERSION)/syncthing $(1)/usr/bin/syncthing
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
17
package/zxlhhyccc/tvheadend/Config.in
Normal file
17
package/zxlhhyccc/tvheadend/Config.in
Normal file
@ -0,0 +1,17 @@
|
||||
config TVHEADEND_NDMS_CWC_SUPPORT
|
||||
bool "NewCamd support"
|
||||
default y
|
||||
|
||||
config TVHEADEND_NDMS_LINUXDVB_SUPPORT
|
||||
bool "Linux DVB support"
|
||||
default y
|
||||
|
||||
config TVHEADEND_NDMS_DVBSCAN_SUPPORT
|
||||
bool "Fetch DVB-scan data"
|
||||
depends on TVHEADEND_NDMS_LINUXDVB_SUPPORT
|
||||
default TVHEADEND_NDMS_LINUXDVB_SUPPORT
|
||||
|
||||
config TVHEADEND_NDMS_AVAHI_SUPPORT
|
||||
bool "Avahi client support"
|
||||
select PACKAGE_libavahi-client
|
||||
default n
|
131
package/zxlhhyccc/tvheadend/Makefile
Normal file
131
package/zxlhhyccc/tvheadend/Makefile
Normal file
@ -0,0 +1,131 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tvheadend
|
||||
PKG_VERSION:=4.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=d91f71cfbe0016350dbb3853a42ac4b226d8d47b
|
||||
# This is stable git version...
|
||||
# PKG_SOURCE_VERSION:=1a0262f5870e4fabd6b9c70a7bf2ebe420bc956e
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/505575853/tvheadend.git
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
PKG_LICENSE_FILES:=LICENSE.md
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
SHORT_GIT_VER:=$(shell echo $(PKG_SOURCE_VERSION) | cut -b -7)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/tvheadend
|
||||
SECTION:=multimedia
|
||||
CATEGORY:=Multimedia
|
||||
TITLE:=Tvheadend is a TV streaming server for Linux
|
||||
DEPENDS:=+libopenssl +librt +zlib +libpcre +libpcre2 +libdvbcsa +TVHEADEND_AVAHI_SUPPORT:libavahi-client $(ICONV_DEPENDS)
|
||||
URL:=https://tvheadend.org
|
||||
MAINTAINER:=Jan Čermák <jan.cermak@nic.cz>
|
||||
endef
|
||||
|
||||
define Package/tvheadend/description
|
||||
Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android
|
||||
supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, SAT>IP and HDHomeRun as input sources.
|
||||
|
||||
Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming.
|
||||
endef
|
||||
|
||||
define Package/tvheadend/config
|
||||
menu "Configuration"
|
||||
depends on PACKAGE_tvheadend
|
||||
source "$(SOURCE)/Config.in"
|
||||
endmenu
|
||||
endef
|
||||
|
||||
ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),)
|
||||
CONFIGURE_ARGS += --disable-cwc
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),)
|
||||
CONFIGURE_ARGS += --disable-linuxdvb
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),)
|
||||
CONFIGURE_ARGS += --disable-dvbscan
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),)
|
||||
CONFIGURE_ARGS += --disable-avahi
|
||||
else
|
||||
CONFIGURE_ARGS += --enable-avahi
|
||||
endif
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--arch=$(ARCH) \
|
||||
--disable-dbus_1 \
|
||||
--disable-libav \
|
||||
--enable-bundle \
|
||||
--enable-dvben50221 \
|
||||
--enable-tvhcsa \
|
||||
--enable-dvbcsa \
|
||||
--enable-inotify \
|
||||
--enable-epoll \
|
||||
--enable-trace \
|
||||
--nowerror \
|
||||
--disable-dvbscan \
|
||||
--disable-avahi \
|
||||
--disable-hdhomerun_static \
|
||||
--disable-pie \
|
||||
--disable-imagecache \
|
||||
--disable-ffmpeg_static \
|
||||
--disable-libx264 \
|
||||
--disable-libx264_static \
|
||||
--disable-libx265 \
|
||||
--disable-libx265_static \
|
||||
--disable-libvpx \
|
||||
--disable-libvpx_static \
|
||||
--disable-libtheora \
|
||||
--disable-libtheora_static \
|
||||
--disable-libvorbis \
|
||||
--disable-libvorbis_static \
|
||||
--disable-libfdkaac \
|
||||
--disable-libfdkaac_static \
|
||||
--disable-nvenc \
|
||||
--disable-libmfx_static \
|
||||
--disable-timeshift
|
||||
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
echo 'Tvheadend $(shell echo $(PKG_VERSION)~$(SHORT_GIT_VER)-$(PKG_RELEASE))' \
|
||||
> $(PKG_BUILD_DIR)/debian/changelog
|
||||
endef
|
||||
|
||||
define Package/conffiles
|
||||
/etc/config/tvheadend
|
||||
endef
|
||||
|
||||
define Package/tvheadend/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/tvheadend.config $(1)/etc/config/tvheadend
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,tvheadend))
|
13
package/zxlhhyccc/tvheadend/files/tvheadend.config
Normal file
13
package/zxlhhyccc/tvheadend/files/tvheadend.config
Normal file
@ -0,0 +1,13 @@
|
||||
#config tvheadend service
|
||||
# option nosyslog '0'
|
||||
# option use_temp_epgdb '0'
|
||||
# option config_path '/etc/tvheadend'
|
||||
|
||||
config tvheadend server
|
||||
option ipv6 '1'
|
||||
# option bindaddr '0.0.0.0'
|
||||
# option http_port '9981'
|
||||
# option http_root '/tvheadend'
|
||||
# option htsp_port '9982'
|
||||
# option htsp_port2 '9983'
|
||||
# option xspf '0'
|
71
package/zxlhhyccc/tvheadend/files/tvheadend.init
Executable file
71
package/zxlhhyccc/tvheadend/files/tvheadend.init
Executable file
@ -0,0 +1,71 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=00
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/bin/tvheadend
|
||||
|
||||
TEMP_CONFIG=/tmp/tvheadend
|
||||
PERSISTENT_CONFIG=/etc/tvheadend
|
||||
|
||||
execute_first_run() {
|
||||
"$PROG" -C "$1" -B -C -A >/dev/null 2>&1
|
||||
}
|
||||
|
||||
ensure_config_exists() {
|
||||
local config_path
|
||||
|
||||
config_load tvheadend
|
||||
config_get config_path service config_path
|
||||
|
||||
if [ -z "$config_path" ]; then
|
||||
[ -d "$PERSISTENT_CONFIG" ] || execute_first_run "$PERSISTENT_CONFIG"
|
||||
else
|
||||
# if the configuration directory is empty, empty config with grant-all ACL is created
|
||||
[ -d "$config_path" ] && [ "$(ls -A $config_path)" ] || execute_first_run "$config_path"
|
||||
fi
|
||||
|
||||
# if use_temp_epgdb is enabled (default), most of the config is put to config_path
|
||||
# (or /etc/config), except for epgdb.v2, which grows quite large and is write-heavy,
|
||||
# so it's put into volatile tmpfs
|
||||
# epgdb.v2 is created and symlinked to main config dir upon each start (if it doesn't exist)
|
||||
config_get_bool use_temp_epgdb service use_temp_epgdb 1
|
||||
if [ "$use_temp_epgdb" == "1" ]; then
|
||||
TEMP_EPG="${TEMP_CONFIG}/epgdb.v2"
|
||||
[ ! -f "$TEMP_EPG" ] && mkdir -p "$TEMP_CONFIG" && touch "$TEMP_EPG" && chmod 700 "$TEMP_EPG"
|
||||
[ -z "$config_path" ] && config_path="$PERSISTENT_CONFIG"
|
||||
ln -sf "$TEMP_EPG" "${config_path}/epgdb.v2"
|
||||
fi
|
||||
}
|
||||
|
||||
load_uci_config() {
|
||||
config_load tvheadend
|
||||
config_get config_path service config_path "$PERSISTENT_CONFIG"
|
||||
[ -n "$config_path" ] && procd_append_param command -c "$config_path"
|
||||
config_get_bool nosyslog service nosyslog 0
|
||||
[ "$nosyslog" -eq 1 ] && procd_append_param command --nosyslog
|
||||
config_get_bool ipv6 server ipv6 0
|
||||
[ "$ipv6" -eq 1 ] && procd_append_param command --ipv6
|
||||
config_get bindaddr server bindaddr
|
||||
[ -n "$bindaddr" ] && procd_append_param command --bindaddr "$bindaddr"
|
||||
config_get http_port server http_port
|
||||
[ -n "$http_port" ] && procd_append_param command --http_port "$http_port"
|
||||
config_get http_root server http_root
|
||||
[ -n "$http_root" ] && procd_append_param command --http_root "$http_root"
|
||||
config_get htsp_port server htsp_port
|
||||
[ -n "$htsp_port" ] && procd_append_param command --htsp_port "$htsp_port"
|
||||
config_get htsp_port2 server htsp_port2
|
||||
[ -n "$htsp_port2" ] && procd_append_param command --htsp_port "$htsp_port2"
|
||||
config_get xspf server xspf 0
|
||||
[ "$xspf" -eq 1 ] && procd_append_param command --xspf
|
||||
}
|
||||
|
||||
start_service() {
|
||||
ensure_config_exists
|
||||
procd_open_instance
|
||||
procd_set_param file /etc/config/tvheadend
|
||||
procd_set_param command "$PROG" -B -C
|
||||
load_uci_config
|
||||
procd_close_instance
|
||||
}
|
73
package/zxlhhyccc/verysync/Makefile
Normal file
73
package/zxlhhyccc/verysync/Makefile
Normal file
@ -0,0 +1,73 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
PKG_ARCH_VERYSYNC:=amd64
|
||||
endif
|
||||
ifeq ($(ARCH),mipsel)
|
||||
PKG_ARCH_VERYSYNC:=mipsle
|
||||
endif
|
||||
ifeq ($(ARCH),mips)
|
||||
PKG_ARCH_VERYSYNC:=mips
|
||||
endif
|
||||
ifeq ($(ARCH),i386)
|
||||
PKG_ARCH_VERYSYNC:=386
|
||||
endif
|
||||
ifeq ($(ARCH),arm)
|
||||
PKG_ARCH_VERYSYNC:=arm7
|
||||
endif
|
||||
ifeq ($(BOARD),bcm53xx)
|
||||
PKG_ARCH_VERYSYNC:=arm6
|
||||
endif
|
||||
ifeq ($(BOARD),kirkwood)
|
||||
PKG_ARCH_VERYSYNC:=arm
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
PKG_ARCH_VERYSYNC:=arm64
|
||||
endif
|
||||
|
||||
PKG_NAME:=verysync
|
||||
PKG_VERSION:=v1.3.1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://releases-cdn.verysync.com/releases/$(PKG_VERSION)/
|
||||
PKG_HASH:=skip
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A efficient data transmission tool
|
||||
DEPENDS:=
|
||||
URL:=http://www.verysync.com
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Verysync is a efficient data transmission tool.
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
tar -zxf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)
|
||||
chmod 0755 $(PKG_BUILD_DIR)/$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION)/verysync
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION)/verysync $(1)/usr/bin/verysync
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
Loading…
x
Reference in New Issue
Block a user