🌴 Sync 2026-06-16 03:50:57

This commit is contained in:
github-actions[bot] committed 2026-06-16 03:50:57 +08:00
1 parent 4eeb591549
commit 843567ccd1
5 files changed
+27 -48

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Spectra Theme LUCI_TITLE:=Spectra Theme
LUCI_DEPENDS:=+curl +php8 +php8-cgi +php8-fpm +php8-mod-curl +php8-mod-zip +php8-mod-mbstring +ffmpeg LUCI_DEPENDS:=+curl +php8 +php8-cgi +php8-fpm +php8-mod-curl +php8-mod-zip +php8-mod-mbstring +ffmpeg
PKG_VERSION:=27.574.74123~9e4b7f2 PKG_VERSION:=27.574.74123~9e4b7f2
PKG_RELEASE:=5 PKG_RELEASE:=6
LUCI_MINIFY_CSS:=0 LUCI_MINIFY_CSS:=0
@@ -12,7 +12,6 @@ EOF
rm -rf /tmp/luci-* rm -rf /tmp/luci-*
if [ -n "$(command -v nginx)" ];then if [ -n "$(command -v nginx)" ];then
if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then
cat << 'EOF' > /etc/nginx/conf.d/spectra.locations cat << 'EOF' > /etc/nginx/conf.d/spectra.locations
location /spectra/ { location /spectra/ {
index index.php index.html index.htm; index index.php index.html index.htm;
@@ -28,7 +27,6 @@ location /spectra/ {
} }
EOF EOF
/etc/init.d/nginx restart /etc/init.d/nginx restart
fi
elif [ -n "$(command -v lighttpd)" ];then elif [ -n "$(command -v lighttpd)" ];then
cat << 'EOF' > /etc/lighttpd/conf.d/81-php.conf cat << 'EOF' > /etc/lighttpd/conf.d/81-php.conf
cgi.assign += ( ".php" => "/usr/bin/php-cgi" ) cgi.assign += ( ".php" => "/usr/bin/php-cgi" )
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
VERSION="$1"
CURDIR="$2"
BIN_PATH="$3"
if [ -d "$CURDIR/.git" ]; then
config="$CURDIR/.git/config"
else
config="$(sed "s|^gitdir:\s*|$CURDIR/|;s|$|/config|" "$CURDIR/.git")"
fi
[ -n "$(sed -En '/^\[remote /{h;:top;n;/^\[/b;s,(https?://gitcode\.(com|net)),\1,;T top;H;x;s|\n\s*|: |;p;}' "$config")" ] && {
echo -e "#!/bin/sh\necho $VERSION" > "$BIN_PATH"
}
exit 0
+25 -30
View File
@@ -1,32 +1,30 @@
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2024-2026 Anya Lin <hukk1996@gmail.com>
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=mihomo PKG_NAME:=mihomo
PKG_VERSION:=1.19.27 PKG_VERSION:=1.19.27
PKG_RELEASE:=18 PKG_RELEASE:=19
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/MetaCubeX/mihomo.git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/metacubex/mihomo/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_HASH:=skip PKG_MIRROR_HASH:=skip
PKG_MAINTAINER:=Anya Lin <hukk1996@gmail.com> PKG_LICENSE:=GPL3.0+
PKG_LICENSE:=GPL-2.0 PKG_MAINTAINER:=Joseph Mory <morytyann@gmail.com>
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=golang/host PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16 PKG_BUILD_FLAGS:=no-mips16
GO_PKG:=github.com/metacubex/mihomo PKG_BUILD_VERSION:=v$(PKG_VERSION)
PKG_BUILD_TIME:=$(shell date -u -Iseconds)
PKG_BUILD_TIME:=$(shell date -u +%FT%TZ%z) GO_PKG:=github.com/metacubex/mihomo
GO_PKG_LDFLAGS_X:=\ GO_PKG_LDFLAGS_X:=$(GO_PKG)/constant.Version=$(PKG_BUILD_VERSION) $(GO_PKG)/constant.BuildTime=$(PKG_BUILD_TIME)
$(GO_PKG)/constant.Version=v$(PKG_VERSION) \
$(GO_PKG)/constant.BuildTime=$(PKG_BUILD_TIME)
GO_PKG_TAGS:=with_gvisor GO_PKG_TAGS:=with_gvisor
GO_PKG_INSTALL_BIN_PATH:=/usr/libexec
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
@@ -34,27 +32,24 @@ include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
define Package/mihomo define Package/mihomo
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
TITLE:=Another Mihomo Kernel. TITLE:=A rule based proxy in Go.
URL:=https://wiki.metacubex.one URL:=https://wiki.metacubex.one
DEPENDS:=$(GO_ARCH_DEPENDS) DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
PROVIDES:=mihomo
ALTERNATIVES:=\ ALTERNATIVES:=\
100:/usr/bin/mihomo:/usr/libexec/mihomo-core 300:/usr/bin/mihomo:/usr/libexec/mihomo
USERID:=mihomo=7890:mihomo=7890 endef
define Package/mihomo/description
Mihomo is a rule based proxy in Go.
endef
define Package/mihomo/install
$(call GoPackage/Package/Install/Bin,$(1))
endef endef
define Build/Prepare define Build/Prepare
$(Build/Prepare/Default) $(Build/Prepare/Default)
# rm unit test $(RM) -r $(PKG_BUILD_DIR)/rules/logic_test
rm -f $(PKG_BUILD_DIR)/rules/logic_test/logic_test.go
endef
define Package/mihomo/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(CURDIR)/.prepare.sh $(VERSION) $(CURDIR) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)
$(INSTALL_DIR) $(1)/usr/libexec/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/libexec/mihomo-core
endef endef
$(eval $(call GoBinPackage,mihomo)) $(eval $(call GoBinPackage,mihomo))
Executable → Regular
+1 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pcie_mhi PKG_NAME:=pcie_mhi
PKG_VERSION:=1.3.8 PKG_VERSION:=1.3.8
PKG_RELEASE:=16 PKG_RELEASE:=17
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk