mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
42de3c89c7
00b921d80ac0 Do not print line number in debug messages 96c42c5ed320 Fix length checks in cert_load() fe06b4b836b3 usign-exec: improve usign -F output handling 19f9e1917e1b usign-exec: return code fixes 077feb5b5824 usign-exec: close writing end of pipe early in parent process 7ec4bb764e1e usign-exec: remove redundant return statements 5a738e549d31 usign-exec: change usign_f_* fingerprint argument to char[17] 112488bbbccc usign-exec: do not close stdin and stderr before exec 38dcb1a6f121 usign-exec: fix exec error handling a9be4fb17df2 usign-exec: simplify usign execv calls 854d93e2326a Introduce read_file() helper, improve error reporting afc86f352bf7 Fix return code of write_file() fdff10852326 stdout/stderr improvements dddb2aa8124d ci: fix unit test failures by enabling full ucert build 5f206bcfe5c2 ci: enable unit testing Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
72 lines
1.6 KiB
Makefile
72 lines
1.6 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ucert
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ucert.git
|
|
PKG_SOURCE_DATE:=2020-05-24
|
|
PKG_SOURCE_VERSION:=00b921d80ac0dc47339305d803f865ff43c56d63
|
|
PKG_MIRROR_HASH:=839fda1811a58a495ac7bbc41db75222dd5a15e4d72110ca6acc4cdad56908fe
|
|
|
|
CMAKE_INSTALL:=1
|
|
PKG_CHECK_FORMAT_SECURITY:=1
|
|
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
-DUCERT_FULL=1 \
|
|
-DUCERT_HOST_BUILD=1 \
|
|
-DCMAKE_SKIP_RPATH=FALSE \
|
|
-DUSE_RPATH="${STAGING_DIR_HOST}/lib"
|
|
|
|
HOST_BUILD_DEPENDS:=libubox/host libjson-c/host usign/host
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
PKG_BUILD_DEPENDS:=ucert/host
|
|
|
|
define Package/ucert-full
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+usign +libubox +libjson-c +libblobmsg-json
|
|
TITLE:=OpenWrt certificate generation and verification utility
|
|
PROVIDES:=ucert
|
|
VARIANT:=full
|
|
endef
|
|
|
|
define Package/ucert
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+usign +libubox
|
|
TITLE:=OpenWrt certificate verification utility
|
|
PROVIDES:=ucert
|
|
CONFLICTS:=ucert-full
|
|
VARIANT:=tiny
|
|
endef
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
CMAKE_OPTIONS += -DUCERT_FULL=1
|
|
endif
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(call Build/Prepare/Default)
|
|
endef
|
|
|
|
define Package/ucert/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ucert $(1)/usr/bin
|
|
endef
|
|
|
|
Package/ucert-full/install = $(Package/ucert/install)
|
|
|
|
$(eval $(call BuildPackage,ucert))
|
|
$(eval $(call BuildPackage,ucert-full))
|
|
$(eval $(call HostBuild))
|