Skip to content

Commit 3558bdd

Browse files
committed
fix: convert crlf to lf
Signed-off-by: qwq233 <qwq233@qwq2333.top>
1 parent ed6e1dd commit 3558bdd

File tree

12 files changed

+1483
-1481
lines changed

12 files changed

+1483
-1481
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

LICENSE.md

Lines changed: 659 additions & 659 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
include $(TOPDIR)/rules.mk
2-
3-
PKG_NAME:=ua4f
4-
PKG_VERSION:=0.1.0
5-
PKG_MAINTAINER := James Clef <qwq233@qwq2333.top>
6-
7-
PKG_LICENSE:=AGPL-3.0-or-later
8-
PKG_LICENSE_FILES:=LICENSE.md
9-
10-
HOST_BUILD_DEPENDS:=rust/host
11-
12-
include $(INCLUDE_DIR)/package.mk
13-
include ./rustc_targets.mk
14-
15-
define Package/ua4f
16-
SECTION:=net
17-
CATEGORY:=Network
18-
TITLE:=UA4F
19-
endef
20-
21-
define Package/ua4f/description
22-
Another User Agent faker, allowing users to bypass multi device detection for Campus Network via socks5 proxy.
23-
endef
24-
25-
define Build/Prepare
26-
$(call Build/Prepare/Default)
27-
mkdir -p $(PKG_BUILD_DIR)
28-
$(CP) ./* $(PKG_BUILD_DIR)/
29-
sed -i 's/0.1.0/$(PKG_VERSION)/g' $(PKG_BUILD_DIR)/Cargo.toml
30-
sed -i 's/0.1.0/$(PKG_VERSION)/g' $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/controller/ua4f.lua
31-
endef
32-
33-
define Build/Compile
34-
cd $(PKG_BUILD_DIR) && cargo rustc --target=$(RUSTC_TARGET_ARCH) --release $(NEED_BUILD_STD) -- -C linker=$(TARGET_CC_NOCACHE) -C ar=$(TARGET_AR)
35-
stat $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/release/ua4f
36-
endef
37-
38-
define Package/ua4f/install
39-
$(INSTALL_DIR) $(1)/usr/bin
40-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/release/ua4f $(1)/usr/bin/ua4f
41-
42-
$(INSTALL_DIR) $(1)/etc/config
43-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/etc/config/ua4f $(1)/etc/config/ua4f
44-
45-
$(INSTALL_DIR) $(1)/etc/init.d
46-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/etc/init.d/ua4f $(1)/etc/init.d/ua4f
47-
48-
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/
49-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/controller/ua4f.lua $(1)/usr/lib/lua/luci/controller/ua4f.lua
50-
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/
51-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/model/cbi/ua4f.lua $(1)/usr/lib/lua/luci/model/cbi/ua4f.lua
52-
endef
53-
1+
include $(TOPDIR)/rules.mk
2+
3+
PKG_NAME:=ua4f
4+
PKG_VERSION:=0.1.1
5+
PKG_MAINTAINER := James Clef <qwq233@qwq2333.top>
6+
7+
PKG_LICENSE:=AGPL-3.0-or-later
8+
PKG_LICENSE_FILES:=LICENSE.md
9+
10+
HOST_BUILD_DEPENDS:=rust/host
11+
12+
include $(INCLUDE_DIR)/package.mk
13+
include ./rustc_targets.mk
14+
15+
define Package/ua4f
16+
SECTION:=net
17+
CATEGORY:=Network
18+
TITLE:=UA4F
19+
endef
20+
21+
define Package/ua4f/description
22+
Another User Agent faker, allowing users to bypass multi device detection for Campus Network via socks5 proxy.
23+
endef
24+
25+
define Build/Prepare
26+
$(call Build/Prepare/Default)
27+
mkdir -p $(PKG_BUILD_DIR)
28+
$(CP) ./* $(PKG_BUILD_DIR)/
29+
sed -i 's/0.1.0/$(PKG_VERSION)/g' $(PKG_BUILD_DIR)/Cargo.toml
30+
sed -i 's/0.1.0/$(PKG_VERSION)/g' $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/controller/ua4f.lua
31+
endef
32+
33+
define Build/Compile
34+
cd $(PKG_BUILD_DIR) && cargo rustc --target=$(RUSTC_TARGET_ARCH) --release $(NEED_BUILD_STD) -- -C linker=$(TARGET_CC_NOCACHE) -C ar=$(TARGET_AR)
35+
stat $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/release/ua4f
36+
endef
37+
38+
define Package/ua4f/install
39+
$(INSTALL_DIR) $(1)/usr/bin
40+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/release/ua4f $(1)/usr/bin/ua4f
41+
42+
$(INSTALL_DIR) $(1)/etc/config
43+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/etc/config/ua4f $(1)/etc/config/ua4f
44+
45+
$(INSTALL_DIR) $(1)/etc/init.d
46+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/etc/init.d/ua4f $(1)/etc/init.d/ua4f
47+
48+
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/
49+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/controller/ua4f.lua $(1)/usr/lib/lua/luci/controller/ua4f.lua
50+
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/
51+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/usr/lib/lua/luci/model/cbi/ua4f.lua $(1)/usr/lib/lua/luci/model/cbi/ua4f.lua
52+
endef
53+
5454
$(eval $(call BuildPackage,ua4f))

0 commit comments

Comments
 (0)