update-12.01
This commit is contained in:
parent
03382e3ee3
commit
b6a7b9edda
|
@ -1,5 +1,5 @@
|
|||
## 整理声明:
|
||||
iKoolProxy是[Beginner-Go](https://github.com/Beginner-Go) 大神基于koolproxyR重新整理而来的。主要参考:
|
||||
iKoolProxy是 [Beginner-Go](https://github.com/Beginner-Go) 大神基于koolproxyR重新整理而来的。主要参考:
|
||||
|
||||
1、以前Ameykyl大神的 [KoolProxyR](https://github.com/Ameykyl/luci-app-koolproxyR) (源码已经2020年4月删除)。源码来源于 [project-openwrt](https://github.com/project-openwrt/luci-app-koolproxyR) 收录的ameykyl的2020年3月最后一次更新。
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ define Package/ikoolproxy
|
|||
SECTION:=multimedia
|
||||
CATEGORY:=Multimedia
|
||||
DEPENDS:=@(aarch64||arm||i386||mips||mipsel||x86_64)
|
||||
TITLE:=ikoolproxy bin is from koolshare koolproxy bin
|
||||
TITLE:=ikoolproxy bin is from koolshare
|
||||
URL:=https://github.com/houzi-/CDN
|
||||
endef
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
|
|
@ -0,0 +1,90 @@
|
|||
#
|
||||
# Copyright (C) 2019 peter-tank@github.com
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=minisign
|
||||
PKG_VERSION:=0.10.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/jedisct1/minisign.git
|
||||
PKG_SOURCE_VERSION:=40dd5acf36471f68b25e8eb74b4a2877e8d2392c
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
|
||||
|
||||
PKG_LICENSE:=GPLv3
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=peter-tank
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
||||
|
||||
CMAKE_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=0
|
||||
PKG_BUILD_DEPENDS:=libsodium
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_$(PKG_NAME)_STATIC_LINK \
|
||||
CONFIG_$(PKG_NAME)_WITH_SODIUM
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
TARGET_CXXFLAGS += -Wall -Wextra
|
||||
TARGET_CXXFLAGS += $(FPIC)
|
||||
|
||||
TARGET_CXXFLAGS += -DED25519_NONDETERMINISTIC
|
||||
|
||||
TARGET_CXXFLAGS := $(filter-out -O%,$(TARGET_CXXFLAGS)) -O3
|
||||
|
||||
TARGET_CXXFLAGS += -ffunction-sections -fdata-sections
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
define Package/minisign
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=A dead simple tool to sign files and verify signatures.
|
||||
URL:=https://github.com/jedisct1/minisign
|
||||
DEPENDS:=+libpthread \
|
||||
+!$(PKG_NAME)_WITH_SODIUM:libsodium
|
||||
endef
|
||||
|
||||
define Package/minisign/config
|
||||
menu "minisign Compile Configuration"
|
||||
config $(PKG_NAME)_STATIC_LINK
|
||||
bool "enable static link libraries."
|
||||
default y
|
||||
|
||||
menu "Select libraries"
|
||||
depends on $(PKG_NAME)_STATIC_LINK
|
||||
config $(PKG_NAME)_WITH_SODIUM
|
||||
bool "static link libsodium."
|
||||
default y
|
||||
|
||||
endmenu
|
||||
endmenu
|
||||
endef
|
||||
|
||||
define Package/minisign/description
|
||||
Minisign is a dead simple tool to sign files and verify signatures.
|
||||
endef
|
||||
|
||||
CMAKE_OPTIONS += -DCMAKE_STRIP=$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)strip
|
||||
|
||||
ifeq ($(CONFIG_$(PKG_NAME)_STATIC_LINK),y)
|
||||
ifeq ($(CONFIG_$(PKG_NAME)_WITH_SODIUM),y)
|
||||
CMAKE_OPTIONS += -DSTATIC_LIBSODIUM=1
|
||||
endif
|
||||
endif
|
||||
|
||||
define Package/minisign/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/minisign $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
|
@ -0,0 +1,56 @@
|
|||
minisign for OpenWrt
|
||||
===
|
||||
|
||||
[![Download][B]][2]
|
||||
|
||||
简介
|
||||
---
|
||||
|
||||
本项目是 [minisign][1] 在 OpenWrt 上的移植
|
||||
|
||||
特性
|
||||
---
|
||||
|
||||
软件包只包含 [minisign][1] 的可执行文件, 可与 [luci-app-dnscrypt-proxy][3] 搭配使用
|
||||
可编译两种版本
|
||||
|
||||
- minisign
|
||||
|
||||
```
|
||||
/
|
||||
└── usr/
|
||||
└── bin/
|
||||
└── minisign // 可执行文件
|
||||
```
|
||||
|
||||
编译
|
||||
---
|
||||
|
||||
- 从 OpenWrt 的 [SDK][S] 编译
|
||||
|
||||
```bash
|
||||
# 以 ar71xx 平台为例
|
||||
tar xjf OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
|
||||
cd OpenWrt-SDK-ar71xx-*
|
||||
# 添加 feeds/libsodium
|
||||
git clone https://github.com/shadowsocks/openwrt-feeds.git package/libs
|
||||
# 获取 minisign Makefile
|
||||
git clone https://github.com/kenzok78/minisign.git package/minisign
|
||||
# 删除 libsodium/Makefile 中所有`CONFIGURE_ARGS`相关的行 [`--disable ssp` 及`CONFIG_LIBSODIUM_MINIMAL`](https://github.com/shadowsocks/openwrt-feeds/blob/master/packages/libsodium/Makefile#L54)
|
||||
# 其中包括: Libraries -> libsodium 非最小安装(.config/CONFIG_LIBSODIUM_MINIMAL=n)
|
||||
# 默认静态链接 `libsodium`,最终的二进制并不依賴: Utilities -> minisign(.config/CONFIG_minisign_STATIC_LINK=y; CONFIG_minisign_WITH_SODIUM=y)
|
||||
make menuconfig
|
||||
# 开始编译
|
||||
make package/minisign/compile V=99
|
||||
```
|
||||
|
||||
配置
|
||||
---
|
||||
|
||||
软件包本身并不包含配置文件
|
||||
|
||||
[1]: https://github.com/jedisct1/minisign
|
||||
[2]: https://github.com/jedisct1/minisign/releases/latest
|
||||
[B]: https://img.shields.io/github/release/jedisct1/minisign.svg
|
||||
[3]: https://github.com/peter-tank/luci-app-dnscrypt-proxy
|
||||
[S]: https://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
|
Loading…
Reference in New Issue