mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 02:11:19 +08:00
🛸 Sync 2026-04-12 20:23:24
This commit is contained in:
parent
a615397c86
commit
bd5e3eead2
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=aria2
|
||||
PKG_VERSION:=1.37.0
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
|
||||
@ -108,11 +108,12 @@ define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
unzip $(DL_DIR)/aria2.conf -d $(PKG_BUILD_DIR)/
|
||||
sed -i '/rpc-secret/d' $(PKG_BUILD_DIR)/aria2.conf-master/*
|
||||
[ -x $(PKG_BUILD_DIR)/aria2.conf-master/tracker.sh ] && { cd $(PKG_BUILD_DIR)/aria2.conf-master && sh ./tracker.sh >/dev/null 2>&1 }
|
||||
endef
|
||||
|
||||
define Package/aria2/postinst
|
||||
#!/bin/sh
|
||||
[ -x $${IPKG_INSTROOT}/usr/share/aria2//tracker.sh ] && (cd $${IPKG_INSTROOT}/usr/share/aria2 && sh ./tracker.sh >/dev/null 2>&1 &) || exit 0
|
||||
[ -x $${IPKG_INSTROOT}/usr/share/aria2//tracker.sh ] && { cd $${IPKG_INSTROOT}/usr/share/aria2 && sh ./tracker.sh >/dev/null 2>&1 & } || exit 0
|
||||
endef
|
||||
|
||||
define Package/aria2/install
|
||||
|
||||
@ -10,11 +10,11 @@ LUCI_TITLE:=chongyoung
|
||||
LUCI_DEPENDS:=
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=4.2.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=3
|
||||
|
||||
define Package/luci-app-chongyoung-lua/postinst
|
||||
#!/bin/sh
|
||||
chmod +x $${IPKG_INSTROOT}/etc/init.d/*
|
||||
chmod +x $(1)/etc/init.d/*
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ LUCI_TITLE:=dynv6 ddns script
|
||||
LUCI_DEPENDS:= +luci-compat
|
||||
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=3
|
||||
PKG_MAINTAINER:=luochongjun <luochongjun@gl-inet.com>
|
||||
|
||||
define Package/luci-app-dynv6/postinst
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q get ucitrack.@dynv6[0] || uci add ucitrack dynv6
|
||||
uci set ucitrack.@dynv6[0]=dynv6
|
||||
uci set ucitrack.@dynv6[0].exec="/bin/sh /etc/rc.common /etc/init.d/dynv6 restart"
|
||||
uci commit ucitrack
|
||||
/etc/init.d/ucitrack restart
|
||||
|
||||
exit 0
|
||||
@ -17,9 +17,9 @@ LUCI_DEPENDS:=+my-dnshelper
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
#!/bin/sh
|
||||
chmod a+x $${IPKG_INSTROOT}/etc/init.d/my-dnshelper >/dev/null 2>&1 || echo ""
|
||||
chmod a+x $${IPKG_INSTROOT}/usr/share/my-dnshelper/* >/dev/null 2>&1 || echo ""
|
||||
chmod a+x $${IPKG_INSTROOT}/usr/bin/my-dnshelper >/dev/null 2>&1 || echo ""
|
||||
chmod a+x ${IPKG_INSTROOT}/etc/init.d/my-dnshelper >/dev/null 2>&1 || echo ""
|
||||
chmod a+x ${IPKG_INSTROOT}/usr/share/my-dnshelper/* >/dev/null 2>&1 || echo ""
|
||||
chmod a+x ${IPKG_INSTROOT}/usr/bin/my-dnshelper >/dev/null 2>&1 || echo ""
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
@ -1867,7 +1867,7 @@ local function update_node(manual)
|
||||
if domain_strategy then
|
||||
if vvv == "sing-box" then
|
||||
local map = { UseIPv4v6 = "prefer_ipv4", UseIPv6v4 = "prefer_ipv6", UseIPv4 = "ipv4_only", UseIPv6 = "ipv6_only" }
|
||||
domain_strategy = map[domain_strategy or ""]
|
||||
domain_strategy = map[domain_strategy] or ""
|
||||
end
|
||||
uci:set(appname, cfgid, "domain_strategy", domain_strategy)
|
||||
end
|
||||
@ -2087,7 +2087,7 @@ local execute = function()
|
||||
domain_resolver_dns = value.domain_resolver_dns
|
||||
domain_resolver_dns_https = value.domain_resolver_dns_https
|
||||
local map = { UseIPv4v6 = 1, UseIPv6v4 = 1, UseIPv4 = 1, UseIPv6 = 1 }
|
||||
domain_strategy = (not map[value.domain_strategy or ""]) and value.domain_strategy or nil
|
||||
domain_strategy = (value.domain_strategy and map[value.domain_strategy]) and value.domain_strategy or nil
|
||||
|
||||
-- 订阅组链式代理
|
||||
local function valid_chain_node(node)
|
||||
|
||||
@ -15,7 +15,7 @@ include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
define Package/luci-app-synology/postinst
|
||||
#!/bin.sh
|
||||
chmod a+x ${IPKG_INSTROOT}/etc/init.d/synology >/dev/null 2>&1
|
||||
chmod 755 /etc/init.d/synology
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-timedreboot
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=3
|
||||
PKG_DATE:=20220920
|
||||
|
||||
PKG_MAINTAINER:=kongfl888 <kongfl888@outlook.com>
|
||||
@ -47,8 +47,8 @@ endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
#!/bin/sh
|
||||
chmod a+x $${IPKG_INSTROOT}/etc/init.d/timedreboot >/dev/null 2>&1
|
||||
chmod a+x $${IPKG_INSTROOT}/usr/bin/dorboot >/dev/null 2>&1
|
||||
chmod a+x ${IPKG_INSTROOT}/etc/init.d/timedreboot >/dev/null 2>&1
|
||||
chmod a+x ${IPKG_INSTROOT}/usr/bin/dorboot >/dev/null 2>&1
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=momo
|
||||
PKG_VERSION:=2026.04.09
|
||||
PKG_RELEASE:=6
|
||||
PKG_RELEASE:=7
|
||||
|
||||
PKG_LICENSE:=GPL-3.0+
|
||||
PKG_MAINTAINER:=Joseph Mory <morytyann@gmail.com>
|
||||
@ -12,15 +12,11 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/momo
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=The universal proxy platform.
|
||||
URL:=https://sing-box.sagernet.org
|
||||
TITLE:=Transparent Proxy with sing-box on OpenWrt.
|
||||
URL:=https://github.com/nikkinikki-org
|
||||
DEPENDS:=+ca-bundle +curl firewall4 +ip-full +kmod-inet-diag +kmod-nft-socket +kmod-nft-tproxy +kmod-tun +kmod-dummy +sing-box
|
||||
endef
|
||||
|
||||
define Package/momo/description
|
||||
The universal proxy platform.
|
||||
endef
|
||||
|
||||
define Package/momo/conffiles
|
||||
/etc/config/momo
|
||||
endef
|
||||
@ -60,6 +56,16 @@ define Package/momo/install
|
||||
$(INSTALL_DATA) $(CURDIR)/files/momo.upgrade $(1)/lib/upgrade/keep.d/momo
|
||||
endef
|
||||
|
||||
define Package/momo/postrm
|
||||
#!/bin/sh
|
||||
if [ -z $${IPKG_INSTROOT} ]; then
|
||||
uci -q batch <<-EOF > /dev/null
|
||||
del firewall.momo
|
||||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
|
||||
endef
|
||||
|
||||
Loading…
Reference in New Issue
Block a user