mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
cba772d955
It was discovered by CI/CD that it is no longer valid. Fixes: ``` 2026-04-29T13:04:58.0170130Z SHELL= flock /builder/tmp/.gost_engine-3.0.3.tar.zst.flock -c ' /builder/scripts/download.pl "/builder/dl" "gost_engine-3.0.3.tar.zst" "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" "" || ( /builder/scripts/dl_github_archive.py --dl-dir="/builder/dl" --url="https://github.com/gost-engine/engine" --version="v3.0.3" --subdir="gost_engine-3.0.3" --source="gost_engine-3.0.3.tar.zst" --hash="ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" --submodules || ( echo "Checking out files from the git repository..."; mkdir -p /builder/tmp/dl && cd /builder/tmp/dl && rm -rf gost_engine-3.0.3 && [ \! -d gost_engine-3.0.3 ] && git clone https://github.com/gost-engine/engine gost_engine-3.0.3 && (cd gost_engine-3.0.3 && git checkout v3.0.3) && export TAR_TIMESTAMP=`cd gost_engine-3.0.3 && git log -1 --no-show-signature --format='\''@%ct'\''` && echo "Generating formal git archive (apply .gitattributes rules)" && (cd gost_engine-3.0.3 && git config core.abbrev 8 && git archive --format=tar HEAD --output=../gost_engine-3.0.3.tar.git) && tar --numeric-owner --owner=0 --group=0 --ignore-failed-read -C gost_engine-3.0.3 -f gost_engine-3.0.3.tar.git -r .git .gitmodules 2>/dev/null && rm -rf gost_engine-3.0.3 && mkdir gost_engine-3.0.3 && tar -C gost_engine-3.0.3 -xf gost_engine-3.0.3.tar.git && (cd gost_engine-3.0.3 && git submodule update --init --recursive -- && rm -rf .git .gitmodules) && echo "Packing checkout..." && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c gost_engine-3.0.3 | zstd -T0 --ultra -20 -c > /builder/tmp/dl/gost_engine-3.0.3.tar.zst && mv /builder/tmp/dl/gost_engine-3.0.3.tar.zst /builder/dl/ && rm -rf gost_engine-3.0.3; ); ) && ( file_hash="$(/builder/staging_dir/host/bin/mkhash sha256 "/builder/dl/gost_engine-3.0.3.tar.zst")"; [ "$file_hash" = "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" ] || [ "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" = "skip" ] || { echo "Hash mismatch for file gost_engine-3.0.3.tar.zst: expected ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88, got $file_hash"; false; }; ) ' 2026-04-29T13:04:58.0559677Z + curl -f --connect-timeout 5 --retry 3 --location https://sources.cdn.openwrt.org/gost_engine-3.0.3.tar.zst 2026-04-29T13:04:58.0616240Z % Total % Received % Xferd Average Speed Time Time Time Current 2026-04-29T13:04:58.0616964Z Dload Upload Total Spent Left Speed 2026-04-29T13:04:58.0617618Z 2026-04-29T13:04:58.1364520Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2026-04-29T13:04:58.1365467Z 100 977k 100 977k 0 0 12.8M 0 --:--:-- --:--:-- --:--:-- 12.8M 2026-04-29T13:04:58.1453386Z Hash of the downloaded file does not match (file: b3a6701cd97e4db4f3e0f4b356c991075c6157dd3941d34851c8f36baa1d2721, requested: ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88) - deleting download. ``` Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
80 lines
2.2 KiB
Makefile
80 lines
2.2 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/openssl-module.mk
|
|
|
|
PKG_NAME:=gost_engine
|
|
PKG_VERSION:=3.0.3
|
|
PKG_RELEASE:=12
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
PKG_SOURCE_URL:=https://github.com/gost-engine/engine
|
|
PKG_MIRROR_HASH:=b3a6701cd97e4db4f3e0f4b356c991075c6157dd3941d34851c8f36baa1d2721
|
|
|
|
PKG_MAINTAINER:=Artur Petrov <github@phpchain.ru>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/gost_engine/Default
|
|
$(call Package/openssl/engine/Default)
|
|
TITLE:=GOST engine for OpenSSL
|
|
URL:=http://www.openssl.org/
|
|
endef
|
|
|
|
define Package/gost_engine/Default/description
|
|
Russian GOST crypto algorithms for OpenSSL.
|
|
endef
|
|
|
|
$(eval $(call Package/openssl/add-engine,gost,libopenssl-gost_engine))
|
|
define Package/libopenssl-gost_engine
|
|
$(call Package/gost_engine/Default)
|
|
$(call Package/openssl/engine/Default)
|
|
TITLE+= (library)
|
|
URL:=https://github.com/gost-engine/engine/
|
|
endef
|
|
|
|
define Package/libopenssl-gost_engine/description
|
|
$(call Package/gost_engine/Default/description)
|
|
This package contains the GOST engine library.
|
|
|
|
Support ciphers:
|
|
GOST2012-GOST8912-GOST8912
|
|
GOST2001-GOST89-GOST89
|
|
endef
|
|
|
|
define Package/gost_engine-util
|
|
$(call Package/gost_engine/Default)
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libopenssl-gost_engine
|
|
TITLE+= (utilities)
|
|
endef
|
|
|
|
define Package/gost_engine-util/description
|
|
$(call Package/gost_engine/Default/description)
|
|
This package contains the GOST engine command-line utilities gostsum and gost12sum.
|
|
endef
|
|
|
|
CMAKE_OPTIONS += -DOPENSSL_ENGINES_DIR=/usr/lib/$(ENGINES_DIR)
|
|
|
|
define Package/libopenssl-gost_engine/install
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/$(ENGINES_DIR) $(1)/etc/ssl/modules.cnf.d
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgost.so \
|
|
$(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(ENGINES_DIR)/gost.so \
|
|
$(1)/usr/lib/$(ENGINES_DIR)/
|
|
$(INSTALL_DATA) ./files/gost.cnf $(1)/etc/ssl/modules.cnf.d/
|
|
endef
|
|
|
|
define Package/gost_engine-util/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{gost12sum,gostsum} \
|
|
$(1)/usr/bin/
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,libopenssl-gost_engine))
|
|
$(eval $(call BuildPackage,gost_engine-util))
|