991dd5a893
This update fixes usign signature verification on files with certain file sizes triggering a bug in the shipped SHA-512 implementation. 5a52b37 sha512: fix bad hardcoded constant in sha512_final() 3e6648b README: replace unicode character 716c3f2 README: add reference to OpenBSD signify 86d3668 README: provide reference for ed25519 algorithm 939ec35 usign: main.c: describe necessary arguments for -G Ref: https://forum.openwrt.org/t/signature-check-failed/41945 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
45 lines
991 B
Makefile
45 lines
991 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=usign
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/usign.git
|
|
PKG_SOURCE_DATE:=2019-08-06
|
|
PKG_SOURCE_VERSION:=5a52b379902471cef495687547c7b568142f66d2
|
|
PKG_MIRROR_HASH:=9779f6d6718a7f7cd3e28aa7feefc9b3f4b0c7a85cb58ff18afbeb6b4372177a
|
|
CMAKE_INSTALL:=1
|
|
PKG_CHECK_FORMAT_SECURITY:=1
|
|
PKG_USE_MIPS16:=0
|
|
|
|
PKG_LICENSE:=ISC
|
|
PKG_LICENSE_FILES:=
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
|
|
define Package/usign
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+libubox
|
|
TITLE:=OpenWrt signature verification utility
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DUSE_LIBUBOX=on
|
|
|
|
define Package/usign/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usign $(1)/usr/bin
|
|
ln -s usign $(1)/usr/bin/signify
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,usign))
|
|
$(eval $(call HostBuild))
|