Skip to content

Commit dff1efe

Browse files
sss
1 parent 677da43 commit dff1efe

File tree

178 files changed

+127394
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+127394
-0
lines changed

.github/workflows/build_image.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: build_image
2+
on: push
3+
4+
jobs:
5+
build_passwall:
6+
name: Build Passwall
7+
runs-on: ubuntu-latest
8+
# container:
9+
# image: openwrtorg/sdk:x86_64-master
10+
steps:
11+
- name: Print Pwd
12+
run: |
13+
pwd; ls -alh
14+
Binary file not shown.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug上报
3+
about: 创建报告以帮助我们改进
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## 描述bug(必填)
11+
<!-- 对于bug的清晰简洁的描述. -->
12+
13+
## 复现步骤(必填)
14+
<!-- 重现Bug步骤: -->
15+
<!-- 1. 选择菜单'...' -->
16+
<!-- 2. 点击按钮 '....' -->
17+
<!-- 3. 等等操作 '....' -->
18+
<!-- 4. 出现Bug -->
19+
20+
## 你想要实现的目的(必填)
21+
<!--对你期望发生的事情的清晰简洁的描述。-->
22+
23+
## 日志信息(必填!)
24+
<!--包括问题相关的所有系统日志信息(这个很重要)。-->
25+
26+
## 截图
27+
<!--如果适用,请添加屏幕截图以帮助解释你的问题。-->
28+
29+
30+
## 系统相关信息(必填)
31+
<!-- - passwall版本-->
32+
<!-- - 浏览器版本,例如Chrome 96.0.4664.45(正式版本) (64 位)-->
33+
34+
## 其他相关信息
35+
<!-- 在此处添加有关该Bug的任何其他信息。-->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 功能请求
3+
about: 为这个项目提出一个新功能的想法
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## 你的功能请求是否与问题有关? 请描述。(必填)
11+
<!-- 对问题所在的清晰简洁的描述。 例如。 当 [...] 时,我总是[....] -->
12+
13+
## 描述你想要的解决方案 (必填)
14+
<!-- 对你想要的新功能的清晰简洁的描述。 -->
15+
16+
## 描述你考虑过的替代方案
17+
<!--对你考虑过的任何替代解决方案或功能的清晰简明描述。-->
18+
19+
## 附加上下文
20+
<!--在此处添加有关功能请求的任何其他信息或屏幕截图。-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Auto Close Not Following Template Issue'
2+
on:
3+
issues:
4+
types: [opened, edited]
5+
6+
jobs:
7+
auto_close_issues:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v1
12+
- name: Automatically close issues that don't follow the issue template
13+
uses: lucasbento/[email protected]
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
17+
closed-issues-label: "🙁 Not following issue template" # optional property
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v4
11+
with:
12+
stale-issue-message: 'Stale Issue'
13+
stale-pr-message: 'Stale PR'
14+
stale-issue-label: 'no-issue-activity'
15+
exempt-issue-labels: 'awaiting-approval,work-in-progress'
16+
stale-pr-label: 'no-pr-activity'
17+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
18+
# only-labels: 'bug,enhancement'
19+
days-before-issue-stale: 10
20+
days-before-pr-stale: 10
21+
days-before-issue-close: 5
22+
days-before-pr-close: -1
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: GPL-3.0-only
2+
#
3+
# Copyright (C) 2021 ImmortalWrt.org
4+
5+
include $(TOPDIR)/rules.mk
6+
7+
PKG_NAME:=brook
8+
PKG_VERSION:=20220401
9+
PKG_RELEASE:=$(AUTORELEASE)
10+
11+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12+
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)?
13+
PKG_HASH:=cd3c467d23f4677c51e6764e0a3203cf39ac6c1081203bfd9f5c79680317be22
14+
15+
PKG_MAINTAINER:=Tianling Shen <[email protected]>
16+
PKG_LICENSE:=GPL-3.0
17+
PKG_LICENSE_FILES:=LICENSE
18+
19+
PKG_BUILD_DEPENDS:=golang/host
20+
PKG_BUILD_PARALLEL:=1
21+
PKG_USE_MIPS16:=0
22+
23+
PKG_CONFIG_DEPENDS:= \
24+
CONFIG_BROOK_COMPRESS_GOPROXY \
25+
CONFIG_BROOK_COMPRESS_UPX
26+
27+
GO_PKG:=github.com/txthinking/brook
28+
GO_PKG_BUILD_PKG:=github.com/txthinking/brook/cli/brook
29+
GO_PKG_LDFLAGS:=-s -w
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
33+
34+
define Package/brook
35+
SECTION:=net
36+
CATEGORY:=Network
37+
SUBMENU:=Web Servers/Proxies
38+
TITLE:=A cross-platform proxy software
39+
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
40+
URL:=https://github.com/txthinking/brook
41+
endef
42+
43+
define Package/brook/description
44+
Brook is a cross-platform strong encryption and not detectable proxy.
45+
Zero-Configuration.
46+
endef
47+
48+
define Package/brook/config
49+
config BROOK_COMPRESS_GOPROXY
50+
bool "Compiling with GOPROXY proxy"
51+
default n
52+
53+
config BROOK_COMPRESS_UPX
54+
bool "Compress executable files with UPX"
55+
depends on !mips64
56+
default n
57+
endef
58+
59+
ifeq ($(CONFIG_BROOK_COMPRESS_GOPROXY),y)
60+
export GO111MODULE=on
61+
export GOPROXY=https://goproxy.bj.bcebos.com
62+
endif
63+
64+
define Build/Compile
65+
$(call GoPackage/Build/Compile)
66+
ifeq ($(CONFIG_BROOK_COMPRESS_UPX),y)
67+
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/brook
68+
endif
69+
endef
70+
71+
$(eval $(call GoBinPackage,brook))
72+
$(eval $(call BuildPackage,brook))
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-License-Identifier: GPL-3.0-only
2+
#
3+
# Copyright (C) 2021 ImmortalWrt.org
4+
5+
include $(TOPDIR)/rules.mk
6+
7+
PKG_NAME:=chinadns-ng
8+
PKG_VERSION:=1.0-beta.25
9+
PKG_RELEASE:=$(AUTORELEASE)
10+
11+
PKG_SOURCE_PROTO:=git
12+
PKG_SOURCE_URL:=https://github.com/zfl9/chinadns-ng.git
13+
PKG_SOURCE_DATE:=2021-05-08
14+
PKG_SOURCE_VERSION:=14cc6348d67b09cae37d9bce554c89c2c0e0b265
15+
PKG_MIRROR_HASH:=3b66fc0888d9488e3b8e39df3016d51fae1b43325d292381e94aa3c7d2318282
16+
17+
PKG_LICENSE:=AGPL-3.0-only
18+
PKG_LICENSE_FILES:=LICENSE
19+
PKG_MAINTAINER:=pexcn <[email protected]>
20+
21+
PKG_BUILD_PARALLEL:=1
22+
PKG_INSTALL:=1
23+
24+
include $(INCLUDE_DIR)/package.mk
25+
26+
define Package/chinadns-ng
27+
SECTION:=net
28+
CATEGORY:=Network
29+
SUBMENU:=IP Addresses and Names
30+
TITLE:=ChinaDNS next generation, refactoring with epoll and ipset.
31+
URL:=https://github.com/zfl9/chinadns-ng
32+
DEPENDS:=+ipset
33+
endef
34+
35+
define Package/chinadns-ng/install
36+
$(INSTALL_DIR) $(1)/usr/bin
37+
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/chinadns-ng $(1)/usr/bin
38+
endef
39+
40+
$(eval $(call BuildPackage,chinadns-ng))
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-License-Identifier: GPL-3.0-only
2+
#
3+
# Copyright (C) 2021 ImmortalWrt.org
4+
5+
include $(TOPDIR)/rules.mk
6+
7+
PKG_NAME:=dns2socks
8+
PKG_VERSION:=2.1
9+
PKG_RELEASE:=2
10+
11+
PKG_SOURCE:=SourceCode.zip
12+
PKG_SOURCE_URL:=@SF/dns2socks
13+
PKG_SOURCE_DATE:=2020-02-18
14+
PKG_HASH:=406b5003523577d39da66767adfe54f7af9b701374363729386f32f6a3a995f4
15+
16+
PKG_MAINTAINER:=ghostmaker
17+
PKG_LICENSE:=BSD-3-Clause
18+
PKG_LICENSE_FILE:=LICENSE
19+
20+
include $(INCLUDE_DIR)/package.mk
21+
22+
UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
23+
24+
define Package/dns2socks
25+
SECTION:=net
26+
CATEGORY:=Network
27+
SUBMENU:=IP Addresses and Names
28+
TITLE:=DNS to SOCKS or HTTP proxy
29+
URL:=http://dns2socks.sourceforge.net/
30+
DEPENDS:=+libpthread
31+
endef
32+
33+
define Package/dns2socks/description
34+
This is a command line utility to resolve DNS requests via
35+
a SOCKS tunnel like Tor or a HTTP proxy.
36+
endef
37+
38+
define Build/Compile
39+
$(TARGET_CC) \
40+
$(TARGET_CFLAGS) \
41+
$(TARGET_CPPFLAGS) \
42+
$(FPIC) \
43+
-o $(PKG_BUILD_DIR)/DNS2SOCKS/dns2socks \
44+
$(PKG_BUILD_DIR)/DNS2SOCKS/DNS2SOCKS.c \
45+
$(TARGET_LDFLAGS) -pthread
46+
endef
47+
48+
define Package/dns2socks/install
49+
$(INSTALL_DIR) $(1)/usr/bin
50+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/DNS2SOCKS/dns2socks $(1)/usr/bin/dns2socks
51+
endef
52+
53+
$(eval $(call BuildPackage,dns2socks))
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# SPDX-License-Identifier: GPL-3.0-only
2+
#
3+
# Copyright (C) 2021 ImmortalWrt.org
4+
5+
include $(TOPDIR)/rules.mk
6+
7+
PKG_NAME:=hysteria
8+
PKG_VERSION:=1.0.1
9+
PKG_RELEASE:=$(AUTORELEASE)
10+
11+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12+
PKG_SOURCE_URL:=https://codeload.github.com/HyNetwork/hysteria/tar.gz/v$(PKG_VERSION)?
13+
PKG_HASH:=de3a1dbc4a28bcddda2b1e918b0b309d822ab9eaad764564dfc064c2c0d0e667
14+
15+
PKG_LICENSE:=MIT
16+
PKG_LICENSE_FILE:=LICENSE
17+
PKG_MAINTAINER:=Tianling Shen <[email protected]>
18+
19+
PKG_CONFIG_DEPENDS:= \
20+
CONFIG_HYSTERIA_COMPRESS_GOPROXY \
21+
CONFIG_HYSTERIA_COMPRESS_UPX
22+
23+
PKG_BUILD_DEPENDS:=golang/host
24+
PKG_BUILD_PARALLEL:=1
25+
PKG_USE_MIPS16:=0
26+
27+
GO_PKG:=github.com/tobyxdd/hysteria
28+
GO_PKG_BUILD_PKG:=github.com/tobyxdd/hysteria/cmd
29+
GO_PKG_LDFLAGS:=-s -w
30+
GO_PKG_LDFLAGS_X:=main.appVersion=$(PKG_VERSION)
31+
32+
include $(INCLUDE_DIR)/package.mk
33+
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
34+
35+
define Package/hysteria
36+
SECTION:=net
37+
CATEGORY:=Network
38+
TITLE:=A feature-packed network utility optimized for networks of poor quality
39+
URL:=https://github.com/tobyxdd/hysteria
40+
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
41+
endef
42+
43+
define Package/hysteria/description
44+
Hysteria is a feature-packed network utility optimized for networks
45+
of poor quality (e.g. satellite connections, congested public Wi-Fi,
46+
connecting from China to servers abroad) powered by a custom version
47+
of QUIC protocol.
48+
endef
49+
50+
define Package/hysteria/config
51+
config HYSTERIA_COMPRESS_GOPROXY
52+
bool "Compiling with GOPROXY proxy"
53+
default n
54+
55+
config HYSTERIA_COMPRESS_UPX
56+
bool "Compress executable files with UPX"
57+
depends on !mips64
58+
default n
59+
endef
60+
61+
ifeq ($(CONFIG_HYSTERIA_COMPRESS_GOPROXY),y)
62+
export GO111MODULE=on
63+
export GOPROXY=https://goproxy.bj.bcebos.com
64+
endif
65+
66+
define Build/Compile
67+
$(call GoPackage/Build/Compile)
68+
ifeq ($(CONFIG_HYSTERIA_COMPRESS_UPX),y)
69+
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/cmd
70+
endif
71+
endef
72+
73+
define Package/hysteria/install
74+
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
75+
$(INSTALL_DIR) $(1)/usr/bin/
76+
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmd $(1)/usr/bin/hysteria
77+
endef
78+
79+
$(eval $(call GoBinPackage,hysteria))
80+
$(eval $(call BuildPackage,hysteria))

0 commit comments

Comments
 (0)