mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 21:25:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
# Copyright (C) 2020 jjm2473@gmail.com
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_ARCH_routergo:=$(ARCH)
|
||||
|
||||
PKG_NAME:=routergo
|
||||
PKG_VERSION:=0.14.10
|
||||
PKG_RELEASE:=1
|
||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/Carseason/openwrt-packages/releases/download/prebuilt/
|
||||
PKG_HASH:=skip
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=RouterGo
|
||||
DEPENDS:=@(x86_64||aarch64||arm) +docker +dockerd +luci-app-linkease
|
||||
URL:=https://github.com/Carseason/openwrt-packages
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
RouterGo is a dashboard & user guide
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/routergo
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
#!/bin/sh
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
if [ -f /etc/uci-defaults/09-routergo ]; then
|
||||
chmod 755 /etc/uci-defaults/09-routergo
|
||||
/etc/uci-defaults/09-routergo && rm -f /etc/uci-defaults/09-routergo
|
||||
fi
|
||||
fi
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/uci-defaults $(1)/etc/config
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/routergo.$(PKG_ARCH_routergo) $(1)/usr/sbin/routergo
|
||||
$(INSTALL_BIN) ./files/routergo.init $(1)/etc/init.d/routergo
|
||||
$(INSTALL_BIN) ./files/routergo.uci-default $(1)/etc/uci-defaults/09-routergo
|
||||
$(INSTALL_CONF) ./files/routergo.config $(1)/etc/config/routergo
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
@@ -0,0 +1,2 @@
|
||||
config routergo
|
||||
option path '/tmp'
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=93
|
||||
USE_PROCD=1
|
||||
|
||||
get_config() {
|
||||
config_get path $1 path ""
|
||||
}
|
||||
|
||||
start_service() {
|
||||
config_load routergo
|
||||
config_foreach get_config routergo
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/routergo server --unix /var/run/routergo/local.sock
|
||||
if [ -n "$path" ]; then
|
||||
procd_append_param command --path "$path"
|
||||
fi
|
||||
procd_set_param stderr 1
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "routergo"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
/etc/init.d/routergo enable
|
||||
/etc/init.d/routergo start
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user