Merge Mainline
This commit is contained in:
commit
6fab602888
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-unblockmusic
|
||||
PKG_VERSION:=2.3.5
|
||||
PKG_RELEASE:=9
|
||||
PKG_RELEASE:=10
|
||||
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
CONFIG_UnblockNeteaseMusic_Go \
|
||||
|
||||
@ -39,13 +39,16 @@ speedtype:depends("apptype", "go")
|
||||
|
||||
cloudserver = s:option(Value, "cloudserver", translate("服务器位置"))
|
||||
cloudserver:value("cdn-shanghai.service.project-openwrt.eu.org:30000:30001", translate("[CTCGFW] 腾讯云上海(高音质)"))
|
||||
cloudserver:value("hyird.xyz:30000:30001", translate("[hyird] 阿里云北京(高音质)"))
|
||||
cloudserver:value("39.96.56.58:30000:30000", translate("[Sunsky] 阿里云北京(高音质)"))
|
||||
cloudserver.description = translate("自定义服务器格式为 IP[域名]:HTTP端口:HTTPS端口<br />如果服务器为LAN内网IP,需要将这个服务器IP放入例外客户端 (不代理HTTP和HTTPS)")
|
||||
cloudserver.default = "cdn-shanghai.service.project-openwrt.eu.org:30000:30001"
|
||||
cloudserver.rmempty = true
|
||||
cloudserver:depends("apptype", "cloud")
|
||||
|
||||
search_limit = s:option(Value, "search_limit", translate("搜索结果限制"))
|
||||
search_limit.description = translate("在搜索页面显示其他平台搜索结果个数,可填(0-3)")
|
||||
search_limit.default = "0"
|
||||
search_limit:depends("apptype", "go")
|
||||
|
||||
flac = s:option(Flag, "flac_enabled", translate("启用无损音质"))
|
||||
flac.default = "1"
|
||||
flac.rmempty = false
|
||||
|
||||
@ -65,6 +65,7 @@ ENABLE=$(uci_get_by_type unblockmusic enabled 0)
|
||||
TYPE=$(uci_get_by_type unblockmusic musicapptype default)
|
||||
AUTOUPDATE=$(uci_get_by_type unblockmusic autoupdate 0)
|
||||
APPTYPE=$(uci_get_by_type unblockmusic apptype go)
|
||||
SEARCHLIMIT=$(uci_get_by_type unblockmusic search_limit 0)
|
||||
FLAC=$(uci_get_by_type unblockmusic flac_enabled 0)
|
||||
FORCE=$(uci_get_by_type unblockmusic force_enabled 0)
|
||||
|
||||
@ -187,7 +188,7 @@ start()
|
||||
if [ $FLAC -eq 1 ]; then
|
||||
ENABLE_FLAC="-b "
|
||||
fi
|
||||
UnblockNeteaseMusic $ENABLE_FLAC -p 5200 -sp 5201 -m 0 -c /usr/share/UnblockNeteaseMusicGo/server.crt -k /usr/share/UnblockNeteaseMusicGo/server.key -m 0 -e >>/tmp/unblockmusic.log 2>&1 &
|
||||
UnblockNeteaseMusic $ENABLE_FLAC -p 5200 -sp 5201 -m 0 -c /usr/share/UnblockNeteaseMusicGo/server.crt -k /usr/share/UnblockNeteaseMusicGo/server.key -m 0 -e -sl ${SEARCHLIMIT} -l /tmp/unblockmusic.log &
|
||||
echo "$(date -R) # UnblockNeteaseMusic Golang Version (http:5200, https:5201)" >>/tmp/unblockmusic.log
|
||||
else
|
||||
kill -9 $(busybox ps -w | grep 'sleep 60m' | grep -v grep | awk '{print $1}') >/dev/null 2>&1
|
||||
|
||||
@ -7,15 +7,5 @@ uci -q batch <<-EOF >/dev/null
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
uci delete firewall.kms
|
||||
uci add firewall rule
|
||||
uci rename firewall.@rule[-1]="kms"
|
||||
uci set firewall.@rule[-1].name="kms"
|
||||
uci set firewall.@rule[-1].target="ACCEPT"
|
||||
uci set firewall.@rule[-1].src="wan"
|
||||
uci set firewall.@rule[-1].proto="tcp"
|
||||
uci set firewall.@rule[-1].dest_port="1688"
|
||||
uci commit firewall
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
||||
@ -28,14 +28,17 @@ define Package/shadowsocksr-libev
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=Lightweight Secured Socks5 Proxy
|
||||
URL:=https://github.com/shadowsocksrr/shadowsocksr-libev
|
||||
DEPENDS:=+libopenssl +libpthread +libpcre +zlib
|
||||
DEPENDS:=+libev +libsodium +libopenssl +libpthread +libpcre +libudns +zlib
|
||||
endef
|
||||
|
||||
Package/shadowsocksr-libev-server = $(Package/shadowsocksr-libev)
|
||||
Package/shadowsocksr-libev-alt = $(Package/shadowsocksr-libev)
|
||||
Package/shadowsocksr-libev-ssr-local = $(Package/shadowsocksr-libev)
|
||||
|
||||
CONFIGURE_ARGS += --disable-documentation --disable-ssp --disable-assert
|
||||
CONFIGURE_ARGS += --disable-documentation --disable-ssp --disable-assert \
|
||||
--enable-system-shared-lib
|
||||
|
||||
TARGET_CFLAGS += -flto
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
||||
|
||||
define Package/shadowsocksr-libev/install
|
||||
|
||||
@ -6,10 +6,6 @@ START=90
|
||||
start(){
|
||||
if [ ! -f "/tmp/vlmcsd.pid" ]; then
|
||||
/usr/bin/vlmcsd -i /etc/vlmcsd.ini -p /tmp/vlmcsd.pid -L 0.0.0.0:1688
|
||||
iptables -D input_rule -p tcp --dport 1688 -j ACCEPT
|
||||
iptables -A input_rule -p tcp --dport 1688 -j ACCEPT
|
||||
sed -i '/## luci-app-vlmcsd/d' /etc/firewall.user
|
||||
echo "iptables -A input_rule -p tcp --dport 1688 -j ACCEPT ## luci-app-vlmcsd" >> /etc/firewall.user
|
||||
echo "KMS Server has started."
|
||||
else
|
||||
echo "KMS Server has already started."
|
||||
@ -23,8 +19,6 @@ stop(){
|
||||
pid=`cat /tmp/vlmcsd.pid`
|
||||
kill $pid
|
||||
rm -f /tmp/vlmcsd.pid
|
||||
iptables -D input_rule -p tcp --dport 1688 -j ACCEPT
|
||||
sed -i '/## luci-app-vlmcsd/d' /etc/firewall.user
|
||||
echo "KMS Server has stopped."
|
||||
fi
|
||||
}
|
||||
|
||||
@ -1213,7 +1213,7 @@ define Device/youku_yk-l2
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Youku
|
||||
DEVICE_MODEL := YK-L2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user